# Developer API

URL: https://docs.assistantcore.com/en/developers

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.

<Callout type="info">
Developer API v1 is in Preview. The contract may change before general availability; breaking changes are listed in the [changelog](/en/developers/changelog).
</Callout>

## Who can use it [#who-can-use-it]

| Requirement | Detail |
| :--- | :--- |
| Plan | Every plan includes the Developer API, Free included. Plans differ only in [rate limits](/en/developers/errors-limits#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](/en/billing/credits). |

## Endpoints and scopes [#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](/en/developers/reference#operations).
- What each scope allows: [API keys and security](/en/developers/api-keys-security).

## How a request flows [#how-a-request-flows]

1. Your end user signs in to your application.
2. Your backend maps that signed-in user to a stable `external_user_id`.
3. Your backend calls the Developer API with an API key from its secret store.
4. 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`.

<Callout type="warn">
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.
</Callout>

## Choose an integration [#choose-an-integration]

| Goal | Use |
| :--- | :--- |
| Add a ready-made chat window to a website | [Web Widget](/en/web-widget) |
| Use the hosted chat and voice app on your own domain | [Web App](/en/web-app) |
| Build your own UI, workflow, or backend automation | Developer API ([Chat API](/en/developers/chat-api)) |
| Build a voice client that captures and plays audio itself | [Voice API](/en/developers/voice-api) |

<Cards>
<Card title="Quickstart" description="Create an API key and get your first response in a few minutes." href="/en/developers/quickstart" />

<Card title="API keys and security" description="Scopes, expiry, IP allowlists, rotation, and revocation." href="/en/developers/api-keys-security" />

<Card title="Chat API" description="Requests, SSE streaming, files, history, and feedback." href="/en/developers/chat-api" />

<Card title="Errors and limits" description="Error codes, retries, and rate limits." href="/en/developers/errors-limits" />
</Cards>