cURL
curl --request POST \ --url https://api.us.poly.ai/v1/agents/{agentId}/telephony/phone-numbers/batch \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "phoneNumbers": [ "<string>" ] } '
{ "found": [ { "number": "<string>", "projectId": "<string>", "accountId": "<string>", "clientEnv": "<string>", "connectorId": "<string>" } ], "notFound": [ "<string>" ] }
Set of E.164 phone numbers to retrieve in a single call.
List of phone numbers to retrieve
1
Successful response
Result of a batch phone-number lookup, partitioned into numbers that were found and numbers that weren't.
Show child attributes
Was this page helpful?