- API reference
- Numbers
- Search for available phone numbers
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.
Found on your Sinch Customer Dashboard. Settings > Projects.
Search pattern to apply. The options are, START, CONTAINS, and END.
| Enum Value | Description |
|---|---|
| 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. |
Number type to filter by. Options include, MOBILE, LOCAL or TOLL_FREE.
| Enum Value | Description |
|---|---|
| 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. |
- Global APIhttps://numbers.api.sinch.com/v1/projects/{projectId}/availableNumbers
curl -i -X GET \
-u '<username>:<password>' \
'https://numbers.api.sinch.com/v1/projects/YOUR_projectId/availableNumbers?numberPattern.pattern=%252B120&numberPattern.searchPattern=START®ionCode=US&type=LOCAL&capabilities=SMS&size=3'A successful response, or an Error.
{ "availableNumbers": [ { … } ] }