Phone & voice · Phone Numbers

Search available numbers

Searches available numbers.

GEThttps://api.pozy.ai/v1/phone-numbers/available
searchAvailablePhoneNumbers

Guides: Phone numbers, Buy a number, SMS

Request

Send your API key as Authorization: Bearer pz_live_.... Read-only keys can call it. Keys with the telephony resource group disabled get 403 resource_group_disabled. Authentication

Query parameters

NameTypeNotes
countrystringDefault US
numberTypestringOne of local, mobile, national, toll_free
areaCodestring
typestring
prefixstring
localitystring
containsstring
smsboolean
limitintegerDefault 20At most 100
maskedboolean

Example

curl -X GET "https://api.pozy.ai/v1/phone-numbers/available?limit=20" \
  -H "Authorization: Bearer $POZY_API_KEY"

Response

200 on success

  • countrystring
  • numberTypestring
  • requireSmsboolean
  • numbersarray of object
    8 child fields
    • phoneNumberstring
    • featuresarray of string
    • localitystring
    • bestEffortboolean
    • maskedNumberstring
    • numberTypestring
    • claimIdstring
    • claimUrlstring
  • maskedboolean
  • nearstring

    Can be null.

  • claimIdstring
  • claimUrlstring
200 response
{
  "country": "US",
  "numberType": "string",
  "requireSms": true,
  "numbers": [
    {
      "phoneNumber": "+14155550123",
      "features": [
        "string"
      ],
      "locality": "string",
      "bestEffort": true,
      "maskedNumber": "string",
      "numberType": "string",
      "claimId": "64d7462a13b28690b007b884",
      "claimUrl": "https://pozy.ai/media/example-1.jpg"
    }
  ],
  "masked": true,
  "near": "string",
  "claimId": "64d7462a13b28690b007b884",
  "claimUrl": "https://pozy.ai/media/example-1.jpg"
}

Errors

Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:

400invalid_request_errorA parameter or body field is missing or invalid. param names it.
401authentication_errorThe API key is missing, revoked or expired.
403permission_errorThe key is scoped to other profiles or has this resource group disabled.
429rate_limit_errorToo many requests this minute. Wait for Retry-After seconds.

Every code is listed in Errors.

More in Phone Numbers