GET
/
phone_numbers
/
buy
curl --request GET \
  --url https://api.voiceos.io/phone_numbers/buy \
  --header 'Authorization: Bearer <token>'
[
  {
    "provider": "twilio",
    "phone_number": "<string>",
    "postal_code": "<string>",
    "iso_country": "<string>"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

contains
string

The digits that the phone number contains.

limit
integer
default:10

The number of available phone numbers to return.

Response

200
application/json
Successful Response
provider
enum<string>
required

The telephony provider.

Available options:
twilio
phone_number
string
required

The available phone number to buy.

postal_code
string

The postal code of the phone number.

iso_country
string

The iso country code of the phone number.