---
title: "Create a free voice number, attach an agent, and add it to the pool"
description: "One action on purpose. A number with no agent to answer callbacks cannot be enrolled, so creating and assigning separately would leave a number the pool refuses. Free numbers are capped per voice account; the account's own message is returned when it declines. Does not dial.\n"
---

> Documentation Index
> Fetch the complete documentation index at: https://developer.channelautomations.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Channel Automation API › Voice AI

`POST /api/voice-campaigns/number-pools/{poolId}/provision`

One action on purpose. A number with no agent to answer callbacks cannot be enrolled, so creating and assigning separately would leave a number the pool refuses. Free numbers are capped per voice account; the account's own message is returned when it declines. Does not dial.

## Authentication

- `BearerAuth`, http, header `Authorization`, format `JWT`

## Path parameters

- `poolId` (`post/api/voice-campaigns/number-pools/poolId/provision.path.poolId`; string, required)
  - format `uuid`

## Request body

_Required._

- `area_code` (`post/api/voice-campaigns/number-pools/poolId/provision.area_code`; string, required) — 3-digit US area code
  - pattern `^[0-9]{3}$`
- `assistant_id` (`post/api/voice-campaigns/number-pools/poolId/provision.assistant_id`; string, required) — The agent that answers callbacks on this number
- `name` (`post/api/voice-campaigns/number-pools/poolId/provision.name`; string, optional)
  - maxLength 60
- `daily_cap` (`post/api/voice-campaigns/number-pools/poolId/provision.daily_cap`; integer, optional)
  - min 1; max 100000; default `20`
- `min_spacing_seconds` (`post/api/voice-campaigns/number-pools/poolId/provision.min_spacing_seconds`; integer, optional)
  - min 0; max 86400; default `60`

## Example request

```json
{
  "area_code": "string",
  "assistant_id": "string",
  "name": "string",
  "daily_cap": 20,
  "min_spacing_seconds": 60
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.channelautomation.com/api/voice-campaigns/number-pools/<poolId>/provision' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "area_code": "string",
  "assistant_id": "string",
  "name": "string",
  "daily_cap": 20,
  "min_spacing_seconds": 60
}
'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/voice-campaigns/number-pools/<poolId>/provision';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({
    area_code: 'string',
    assistant_id: 'string',
    name: 'string',
    daily_cap: 20,
    min_spacing_seconds: 60
  })
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.channelautomation.com/api/voice-campaigns/number-pools/<poolId>/provision"

payload = {
    "area_code": "string",
    "assistant_id": "string",
    "name": "string",
    "daily_cap": 20,
    "min_spacing_seconds": 60
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Number created

### 400

Invalid area code

### 401

Sign in required

### 403

Manager role or feature access required

### 404

Pool not found

### 502

The voice account declined


Source: https://developer.channelautomations.com/api/post-api-voice-campaigns-number-pools-pool-id-provision/index.md
