Base URL
Edge Function routing
CelerFlow uses consolidated Edge Functions with sub-routes. Each function handles multiple related operations:| Function | Routes |
|---|---|
/agent | Register, health, terminate, disconnect, remove, policies, confirmations |
/fleet | Create, list, get, delete |
/trace | Ingest spans (batch) |
/notify | Notification delivery (Telegram, Slack, WhatsApp) |
/cli | Device code, device token |
/team | Create, invite, list members, remove member |
/audit | Create export, list exports, download |
/stripe | Webhook handler |
/api-key | Create, list, revoke |
/risk | Query risk alerts, resolve alerts |
/mcp | MCP Gateway proxy (coming soon) |
Authentication
Most endpoints require a Bearer token:- User token (JWT) — from the device code OAuth flow. Used for dashboard and workspace operations.
- Bootstrap token — assigned to an agent on connection (
bt_xxx). Used for health reporting, trace ingestion, and agent-specific operations. - API key — created from Settings → API Keys (
cf_xxx). Used for programmatic access and the MCP Gateway. - Device code — temporary code used during the
celerflow loginCLI flow.
Response format
Success:Rate limits
| Plan | API requests/min | Trace batch limit |
|---|---|---|
| Free | 60 | 3 req / 60s per agent |
| Pro | 300 | 3 req / 60s per agent |
| Team | 1,000 | 3 req / 60s per agent |
| Enterprise | 5,000 | 3 req / 60s per agent |
Plan limits
| Resource | Free | Pro | Team | Enterprise |
|---|---|---|---|---|
| Agents | 3 | 20 | 100 | Unlimited |
| Workspaces | 1 | 5 | 20 | Unlimited |
| Team members | 1 | 1 | 10 | Unlimited |
| Traces/day | 1,000 | 50,000 | 200,000 | Unlimited |
| Trace retention | 3 days | 30 days | 90 days | 365 days |
Retry-After header.
Status codes
| Code | Meaning |
|---|---|
200 | Success |
201 | Created |
400 | Bad request |
401 | Unauthorized |
403 | Forbidden |
404 | Not found |
429 | Rate limited |
500 | Server error |