Skip to content

Search for available phone numbers

Request

Search for available phone numbers that are available for you to activate. You can filter by any property on the available number resource.

When searching, indicate the capability of the number in the array as SMS and/or VOICE. To search for a number capable of both, list both SMS and VOICE.

You can search for numbers in any region and of any number type. To buy a number from the search results, use the Number Order API.

Security
Basic or OAuth2.0
Path
projectIdstringrequired

Found on your Sinch Customer Dashboard. Settings > Projects.

Example:YOUR_projectId
Query
numberPattern.patternstring

Sequence of digits to search for. If you prefer or need certain digits in sequential order, you can enter the sequence of numbers here. For example, 2020.

Example:numberPattern.pattern=%2B120
numberPattern.searchPatternstring(Search Pattern)

Search pattern to apply. The options are, START, CONTAINS, and END.

Enum ValueDescription
START

Numbers that start with the provided sequence of digits.

CONTAINS

Numbers that contain the sequence of digits entered.

END

Numbers that end with the sequence of digits entered.

regionCodestringrequired

Region code to filter by. ISO 3166-1 alpha-2 country code of the phone number. Example: US, GB or SE.

Example:regionCode=US
typestring(Type)required

Number type to filter by. Options include, MOBILE, LOCAL or TOLL_FREE.

Enum ValueDescription
LOCAL

Numbers that are assigned to a specific geographic region.

MOBILE

Numbers that belong to a specific range.

TOLL_FREE

Numbers that are free of charge for the calling party but billed for all arriving calls.

capabilitiesArray of strings

Number capabilities to filter by SMS and/or VOICE.

sizeinteger, (int32)

Optional. The maximum number of items to return.

Example:size=3
curl -i -X GET \
  -u '<username>:<password>' \
  'https://numbers.api.sinch.com/v1/projects/YOUR_projectId/availableNumbers?numberPattern.pattern=%252B120&numberPattern.searchPattern=START&regionCode=US&type=LOCAL&capabilities=SMS&size=3'

Responses

A successful response, or an Error.

Bodyapplication/json
availableNumbersArray of objects(Available Number)

List of available phone numbers.

Response
{ "availableNumbers": [ { … } ] }