Phone & voice · Phone Numbers

Country porting requirements

Returns the country porting requirements.

GEThttps://api.pozy.ai/v1/phone-numbers/port-in/requirements
getPhoneNumberPortInRequirements

Guides: Port a number in, Phone numbers

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
countryrequiredstringUp to 2 characters
numberTypestringOne of local, mobile, national, toll_freeDefault local

Example

curl -X GET "https://api.pozy.ai/v1/phone-numbers/port-in/requirements?country=US" \
  -H "Authorization: Bearer $POZY_API_KEY"

Response

200 on success

  • countrystring
  • numberTypestring
  • supportedboolean
  • fieldsarray of object
    • requirementIdstring
    • labelstring
    • kindstring

      One of text, date, address, file, action.

    • descriptionstring
    • examplestring
    • acceptableValuesarray of string
200 response
{
  "country": "US",
  "numberType": "string",
  "supported": true,
  "fields": [
    {
      "requirementId": "6296509a322aab288a61cc5d",
      "label": "string",
      "kind": "text",
      "description": "A short description",
      "example": "string",
      "acceptableValues": [
        "string"
      ]
    }
  ]
}

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