Create a phone number
Create a new phone number for the account. You can specify search criteria or let the system select a random number.
Path parameters
account_id
The account for which the phone number should be created.
Headers
Authorization
Bearer authentication of the form Bearer <token>
, where token is your auth token.
Request
Phone number params
area_code
The desired area code for this phone number. If provided without type, the type will be inferred.
latitude
Latitude to search for nearby phone numbers. Must be used with longitude. If provided without type, type will be inferred as 'local'.
longitude
Longitude to search for nearby phone numbers. Must be used with latitude. If provided without type, type will be inferred as 'local'.
type
Whether the phone number is local or toll-free. Can be omitted if area_code or latitude/longitude are provided.
Allowed values:
Response
Phone number
id
Unique identifier for the phone number
number
The phone number in E.164 format
type
Whether the phone number is local, toll-free, or short code
Allowed values: