# List WhatsApp numbers

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

Your organization's WhatsApp Business numbers for calling, newest first. Needs a live key and WhatsApp calling enabled for the organization (otherwise 403 `feature_unavailable`). Access tokens are never returned.

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

Operation ID: `whatsapp_numbers_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). |
| `status` | `"active" \| "disabled"` | no | Only numbers with this status. |

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

| Field | Type | Description |
| --- | --- | --- |
| `object` | `"list"` | — |
| `data` | `WhatsAppNumber[]` | — |
| `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": [
    {
      "assistant_id": "asst_7Kp1Ns4Vy6Ab9Dg2Hj5Lm8",
      "callback_permission": "enabled",
      "calling": {
        "settings": {
          "call_icon_visibility": "DEFAULT"
        },
        "status": "enabled",
        "synced_at": "2026-11-08T09:20:01.000Z"
      },
      "created": "2026-11-08T09:14:22.000Z",
      "disabled_at": null,
      "disclosure_text": "שלום, כאן נציג AI של המרפאה, והשיחה מוקלטת.",
      "e164": "+97235550100",
      "flow_id": null,
      "id": "wan_4Gk2LmN9pQ4rS6tV8wX0yZ",
      "inbound_route_id": null,
      "label": "Support line",
      "livemode": true,
      "metadata": {
        "workspace_id": "ws_12"
      },
      "object": "whatsapp_number",
      "recording": "inherit",
      "status": "active",
      "token": {
        "checked_at": "2026-11-08T09:20:01.000Z",
        "fingerprint": "3f2a9c41d07b8e65",
        "last4": "oken",
        "rotated_at": "2026-11-08T09:14:22.000Z",
        "status": "ok"
      },
      "updated": "2026-11-08T09:14:22.000Z",
      "waba_id": "102290129340398",
      "whatsapp_phone_number_id": "106540352242922"
    }
  ],
  "has_more": false,
  "next_cursor": null,
  "object": "list",
  "url": "/v1/whatsapp_numbers"
}
```

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

### 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 whatsappNumber of mv.whatsappNumbers.list()) {
	console.log(whatsappNumber);
}
```

**Python**

```python
from morevoice import MoreVoice

client = MoreVoice()  # MOREVOICE_API_KEY from the environment

for whatsapp_number in client.whatsapp_numbers.list():
    print(whatsapp_number)
```

**cURL**

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