# Call a callback now

`POST https://api.morevoice.ai/v1/callbacks/{id}/call`

Calls the customer back now, without waiting for its time. `via` agent: rings `agent_id`'s softphone right away (they must be connected and not on a call: 409 `offline` / `on-call`); answering dials the customer. `via` assistant: the AI assistant calls them now. A callback ringing for someone else, on a call or closed is a 409; a number on the do-not-call list a 403. Needs a live key.

Authenticate with a secret API key: `Authorization: Bearer $MOREVOICE_API_KEY`.

Operation ID: `callbacks_call`.

## Parameters

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | yes | A callback ID (`cb_…`). |

### Headers

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `MoreVoice-Version` | `string` | no | The API version to use for this request. Defaults to the version the API key is pinned to. |
| `Idempotency-Key` | `string` | no | A unique key (for example a UUID) that makes this request safe to retry: for 24 hours, a retry with the same key and parameters returns the first response instead of acting twice. |

## Request body

Optional, `application/json`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `agent_id` | `string` | no | The agent the action is taken for (a member's user ID): the callback must be one they see in the inbox (theirs, claimed or created by them, or their queues'), as in the app. Required with `via` agent; they must be connected and free. |
| `via` | `"agent" \| "assistant"` | no | `agent` (default): ring `agent_id`'s softphone now; answering dials the customer. `assistant`: the callback's AI assistant calls the customer now. |

Example:

```json
{
  "agent_id": "usr_4Gk2LmN9pQ4rS6tV8wX0yZ",
  "via": "agent"
}
```

## Responses

### 200 OK

OK Returns `CallbackCallResult`.

| Field | Type | Description |
| --- | --- | --- |
| `object` | `"callback_call"` | — |
| `via` | `"agent" \| "assistant"` | — |
| `call_id` | `string \| null` | `call_…` ID. |
| `callback` | `Callback` | A request to call someone back, and its progress. |
| `callback.object` | `"callback"` | — |
| `callback.id` | `string` | A callback ID (prefix `cb_`). |
| `callback.livemode` | `boolean` | `true` in live mode, `false` in test mode. |
| `callback.phone` | `string` | The number to call back, E.164. |
| `callback.name` | `string` | The person's name, when known. |
| `callback.status` | `string` | `pending` (waiting for its time), `offered` (ringing an agent), `dialing`, `connected` (on the call back), `completed`, `failed` (attempts used up), `cancelled` or `expired` (past its window, or too old). |
| `callback.source` | `string` | Where the request came from: `queue` (a caller pressed the callback key), `ivr`, `flow`, `ai` (the assistant booked it), `web` (a website form), `manual`, `campaign`, `voicemail` or `api`. |
| `callback.site_id` | `string \| null` | The website form it came from (`source` = web). |
| `callback.due_at` | `string` | The earliest time to call back (moved into business hours). |
| `callback.window_end` | `string \| null` | Don't call after this time; null: no limit. |
| `callback.priority` | `integer` | 1 (low) … 10 (urgent); higher is returned sooner. |
| `callback.route` | `string` | Who returns it: `agent_queue` (offered to the next free agent of `queue_id`, then dialled), `agent` (`agent_id` calls back) or `assistant` (the AI `assistant_id` calls back). |
| `callback.queue_id` | `string \| null` | `q_…` ID. |
| `callback.agent_id` | `string \| null` | `usr_…` ID. |
| `callback.claimed_by` | `string \| null` | `usr_…` ID. |
| `callback.assistant_id` | `string \| null` | `asst_…` ID. |
| `callback.attempts` | `integer` | Call-back attempts made so far. |
| `callback.max_attempts` | `integer` | — |
| `callback.last_attempt_at` | `string \| null` | — |
| `callback.last_result` | `string \| null` | The last attempt's result, e.g. `answered`, `no-answer`, `busy`, `done-manually`. |
| `callback.call_id` | `string \| null` | `call_…` ID. |
| `callback.origin_call_id` | `string \| null` | `call_…` ID. |
| `callback.notes` | `string` | Notes for whoever returns it (each note is stamped with its time and author). |
| `callback.summary` | `string \| null` | The AI summary of the originating call, when there is one. |
| `callback.voicemail` | `CallbackVoicemail \| null` | `source` = voicemail: the message the caller left. null for every other source. |
| `callback.sla_at` | `string \| null` | When it should have been returned by (the SLA target, in business hours). |
| `callback.merged_requests` | `integer` | Later requests for the same number merged into this one. |
| `callback.context` | `object` | — |
| `callback.metadata` | `Metadata` | Up to 50 key/value pairs (keys up to 40 characters, values up to 500) you attach to an object. Returned as sent. |
| `callback.completed_at` | `string \| null` | — |
| `callback.created` | `string` | An ISO-8601 timestamp in UTC. |
| `callback.updated` | `string` | An ISO-8601 timestamp in UTC. |

Example:

```json
{
  "call_id": null,
  "callback": {
    "agent_id": null,
    "assistant_id": null,
    "attempts": 0,
    "call_id": null,
    "claimed_by": null,
    "completed_at": null,
    "context": {
      "web": null
    },
    "created": "2026-11-03T09:14:22.000Z",
    "due_at": "2026-11-03T10:00:00.000Z",
    "id": "cb_2dXk9QmZ4rTv",
    "last_attempt_at": null,
    "last_result": null,
    "livemode": true,
    "max_attempts": 3,
    "merged_requests": 0,
    "metadata": {
      "crm_ticket": "T-1042"
    },
    "name": "Dana Levi",
    "notes": "Asked about the renewal offer.",
    "object": "callback",
    "origin_call_id": null,
    "phone": "+972501234567",
    "priority": 5,
    "queue_id": "q_3hRf8Kd2LmPq",
    "route": "agent_queue",
    "site_id": null,
    "sla_at": "2026-11-03T11:00:00.000Z",
    "source": "api",
    "status": "offered",
    "summary": null,
    "updated": "2026-11-03T09:14:22.000Z",
    "voicemail": null,
    "window_end": null
  },
  "object": "callback_call",
  "via": "agent"
}
```

### 400 Bad Request

The request is invalid: a parameter is missing, malformed or unknown, or the version header is unknown. Returns `ErrorEnvelope`.

### 401 Unauthorized

No valid API key was sent. Returns `ErrorEnvelope`.

### 403 Forbidden

The key may not do this (a missing scope, a plan limit, or a compliance block). Returns `ErrorEnvelope`.

### 404 Not Found

No object with this ID (in the path or the body) exists in this organisation and mode. Returns `ErrorEnvelope`.

### 409 Conflict

The request conflicts with the object's state, or the Idempotency-Key was reused with other parameters. Returns `ErrorEnvelope`.

### 413 Payload Too Large

The request body is larger than the endpoint accepts, or has more parts or files than it takes. Returns `ErrorEnvelope`.

### 415 Unsupported Media Type

The request body's Content-Type is not one the endpoint takes. Returns `ErrorEnvelope`.

### 429 Too Many Requests

Too many requests, or no call capacity right now. Retry after the Retry-After delay. Returns `ErrorEnvelope`.

### 500 Internal Server Error

Something went wrong on MoreVoice's side. Retry with the same Idempotency-Key. Returns `ErrorEnvelope`.

## Code samples

**TypeScript**

```ts
import MoreVoice from "@morevoice/sdk";

const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment

const callbackCallResult = await mv.callbacks.call("cb_7Hk2Lm9Qp", {
	agent_id: "usr_4Gk2LmN9pQ4rS6tV8wX0yZ",
	via: "agent",
});
console.log(callbackCallResult);
```

**Python**

```python
from morevoice import MoreVoice

client = MoreVoice()  # MOREVOICE_API_KEY from the environment

callback_call_result = client.callbacks.call("cb_7Hk2Lm9Qp", {
    "agent_id": "usr_4Gk2LmN9pQ4rS6tV8wX0yZ",
    "via": "agent",
})
print(callback_call_result)
```

**cURL**

```sh
curl -X POST https://api.morevoice.ai/v1/callbacks/cb_7Hk2Lm9Qp/call \
  -H "Authorization: Bearer $MOREVOICE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "agent_id": "usr_4Gk2LmN9pQ4rS6tV8wX0yZ",
  "via": "agent"
}'
```
