cURL
curl --request POST \ --url https://api.us.poly.ai/v1/agents/{agentId}/telephony/phone-numbers/{phoneNumber} \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "clientEnv": "live" } '
{ "imported": "<string>" }
Import settings for a single phone number, including which environment it routes to.
Client environment (sandbox, pre-release, live)
Successful response
The phone number that was imported.
The imported phone number
Was this page helpful?