# List queues

`GET https://api.morevoice.ai/v1/queues`

Your queues, newest first.

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

Operation ID: `queues_list`.

## Parameters

### Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | `integer` | no | How many objects to return, 1–100 (default 20). |
| `starting_after` | `string` | no | A cursor (`next_cursor`) or object ID: return the objects after it (older). |
| `ending_before` | `string` | no | A cursor or object ID: return the objects before it (newer). |

### 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. |

## Responses

### 200 OK

OK Returns `QueueList`.

| Field | Type | Description |
| --- | --- | --- |
| `object` | `"list"` | — |
| `data` | `Queue[]` | — |
| `has_more` | `boolean` | Whether more objects follow in the requested direction. |
| `next_cursor` | `string \| null` | Pass as starting_after (or ending_before, when paging backwards) to continue; null on the last page. |
| `url` | `string` | The list's path. |

Example:

```json
{
  "data": [
    {
      "away_on_missed": true,
      "callbacks": {
        "agent_id": null,
        "assistant_id": null,
        "priority": 5,
        "route": "agent_queue",
        "voicemail_to_callback": false
      },
      "copilot_profile_id": null,
      "created": "2026-11-03T09:14:22.000Z",
      "enabled": true,
      "hold": {
        "announce_position": false,
        "announcement": "",
        "audio": "music",
        "audio_asset_id": null,
        "position_interval_seconds": 45
      },
      "id": "q_4Gk2LmN9pQ4rS6tV8wX0yZ",
      "livemode": true,
      "max_wait_seconds": 120,
      "member_team_ids": [
        "team_7Hj2Kl4Mn6Pq8Rs0Tu2Vw"
      ],
      "member_user_ids": [
        "usr_2Lm8Pq4Rt6Vx0Zb3Nd5Fh7"
      ],
      "name": "Support",
      "object": "queue",
      "overflow": {
        "action": "assistant",
        "assistant_id": "asst_3cYbE6uYvGkH8w4ZK1rTqd",
        "number": "",
        "queue_id": null,
        "user_id": null,
        "when_no_agents": true
      },
      "ring_timeout_seconds": 20,
      "strategy": "longest_idle",
      "updated": "2026-11-03T09:14:22.000Z",
      "voice_assistant_id": null,
      "voicemail": {
        "max_seconds": 90,
        "message": ""
      },
      "wait_keys": {
        "callback": "",
        "voicemail": ""
      },
      "wrap_up_seconds": 15
    }
  ],
  "has_more": false,
  "next_cursor": null,
  "object": "list",
  "url": "/v1/queues"
}
```

### 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`.

### 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

for await (const queue of mv.queues.list()) {
	console.log(queue);
}
```

**Python**

```python
from morevoice import MoreVoice

client = MoreVoice()  # MOREVOICE_API_KEY from the environment

for queue in client.queues.list():
    print(queue)
```

**cURL**

```sh
curl https://api.morevoice.ai/v1/queues \
  -H "Authorization: Bearer $MOREVOICE_API_KEY"
```
