Skip to navigation

GetPhoneNumberRegions

View as Markdown

Get the country regions of the phone numbers. The response also contains the info about multiple numbers subscription for the child accounts.

Allowed roles: Owner, Admin, Accountant, Payer.

Example request: Get the Russian regions of the phone numbers.

Authentication

AuthorizationBearer

Voximplant Management API uses signed JWT tokens generated from your service-account private key. Pass the token in the Authorization header as a Bearer value:

Authorization: Bearer $VOXIMPLANT_TOKEN

See Authorization for ready-to-copy snippets in bash, Python, Node.js and Go that turn your credentials.json into a token.

Query parameters

country_codestringRequired
The country code
phone_category_namestringRequired

The phone category name. See the [GetPhoneNumberCategories] method

country_statestringOptional

The country state code (example: AL, CA... )

omit_emptybooleanOptionalDefaults to true

Whether not to show all the regions (with and without phone numbers in stock)

phone_region_idintegerOptional
The phone region ID to filter
phone_region_namestringOptional
The phone region name to filter
phone_region_codestringOptional
The region phone prefix to filter
localestringOptional

The 2-letter locale code. Supported values are EN, RU

Response

Successful response
resultlist of objectsOptional