Skip to Content
Assistant Core

Developer API reference

Base URL, authentication, operations, response objects, and machine-readable contracts for Developer API v1.

The OpenAPI and AsyncAPI files are the source of truth for every request, response, and event. Use them for code generation; this page summarises them.

Specification files

Base URL and authentication

ItemValue
REST base URLhttps://api.assistantcore.com
Voice WebSocketwss://api.assistantcore.com/v1/voice (use the websocket_url a session returns)
AuthenticationAuthorization: Bearer <your-api-key> on every REST call
Request bodyJSON (application/json), except file upload (multipart/form-data)
StatusPreview, no separate sandbox

The key decides the assistant and the allowed scopes. Read endpoints take external_user_id as a query parameter; write endpoints take it in the body.

Operations

MethodPathScopeSuccess
POST/v1/responseschat:write200
GET/v1/responses/{response_id}chat:write200
POST/v1/responses/{response_id}/cancelchat:write200
POST/v1/filesfiles:write201
GET/v1/conversations/{conversation_id}conversations:read200
GET/v1/conversations/{conversation_id}/messagesconversations:read200
PUT/v1/messages/{message_id}/feedbackfeedback:write204
DELETE/v1/messages/{message_id}/feedbackfeedback:write204
POST/v1/voice/sessionsvoice:connect201
DELETE/v1/users/{external_user_id}users:delete204

Examples for each operation are in Chat API and Voice API.

Common headers

HeaderDirectionMeaning
Idempotency-KeyRequestOptional on POST /v1/responses, 1–255 characters.
X-Request-IDBothSent on every response. If you send one (1–64 characters of A-Z a-z 0-9 . _ -), it is echoed back.
RateLimit-Policy, RateLimitResponseRate-limit state; see Errors and limits.
Retry-AfterResponseSeconds to wait after 429 RATE_LIMITED.
Idempotent-ReplayedResponsetrue when a completed idempotent request is replayed.

Objects

Response

Returned by POST /v1/responses (non-streaming), GET /v1/responses/{response_id}, and POST /v1/responses/{response_id}/cancel. GET /v1/responses/{response_id} also takes stream (boolean, default false) and starting_after (integer ≥ 0, default 0) to follow a background response's SSE events; see Background responses.

Prop

Type

File

Prop

Type

Conversation and message

Prop

Type

A message page is { "object": "list", "data": [...], "has_more", "first_id", "last_id" }.

Voice session

Prop

Type

Error

Every /v1 error, and the SSE error event, uses this shape. Codes are listed in Errors and limits.

Prop

Type

Compatibility during Preview

  • New optional fields, events, and operations can be added to /v1 without a new path. Ignore fields and event types you do not know.
  • Breaking changes are listed in the changelog, before rollout whenever possible.
  • Do not depend on fields or events that are not in the contracts.
  • The GA contract and the deprecation and sunset policy will be published before Preview ends.

Preview is not a GA compatibility commitment. Pin code generation to a contract revision you have tested, and read the changelog before you update.

Last updated on