Complete documentation for the SaoAI AI Operating System API and platform.
| Environment | URL |
|---|---|
| Landing | https://saoai.fun |
| CEO Dashboard | https://app.saoai.fun |
| Backend API | https://api.saoai.fun |
| WebSocket | wss://api.saoai.fun/ws |
| Demo | https://demo.saoai.fun |
| Staging | https://staging.saoai.fun |
POST /api/v1/auth/login
POST /api/v1/auth/refresh
POST /api/v1/coo/query — Ask COO anything
GET /api/v1/coo/status — COO runtime status
GET /api/v1/coo/thinking/{id} — COO thinking trace
POST /api/v1/channels/message/receive — Receive message from any channel
POST /api/v1/channels/message/send — Send message through any channel
POST /api/v1/channels/notify — Send notification
POST /api/v1/channels/interact — Human interaction (approve/reject/etc.)
GET /api/v1/workflows — List workflows
POST /api/v1/workflows — Create workflow
POST /api/v1/workflows/{id}/pause — Pause
POST /api/v1/workflows/{id}/resume — Resume
GET /api/v1/collab/employees
POST /api/v1/collab/tasks
POST /api/v1/collab/approvals/requests
GET /api/v1/collab/workspace/ceo
https://api.saoai.fun/api/v1/channels/telegram/webhook
curl https://api.telegram.org/bot<TOKEN>/setWebhook?url=https://api.saoai.fun/api/v1/channels/telegram/webhookTELEGRAM_BOT_TOKEN to .env.production| Type | Name | Value |
|---|---|---|
| A | saoai.fun | VPS_PUBLIC_IP |
| A | app.saoai.fun | VPS_PUBLIC_IP |
| A | api.saoai.fun | VPS_PUBLIC_IP |
| A | demo.saoai.fun | VPS_PUBLIC_IP |
| A | staging.saoai.fun | VPS_PUBLIC_IP |
| A | docs.saoai.fun | VPS_PUBLIC_IP |
| CNAME | www.saoai.fun | saoai.fun |
Internet
└── Caddy / Nginx (ports 80,443)
├── saoai.fun → landing (port 3000)
├── app.saoai.fun → dashboard (port 3000)
├── api.saoai.fun → backend (port 8000)
│ └── /ws → WebSocket upgrade
├── demo.saoai.fun → demo frontend (port 3000)
├── staging.saoai.fun → staging frontend (port 3000)
└── docs.saoai.fun → docs static (port 3000)
Backend
└── PostgreSQL (pgvector) → :5432
└── Redis → :6379