Skip to main content

Base URL

https://api.celerflow.ai/functions/v1/

Edge Function routing

CelerFlow uses consolidated Edge Functions with sub-routes. Each function handles multiple related operations:
FunctionRoutes
/agentRegister, health, terminate, disconnect, remove, policies, confirmations
/fleetCreate, list, get, delete
/traceIngest spans (batch)
/notifyNotification delivery (Telegram, Slack, WhatsApp)
/cliDevice code, device token
/teamCreate, invite, list members, remove member
/auditCreate export, list exports, download
/stripeWebhook handler
/api-keyCreate, list, revoke
/riskQuery risk alerts, resolve alerts
/mcpMCP Gateway proxy (coming soon)

Authentication

Most endpoints require a Bearer token:
Authorization: Bearer YOUR_TOKEN
Four authentication methods:
  • 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 login CLI flow.

Response format

Success:
{
  "id": "fleet_abc123",
  "name": "Production",
  "created_at": "2026-01-15T10:30:00Z"
}
Error:
{
  "error": {
    "code": "NOT_FOUND",
    "message": "Fleet not found",
    "status": 404
  }
}

Rate limits

PlanAPI requests/minTrace batch limit
Free603 req / 60s per agent
Pro3003 req / 60s per agent
Team1,0003 req / 60s per agent
Enterprise5,0003 req / 60s per agent

Plan limits

ResourceFreeProTeamEnterprise
Agents320100Unlimited
Workspaces1520Unlimited
Team members1110Unlimited
Traces/day1,00050,000200,000Unlimited
Trace retention3 days30 days90 days365 days
Rate-limited requests return HTTP 429 with a Retry-After header.

Status codes

CodeMeaning
200Success
201Created
400Bad request
401Unauthorized
403Forbidden
404Not found
429Rate limited
500Server error