API reference
Base URL:
https://api.ngamia.comThe machine-readable OpenAPI 3.1 document is served at
https://api.ngamia.com/openapi.yaml.
These pages are generated from it.
Authentication
Send Authorization: Bearer <credential> on every /v1/* call except
/v1/auth/*:
| Credential | Who | How to get it |
|---|---|---|
| Platform access token | People | Sign-in endpoints with a Camel Accounts token; lasts about 5 minutes |
API key ngk_… | Your servers | POST /v1/api-keys; scoped |
Conventions
- JSON request and response bodies (
content-type: application/json), except file uploads (multipart/form-data) and run events (text/event-stream). - Unknown fields in request bodies are rejected with
400. - IDs are UUIDs, except agent
slugs and your ownuserIDs. - Timestamps are RFC 3339 in UTC.
Idempotency-Keyis supported on starting runs.- Every response has an
x-request-idheader. - Errors use
{"error": {"code", "message", "request_id"}}; see Errors and limits.
Endpoints
| Area | Endpoints |
|---|---|
| Sign-in | GET /v1/auth/camel/start, /callback; POST /v1/auth/signup, /workspaces, /token, /join |
| Workspace | GET, PATCH /v1/workspace |
| Members and invites | /v1/members, /v1/members/{user_id}, /v1/invites, /v1/invites/{id} |
| API keys | /v1/api-keys, /v1/api-keys/{id} |
| Agents | /v1/agents, /v1/agents/{slug} |
| Runs | POST /v1/agents/{slug}/runs, /v1/runs/{run_id}, /continue, /cancel, /events |
| Knowledge | /v1/knowledge/documents, /files, /jobs, /search |
| Audit | GET /v1/audit |
| Service | /healthz, /readyz, /openapi.yaml |
In total: 34 /v1 endpoints plus 4 service endpoints.
Last updated on