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
OpenAPI 3.1
REST operations, SSE, errors, and schemas (openapi.yaml).
AsyncAPI 3.1
Voice WebSocket client and server events (asyncapi.yaml).
Base URL and authentication
| Item | Value |
|---|---|
| REST base URL | https://api.assistantcore.com |
| Voice WebSocket | wss://api.assistantcore.com/v1/voice (use the websocket_url a session returns) |
| Authentication | Authorization: Bearer <your-api-key> on every REST call |
| Request body | JSON (application/json), except file upload (multipart/form-data) |
| Status | Preview, 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
| Method | Path | Scope | Success |
|---|---|---|---|
POST | /v1/responses | chat:write | 200 |
GET | /v1/responses/{response_id} | chat:write | 200 |
POST | /v1/responses/{response_id}/cancel | chat:write | 200 |
POST | /v1/files | files:write | 201 |
GET | /v1/conversations/{conversation_id} | conversations:read | 200 |
GET | /v1/conversations/{conversation_id}/messages | conversations:read | 200 |
PUT | /v1/messages/{message_id}/feedback | feedback:write | 204 |
DELETE | /v1/messages/{message_id}/feedback | feedback:write | 204 |
POST | /v1/voice/sessions | voice:connect | 201 |
DELETE | /v1/users/{external_user_id} | users:delete | 204 |
Examples for each operation are in Chat API and Voice API.
Common headers
| Header | Direction | Meaning |
|---|---|---|
Idempotency-Key | Request | Optional on POST /v1/responses, 1–255 characters. |
X-Request-ID | Both | Sent on every response. If you send one (1–64 characters of A-Z a-z 0-9 . _ -), it is echoed back. |
RateLimit-Policy, RateLimit | Response | Rate-limit state; see Errors and limits. |
Retry-After | Response | Seconds to wait after 429 RATE_LIMITED. |
Idempotent-Replayed | Response | true 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
/v1without 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