Phone & voice · Phone Numbers
Returns offerable number countries.
GET
https://api.pozy.ai/v1/phone-numbers/countriesPublic, no API keylistPhoneNumberCountries
Guides: Buy a number, Phone numbers
Request
This endpoint is public. Call it without an API key.
Example
curl -X GET "https://api.pozy.ai/v1/phone-numbers/countries"const res = await fetch("https://api.pozy.ai/v1/phone-numbers/countries");
const data = await res.json();
if (!res.ok) throw new Error(data?.error ?? `Request failed with status ${res.status}`);
console.log(data);import os
import requests
resp = requests.get(
"https://api.pozy.ai/v1/phone-numbers/countries",
timeout=30,
)
resp.raise_for_status()
print(resp.json())Response
200 on success
countriesarray of object11 child fields
codestringtierintegerOne of
1,2,3,4.monthlyCentsintegerneedsKycbooleancallsAvailablebooleanwhatsappAvailablebooleansmsAvailablebooleanoutboundCallingAvailablebooleaninStockbooleanpreOrderablebooleantypesarray of object10 child fields
numberTypestringOne of
local,mobile,national,toll_free.tierintegerOne of
1,2,3,4. Can be null.needsKycbooleanmonthlyCentsintegerwhatsappAvailablebooleansmsAvailablebooleancallsAvailablebooleaninStockbooleanfulfilmentstringOne of
instant,request.preOrderableboolean
200 response
{
"countries": [
{
"code": "string",
"tier": 1,
"monthlyCents": 1,
"needsKyc": true,
"callsAvailable": true,
"whatsappAvailable": true,
"smsAvailable": true,
"outboundCallingAvailable": true,
"inStock": true,
"preOrderable": true,
"types": [
{
"numberType": "local",
"tier": 1,
"needsKyc": true,
"monthlyCents": 1,
"whatsappAvailable": true,
"smsAvailable": true,
"callsAvailable": true,
"inStock": true,
"fulfilment": "instant",
"preOrderable": true
}
]
}
]
}Errors
Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:
| 400 | invalid_request_error | A parameter or body field is missing or invalid. param names it. |
| 429 | rate_limit_error | Too many requests this minute. Wait for Retry-After seconds. |
Every code is listed in Errors.
More in Phone Numbers
GETList phone numbersGETGet phone numberDELRelease phone numberPOSTPurchase phone numberGETResolve a number claimGETSearch available numbersGETCheck country availabilityGETGet KYC form specPOSTSubmit KYCGETView a KYC document on filePOSTUpload a KYC documentPOSTPre-validate KYC addressPOSTCreate a hosted KYC linkGETList port-in ordersPOSTPort numbers inPOSTCheck portabilityGETResolve a port claimPOSTUpload a porting documentGETCountry porting requirementsGETA port-in order's pending requirementsDELCancel a port-inPOSTPre-review a KYC packetGETGet declined requirementsPOSTResubmit a declined numberPOSTReply to the regulatory reviewerPOSTRespond to the regulatory reviewer (message + corrections)GETList stock watchesPOSTWatch an out-of-stock countryDELStop watching a countryPOSTRequest the WhatsApp verification code for a number