Number Pool
List all numbers
This API fetches a list of numbers from a number pool based on the number_pool_UUID
specified in the resource URI.
API Endpoint
GET
Arguments
starts_with | A comma-separated list of prefixes. Assume the values provided exclude the country code prefix. A max of 10 prefixes may be specified. Throws 400 Bad Request if more than 10 prefixes are specified. |
type | fixed, toll-free, or mobile. Note that local and national numbers should be considered as ‘fixed’. |
service | sms or mms. Use this argument to filter the numbers by capability. |
country_iso2 Conditional | ISO2 code of the phone number country. This attribute must be specified if the starts_with filter is specified. |
limit | Used to display the number of results per page. The maximum number of results that can be fetched is 20. Defaults to 20. |
offset | Denotes the number of value items by which the results should be offset. Defaults to 0. Read more about offset-based pagination.
|
Returns
This API returns the list of numbers from the number pool that match the filters specified in the request.
The API response also contains a meta
field with the following fields:
limit
: The size of the page returned in the response.next
: The URL that points to the next page of results.offset
: The offset for the page returned in the response.previous
: The URL that points to the previous page of results.total_count
: The total number of records that match the specified filters.