Agents API
Create, manage, and interact with agents.All agent endpoints that require authentication are scoped to the authenticated user’s data through row-level security. You can only access agents that belong to your account.
List agents
401 error.
Response
Create agent
Get agent
Response
Errors
Update agent
Delete agent
Provision agent
Provisioning requests may be processed asynchronously through the background task queue. The agent is created immediately with a
provisioning status and transitions to running once the gateway confirms the deployment. If gateway provisioning fails, the status changes to error.Request body
The agent limit is determined by the subscription plan on the authenticated user’s account (
starter: 1, pro: 3, enterprise: 100). It cannot be overridden in the request body.Admin bypass
Admin users (configured viaADMIN_EMAILS) are exempt from the following restrictions:
- Subscription requirement — admins can provision agents without an active subscription (the
402error is not returned). - Agent limit — admins receive an elevated agent slot limit instead of the plan-based cap.
Response (201 Created)
Errors
List provisioned agents
Response
Errors
Get agent configuration
Response
Errors
Update agent configuration
Errors
Get agent logs
Get agent messages
Query parameters
Response
Errors
Get agent stats
Response (live)
Response (mock fallback)
When the backend is unavailable, mock data is returned with"status": "mock":
Agent lifecycle
Lifecycle operations use the/api/instance/:userId endpoint pattern. These endpoints require session authentication and proxy to the backend agent management service.
Start agent
Stop agent
Restart agent
Update agent image
Repair agent
Reset agent memory
Lifecycle error responses
All lifecycle endpoints return the following shape on failure:Get instance details
Response
Get instance stats
Response
Get agent gateway token
Errors
Agent verification
Agents can be verified using multiple verification types:eas (Ethereum Attestation Service), coinbase, ens, or webauthn.
Get verification status
Verify agent
Request body
Response
Errors
Remove verification
Provision with channel tokens
provision queue for asynchronous processing.
Request body
Response
The proxy returns a filtered subset of the backend response:The
/api/provision proxy returns only success, userId, subdomain, url, streamKey, and liveStreamId. Additional fields such as agentId, aiProvider, aiProviderConfig, plan, playbackUrl, hls, rtmp, status, createdAt, and metadata are available when calling the backend provisioning service directly.Errors
Agent interaction
userId is always bound to the authenticated session and cannot be overridden by the client.
GET actions
Pass theaction query parameter to select the operation.
List endpoints
Health
List sessions
Get session
Memory
Skills
Credentials
POST actions
Pass theaction field in the request body.