Skip to Content
The Ngamia platform API is in preview. Endpoints may change before general availability.
API referenceOverview

API reference

Base URL:

https://api.ngamia.com

The 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/*:

CredentialWhoHow to get it
Platform access tokenPeopleSign-in endpoints with a Camel Accounts token; lasts about 5 minutes
API key ngk_…Your serversPOST /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 own user IDs.
  • Timestamps are RFC 3339 in UTC.
  • Idempotency-Key is supported on starting runs.
  • Every response has an x-request-id header.
  • Errors use {"error": {"code", "message", "request_id"}}; see Errors and limits.

Endpoints

AreaEndpoints
Sign-inGET /v1/auth/camel/start, /callback; POST /v1/auth/signup, /workspaces, /token, /join
WorkspaceGET, 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}
RunsPOST /v1/agents/{slug}/runs, /v1/runs/{run_id}, /continue, /cancel, /events
Knowledge/v1/knowledge/documents, /files, /jobs, /search
AuditGET /v1/audit
Service/healthz, /readyz, /openapi.yaml

In total: 34 /v1 endpoints plus 4 service endpoints.

Last updated on