Trillet AI logo

Get Available Countries

Retrieve a list of countries where phone numbers are available for purchase.

GEThttps://api.trillet.ai/v1/api/twilio/available-countries

Your role needs the phone_number:view permission. Otherwise the request fails with 403 {"error": "Insufficient permissions"}.

US, CA and AU are always listed. GB is listed only when UK numbers are offered on the platform, so read the response rather than assuming it is there.

Headers

x-workspace-idstringrequired

Workspace identifier for the API.

Response Fields

countriesarray

Array of available countries.

codestring

Two-letter country code: US, CA, AU, and GB when UK numbers are offered.

namestring

Full country name.

availableboolean

Always true. Only countries you can buy numbers in are listed.

{
  "countries": [
    { "code": "US", "name": "United States", "available": true },
    { "code": "CA", "name": "Canada", "available": true },
    { "code": "AU", "name": "Australia", "available": true },
    { "code": "GB", "name": "United Kingdom", "available": true }
  ]
}

Last updated on