Developer API
Call an assistant from your own backend over REST, Server-Sent Events, and WebSocket with a scoped API key.
The Developer API lets your backend chat with an assistant, upload files, read conversation history, and run voice sessions. An API key identifies the assistant; your backend sends an external_user_id that keeps conversations, files, and memory separate for each of your end users.
Developer API v1 is in Preview. The contract may change before general availability; breaking changes are listed in the changelog.
Who can use it
| Requirement | Detail |
|---|---|
| Plan | Every plan includes the Developer API, Free included. Plans differ only in rate limits. |
| Role | Only the Assistant Owner can create and manage API keys in the Admin Panel. |
| Billing | Every chat and voice turn uses the assistant owner's credits. |
Endpoints and scopes
The API has three groups of endpoints: chat responses and files, conversation history and feedback, and voice sessions. Each endpoint needs one scope on the API key.
- Every endpoint with its scope: API reference.
- What each scope allows: API keys and security.
How a request flows
- Your end user signs in to your application.
- Your backend maps that signed-in user to a stable
external_user_id. - Your backend calls the Developer API with an API key from its secret store.
- Your backend returns the JSON or forwards the SSE stream to the client. For voice, it returns only the short-lived session token and
websocket_url.
The API key is a server-side secret. Never put it in a browser, mobile app, URL, source control, or logs. Derive external_user_id from your own sign-in session; never accept it from the client, or one user could read another user's conversations.
Choose an integration
| Goal | Use |
|---|---|
| Add a ready-made chat window to a website | Web Widget |
| Use the hosted chat and voice app on your own domain | Web App |
| Build your own UI, workflow, or backend automation | Developer API (Chat API) |
| Build a voice client that captures and plays audio itself | Voice API |
Last updated on