cURL
curl --request DELETE \ --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>" ] } '
{ "deleted": [ "<string>" ], "errors": [ { "phoneNumber": "<string>", "error": "<string>" } ] }
Phone numbers to release in a single call.
Releases are processed independently; see the response for per-number results.
List of phone numbers to delete
1
Successful response
Per-number results of a batch release — phone numbers that were successfully released, plus any that couldn't be and why.
Successfully deleted phone numbers
Per-number errors (omitted when empty)
Show child attributes
Was this page helpful?