# API reference (/docs/api-reference)

| Endpoint | What it does |
|---|---|
| [`POST /v1/calls`](/docs/api-reference/createCall) | Create a call |
| [`GET /v1/calls/{id}`](/docs/api-reference/getCall) | Get a call and its result |
| [Webhook `callResult`](/docs/api-reference/callResult) | Sent to your `webhook_url` when the call ends |

**Authentication:** `Authorization: Bearer ch_live_xxxxxxxxxxxx`. Create keys in the dashboard under **API keys**.

**Spec:** download [`/openapi.json`](/openapi.json) (OpenAPI 3.1) to generate clients or give it to your AI assistant.

**Errors:** every error is `{ "error": { "code", "message", "docs_url" } }`. See [Errors](/docs/errors).