Purchase a new phone number for the account. You can specify search criteria or let the system select a random number.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The account for which the phone number should be created.
"acct_01j9a43avnfqzbjfch6pygv1td"
Parameters for purchasing a new phone number. The system will automatically infer the type in certain cases:
The desired area code for this phone number. If provided without type, the type will be inferred.
"801"
Latitude to search for nearby phone numbers. Must be used with longitude. If provided without type, type will be inferred as 'local'.
-90 <= x <= 9040.7128
Longitude to search for nearby phone numbers. Must be used with latitude. If provided without type, type will be inferred as 'local'.
-180 <= x <= 180-74.006
Whether the phone number is local or toll-free. Can be omitted if area_code or latitude/longitude are provided.
local, toll_free "local"
Purchased phone number
A phone number that can be used to send and receive messages and calls