Skip to main content
POST
/
agent
/
v1
/
agent
/
search-phone-numbers
Search Phone Numbers
curl --request POST \
  --url https://api.voice.ai/agent/v1/agent/search-phone-numbers \
  --header 'Content-Type: application/json' \
  --data '
{
  "country_code": "US",
  "area_code": "<string>",
  "provider": "twilio"
}
'
{
  "results": [
    {
      "phone_number": "<string>",
      "country_code": "<string>",
      "locality": "<string>",
      "region": "<string>"
    }
  ],
  "total_results": 0
}

Body

application/json
country_code
string
default:US

Country code (e.g., 'US', 'CA')

area_code
string · null · null

3-digit area code (e.g., '415')

provider
string
default:twilio

Provider: 'twilio' or 'telnyx'

Response

Successful Response

results
AvailablePhoneNumber · object[]
required
total_results
integer
default:0