> ## Documentation Index
> Fetch the complete documentation index at: https://help.cloudtalk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Manage phone numbers with the API

> List and search your CloudTalk phone numbers, change their settings and see which users can call from each one with the v1 Numbers API.

List your phone numbers, change their settings and see who can call from each one. To change what a number does with a call, use the [Call flows API](https://help.cloudtalk.io/guides/call-flows/build-with-api.md).

```bash theme={"system"}
curl -u ACCESS_KEY_ID:ACCESS_KEY_SECRET \
  "https://api.cloudtalk.io/v1/numbers?country=US&capability=sms"
```

The API key acts as a company admin: it reads and changes every number in your account.

## List and search numbers

[List and search numbers](https://help.cloudtalk.io/api-reference/numbers/list-and-search-numbers.md) returns your numbers, oldest first. Filter by `country`, `numberType`, `capability` and `search`; a number must match all of them. `numberType` takes the same values as `number_type` in the [call webhooks](https://help.cloudtalk.io/guides/webhooks/events/calls.md). A shortened answer:

```json theme={"system"}
{
  "data": [
    {
      "id": "1201",
      "number": "+12025550143",
      "internalName": "Front desk",
      "numberType": "fixed",
      "capabilities": { "voice": true, "sms": true, "mms": false, "whatsapp": false },
      "callFlow": { "firstStepType": "ivrMenu", "stepCount": 7, "updatedAt": "2026-10-28T08:12:40Z" },
      "businessHours": { "active": true, "source": "number" }
    }
  ],
  "pagination": { "limit": 20, "next": "djE6MTIwNzo5YzJlNGE3MQ" },
  "requestId": "c41f0a9e2b"
}
```

A number with `callFlow.stepCount` `0` routes nowhere. `numberType` may get new values, so handle one you do not know. [Get a number](https://help.cloudtalk.io/api-reference/numbers/get-a-number.md) returns one number in the same shape.

| Status | Code | When |
| - | - | - |
| `400` | `PAGINATION.INVALID_CURSOR` | The cursor was issued with other filters. Send it with the same filters. |
| `400` | `VALIDATION.INVALID_PARAMETER` | A filter value is not valid, or the query parameter is unknown. |

## Change a number's settings

[Update a number](https://help.cloudtalk.io/api-reference/numbers/update-a-number.md) changes `internalName`, `userRecordingPause`, `mandatoryCallTagging` and `isVip`. Only the fields you send change, from the next call.

```bash theme={"system"}
curl -u ACCESS_KEY_ID:ACCESS_KEY_SECRET \
  -X PATCH https://api.cloudtalk.io/v1/numbers/1201 \
  -H "Content-Type: application/json" \
  -d '{"internalName": "Support line", "isVip": true}'
```

The response is the whole number after the change. No webhook is sent.

`userRecordingPause` and `mandatoryCallTagging` take `company` to follow the company setting, or `on` or `off`. On the AI Voice Agent plan, which has no human agents, they cannot change. `internalName` is up to 50 characters: emojis and control characters become spaces, repeated whitespace becomes one space and the ends are trimmed. A name that is empty after that is stored as `""`, and `null` clears it.

| Status | Code | When |
| - | - | - |
| `400` | `VALIDATION.INVALID_BODY` | The body is not one JSON object, or a field is unknown or has the wrong JSON type. |
| `403` | `NUMBERS.FEATURE_NOT_IN_PLAN` | Your plan does not include the feature of the field in `target`. |
| `409` | `NUMBERS.UPDATE_IN_PROGRESS` | Another change to the number is running. Retry. |
| `422` | `VALIDATION.INVALID_FIELD` | The body has no fields, or a value is outside its set or too long. |

## See who can call from a number

[List the users of a number](https://help.cloudtalk.io/api-reference/numbers/list-the-users-of-a-number.md) returns each user who can call from the number, and why.

```bash theme={"system"}
curl -u ACCESS_KEY_ID:ACCESS_KEY_SECRET \
  https://api.cloudtalk.io/v1/numbers/1201/users
```

```json theme={"system"}
{
  "data": [
    { "userId": "7", "name": "Ana Lopez", "email": "ana.lopez@example.com", "access": "assigned", "isDefaultOutbound": true }
  ],
  "pagination": { "limit": 20, "next": null },
  "requestId": "7a0c3e51d2"
}
```

| `access` | Why the user can call from the number |
| - | - |
| `assigned` | The number is one of the user's assigned numbers. |
| `allNumbers` | The user has no assigned numbers, so they can call from every company number with outbound calling enabled. |
| `defaultOnly` | The number is the user's default outbound number, but it is not assigned to them. |

Inactive users are not listed. `isDefaultOutbound` tells whether the number is the user's default caller ID.

## Errors

Every Numbers operation with a number id in its path answers `404 NUMBERS.NUMBER_NOT_FOUND` for an id that is unknown or belongs to another company. When you contact support, quote `requestId`, which is the request's `X-Request-ID`. [Error codes](https://help.cloudtalk.io/guides/error-codes.md) covers the error shape, `401`, `429` and `500`.


## Related topics

- [Manage contacts with the API](https://help.cloudtalk.io/guides/contacts/manage-with-api.md)
- [Blacklist a Number](https://help.cloudtalk.io/en/articles/2145423-blacklist-a-number.md)
- [API reference](https://help.cloudtalk.io/api-reference/overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.