Skip to main content
POST
/
v1
/
agents
/
{agentId}
/
telephony
/
phone-numbers
Import phone numbers into a project
curl --request POST \
  --url https://api.us.poly.ai/v1/agents/{agentId}/telephony/phone-numbers \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "phoneNumbers": [
    "<string>"
  ],
  "clientEnv": "live"
}
'
{
  "imported": [
    "<string>"
  ]
}

Authorizations

x-api-key
string
header
required

Path Parameters

agentId
string
required

Body

application/json

A batch of phone numbers to import, all sharing the same environment assignment.

phoneNumbers
string[]
required

List of phone numbers to import

Minimum array length: 1
clientEnv
string
default:live

Client environment (sandbox, pre-release, live)

Response

Successful response

The set of phone numbers that were imported.

imported
string[]
required

List of successfully imported phone numbers

Last modified on April 22, 2026