Skip to Content

Search Available Numbers

Search the inventory of phone numbers available to rent.

GEThttps://api.identitycall.ai/api/v1/public/virtual_numbers/available

Queries our phone-number provider for numbers available to purchase in the requested country and number type.

Requires read permission

Scopes

API key scopeBehavior
Account-wideAllowed.
Project-scopedAllowed. The search is provider-side and not constrained by project.

Query Parameters

Parameters

NameTypeRequiredDefaultDescription
countrystringNoUSISO 3166-1 alpha-2 country code (case-insensitive)
number_typestringNomobileNumber type: mobile, local, toll-free, or national

Request

curl -X GET "https://api.identitycall.ai/api/v1/public/virtual_numbers/available?country=US&number_type=local" \ -H "Authorization: Bearer $IDENTITYCALL_API_KEY"

Response

The shape of each entry is passed through from our phone-number provider. The fields below are typical but provider-dependent.

Response200 OK
{
"data": [
  {
    "phone_number": "+15551234567",
    "country_code": "US",
    "number_type": "local",
    "upfront_cost": "1.00",
    "monthly_cost": "1.00",
    "features": ["sms", "voice", "mms"],
    "region_information": [
      { "region_type": "state", "region_name": "CA" }
    ]
  },
  {
    "phone_number": "+15551234568",
    "country_code": "US",
    "number_type": "local",
    "upfront_cost": "1.00",
    "monthly_cost": "1.00",
    "features": ["voice"],
    "region_information": [
      { "region_type": "state", "region_name": "NY" }
    ]
  }
]
}

Response Fields

FieldTypeDescription
phone_numberstringE.164-formatted candidate number
country_codestringISO 3166-1 alpha-2 country code
number_typestringNumber category (mobile, local, toll-free, national)
upfront_coststringOne-time purchase cost (decimal as string)
monthly_coststringRecurring monthly cost (decimal as string)
featuresarrayCapabilities supported by the number
region_informationarrayProvider-supplied region metadata

Errors

StatusErrorDescription
422Provider errorThe upstream provider rejected the search (invalid country, etc.)

See Also

Try It

Try It