# Put a call on hold or take it off hold

`POST https://api.morevoice.ai/v1/calls/{id}/hold`

Calls handled by a human agent: the customer hears the hold music while `on` is true.

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

Operation ID: `calls_hold`.

## Parameters

### Path parameters

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

### 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 |
| --- | --- | --- | --- |
| `on` | `boolean` | no | true: put the customer on hold; false: take them off hold. |

Example:

```json
{
  "on": true
}
```

## Responses

### 200 OK

OK Returns `CallControl`.

| Field | Type | Description |
| --- | --- | --- |
| `object` | `"call_control"` | — |
| `call_id` | `string` | A call ID (prefix `call_`). |
| `status` | `CallStatus` | `queued` (placed, not ringing yet), `ringing`, `in_progress` (answered, or an inbound call being handled) or `ended`. One of `"queued"`, `"ringing"`, `"in_progress"`, `"ended"`. |
| `type` | `CallType` | Who handles the call: an AI assistant, a human agent, an IVR flow, a conference room, or a voicemail box. One of `"ai"`, `"human"`, `"ivr"`, `"conference"`, `"voicemail"`. |
| `phase` | `"active" \| "held" \| "consulting" \| "conference"` | — |
| `held` | `boolean` | The customer is on hold. |
| `consult` | `object \| null` | A running consultation (warm transfer). |
| `consult.name` | `string` | — |
| `consult.state` | `"ringing" \| "talking" \| "failed" \| "ended"` | — |
| `consult.talking_to` | `"caller" \| "consulted"` | — |
| `consult.fail_reason` | `string \| null` | — |
| `participants` | `CallParticipant[]` | — |
| `recording` | `boolean` | — |

Example:

```json
{
  "call_id": "call_8tRPaZp5hLMbrGqdJ9AmNa",
  "consult": null,
  "held": false,
  "object": "call_control",
  "participants": [
    {
      "held": false,
      "joined_at": "2026-11-03T09:14:22.000Z",
      "kind": "client",
      "muted": false,
      "name": "+972501234567",
      "number": "+972501234567",
      "participant_id": "client",
      "role": "member",
      "state": "connected",
      "user_id": null
    },
    {
      "held": false,
      "joined_at": "2026-11-03T09:14:22.000Z",
      "kind": "agent",
      "muted": false,
      "name": "Noa",
      "number": null,
      "participant_id": "agent",
      "role": "moderator",
      "state": "connected",
      "user_id": "usr_4Gk2LmN9pQ4rS6tV8wX0yZ"
    }
  ],
  "phase": "active",
  "recording": true,
  "status": "in_progress",
  "type": "human"
}
```

### 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 callControl = await mv.calls.hold("call_7Hk2Lm9Qp", {
	on: true,
});
console.log(callControl);
```

**Python**

```python
from morevoice import MoreVoice

client = MoreVoice()  # MOREVOICE_API_KEY from the environment

call_control = client.calls.hold("call_7Hk2Lm9Qp", {
    "on": True,
})
print(call_control)
```

**cURL**

```sh
curl -X POST https://api.morevoice.ai/v1/calls/call_7Hk2Lm9Qp/hold \
  -H "Authorization: Bearer $MOREVOICE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "on": true
}'
```
