Skip to main content
POST
/
v1
/
phone
/
provision
Provision phone number
curl --request POST \
  --url https://api.usenaive.ai/v1/phone/provision \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "area_code": "<string>",
  "label": "<string>",
  "type": "local",
  "ein": "<string>",
  "agent_id": "<string>"
}
'
{}

Authorizations

Authorization
string
header
required

Workspace API key. Create one via the dashboard or POST /v1/auth/keys.

Body

application/json
area_code
string
label
string
type
enum<string>
default:local
Available options:
local,
toll_free
ein
string
agent_id
string

Response

Provisioned.

The response is of type object.