The AccountPhoneNumber Object
Attributes
The phone number.
Alias for the phone number.
Associated subaccount (null if main account).
Date rented. Format:
YYYY-MM-DD.Linked application URI.
Plivo or incoming carrier name.
City and country.
Number type. Values:
local, fixed, tollfree, mobile, national.Monthly fee (USD).
Next billing date. Format:
YYYY-MM-DD.Can receive SMS.
Cost per SMS (USD).
Can receive MMS.
Cost per MMS (USD).
Can receive calls.
Cost per minute (USD).
CNAM lookup status. Values:
enabled, disabled, null.Caller ID name for outbound calls.
10DLC status. Values:
UNREGISTERED, PROCESSING, COMPLETED.Linked 10DLC campaign ID.
TF SMS verification. Values:
UNVERIFIED, PENDING_VERIFICATION, VERIFIED.URI to the number resource.
Example Object
List Account Phone Numbers
Returns all phone numbers in your account.Query Parameters
Filter by type. Values:
local, mobile, fixed, national, tollfree.Filter by prefix.
Filter by subaccount.
Filter by exact alias.
Filter by services. Values:
voice, sms, mms, or combinations.Filter by CNAM status. Values:
enabled, disabled.Filter by renewal date. Format:
YYYY-MM-DD. Supports variants: renewal_date__gt, renewal_date__gte, renewal_date__lt, renewal_date__lte.Filter by 10DLC status. Values:
unregistered, in_progress, registered.Filter by campaign ID.
Filter by TF verification status. Values:
unverified, pending_verification, verified.Results per page. Max: 20. Default: 20.
Pagination offset.
Example
Get an Account Phone Number
Retrieve details of a specific phone number.Example
Update an Account Phone Number
Change the application, subaccount, or alias for a phone number.Arguments
Application to assign (or Zentrunk inbound trunk_id).
Subaccount auth_id to transfer number to.
Alias for the number.
ID of an approved compliance record to link to this number. The compliance record must match the number’s country and type. See Compliance API for details.
CNAM lookup. Values:
enabled, disabled. US only.Caller ID name for outbound calls.
URL for CNAM registration updates.
HTTP method. Values:
GET, POST. Default: POST.Example
Response
Unrent a Number
Remove a phone number from your account. This operation cannot be undone.Example
Response
Related
- Phone Numbers - Search and buy numbers
- Incoming Carriers - Add numbers from your carrier
- Regulatory Compliance - Verification requirements