The Number Pool Object
Unique identifier for the number pool.
Subresource URI for numbers in the pool.
Subresource URI for shortcodes in the pool.
Example Object
Numbers
Numbers in a number pool have the following attributes:Unique identifier for the number pool.
The phone number.
The type of number. One of:
fixed, mobile, toll-free.The service capability of number. One of:
sms, mms.The ISO2 code of the country associated with the number.
Timestamp in ISO 8601 format.
Account phone number resource URI.
Example Number Object
Add a Number
Add SMS- and MMS-enabled numbers to a number pool resource.POST
Arguments
Set this parameter to
sms for SMS-enabled numbers or mms for MMS-enabled numbers. Defaults to sms.Response
Retrieve a Number
Retrieve the details of a specific number from a number pool.GET
Arguments
No arguments need to be passed.Response
List All Numbers
Fetch a list of numbers from a number pool.GET
Arguments
A comma-separated list of prefixes. Values provided should exclude the country code prefix. A maximum of 10 prefixes may be specified.
Filter by number type:
fixed, toll-free, or mobile. Note that local and national numbers should be considered as fixed.Filter by capability:
sms or mms.ISO2 code of the phone number country. Required if the
starts_with filter is specified.Number of results per page. Maximum is 20. Defaults to 20.
Number of value items by which the results should be offset. Defaults to 0.
Response
Remove a Number
Remove a number from a number pool.DELETE
Arguments
Set to
true to also unrent the number. Defaults to false.Response
Shortcodes
Shortcodes in a number pool have the following attributes:Unique identifier for the number pool.
The shortcode value.
ISO2 code of the country associated with the shortcode.
Timestamp in ISO 8601 format.
Example Shortcode Object
Retrieve a Shortcode
Retrieve the details of a specific shortcode from a number pool.GET
Arguments
No arguments need to be passed.Response
List All Shortcodes
Fetch a list of shortcodes from a number pool.GET
Arguments
No arguments need to be passed.Response
Remove a Shortcode
Remove a shortcode from a number pool. Note that the shortcode is only unlinked from the number pool, not unrented.DELETE
Arguments
No arguments need to be passed.Response
Toll-Free Numbers
Toll-free numbers in a number pool have the following attributes:Unique identifier for the number pool.
The toll-free number.
The type of number. Always
tollfree for toll-free numbers.The service capability:
sms or mms.ISO2 code of the country associated with the toll-free number.
Timestamp in ISO 8601 format.
Account phone number resource URI.
Example Toll-Free Object
Add a Toll-Free Number
Add existing SMS- and MMS-enabled toll-free numbers to a number pool.POST
Arguments
No arguments need to be passed.Response
Retrieve a Toll-Free Number
Retrieve the details of a specific toll-free number from a number pool.GET
Arguments
No arguments need to be passed.Response
List All Toll-Free Numbers
Fetch a list of all toll-free numbers from a number pool.GET
Arguments
No arguments need to be passed.Response
Remove a Toll-Free Number
Remove a toll-free number from a number pool.DELETE
Arguments
Set to
true to also unrent the toll-free number. Defaults to false.