The AccountPhoneNumber Object
Attributes
string
The phone number.
string
Alias for the phone number.
string
Associated subaccount (null if main account).
string
Date rented. Format:
YYYY-MM-DD.string
Linked application URI.
string
Plivo or incoming carrier name.
string
City and country.
string
Number type. Values:
local, fixed, tollfree, mobile, national.string
Monthly fee (USD).
string
Next billing date. Format:
YYYY-MM-DD.boolean
Can receive SMS.
string
Cost per SMS (USD).
boolean
Can receive MMS.
string
Cost per MMS (USD).
boolean
Can receive calls.
string
Cost per minute (USD).
string
CNAM lookup status. Values:
enabled, disabled, null.string
Caller ID name for outbound calls.
string
10DLC status. Values:
UNREGISTERED, PROCESSING, COMPLETED.string
Linked 10DLC campaign ID.
string
TF SMS verification. Values:
UNVERIFIED, PENDING_VERIFICATION, VERIFIED.string
UUID of the linked business profile.
null if no profile is linked.string
Caller Reputation activation status. Values:
PENDING, ACTIVE, FAILED, NOT_ENROLLED, null.string
URI to the number resource.
Example Object
List Account Phone Numbers
Returns all phone numbers in your account.Query Parameters
string
Filter by type. Values:
local, mobile, fixed, national, tollfree.string
Filter by prefix.
string
Filter by subaccount.
string
Filter by exact alias.
string
Filter by services. Values:
voice, sms, mms, or combinations.string
Filter by CNAM status. Values:
enabled, disabled.string
Filter by renewal date. Format:
YYYY-MM-DD. Supports variants: renewal_date__gt, renewal_date__gte, renewal_date__lt, renewal_date__lte.string
Filter by 10DLC status. Values:
unregistered, in_progress, registered.string
Filter by campaign ID.
string
Filter by TF verification status. Values:
unverified, pending_verification, verified.integer
Results per page. Max: 20. Default: 20.
integer
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
string
Application to assign (or Zentrunk inbound trunk_id).
string
Subaccount auth_id to transfer number to.
string
Alias for the number.
string
UUID of an
accepted compliance application to link to this number. The application must match the number’s country and type. This parameter only takes effect while the number is pending activation — for numbers that are already active, use the Bulk Link endpoint instead. See the Compliance API for details.string
CNAM lookup. Values:
enabled, disabled. US only.string
Caller ID name for outbound calls.
string
URL for CNAM registration updates.
string
HTTP method. Values:
GET, POST. Default: POST.string
Enable or disable Caller Reputation for this number. Values:
enabled, disabled. When set to enabled, profile_uuid is required. US local and toll-free numbers only. Early access beta. See Caller Reputation for details.string
UUID of the business profile to associate with this number. Required when
caller_reputation is set to enabled.string
URL to receive Caller Reputation status update notifications.
string
HTTP method for the callback. 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
- Caller Reputation - Register your business identity to reduce spam flagging