Use the Imported Numbers API endpoints to list imported numbers or import a number that's already been provisioned with an NNID for use with Sinch. Imported numbers can be used with Sinch SMS services.
Note: The SMS enablement process is only supported in United States and Canada.
Lists all imported numbers for the project.
Found on your Sinch Customer Dashboard. Settings > Projects.
Sequence of digits to search for. If you prefer or need certain digits in sequential order, you can enter the sequence of numbers here. When using START, a plus sign (+) must be included and URL encoded. For example, to search for area code 206 in the US, the url encoded string would be %2B1206
Search pattern to apply. The options are, START, CONTAIN, and END. Numbers that begin with the numberPattern.pattern entered. Often used to search for a specific area code.
| Enum Value | Description |
|---|---|
| START | Number starts with specified pattern. |
| CONTAIN | Number contains specified pattern. |
| END | Number ends with specified pattern. |
- Global APIhttps://imported.numbers.api.sinch.com/v1/projects/{projectId}/importedNumbers
curl -i -X GET \
-u '<username>:<password>' \
'https://imported.numbers.api.sinch.com/v1/projects/d1923022-5199-4bb3-a513-c47b3a656bc5/importedNumbers?regionCode=US&numberPattern.pattern=%2B1732&numberPattern.searchPattern=START&pageSize=20&pageToken=C2VNYXJrEg4KDCsxMjAxMjI2MzUyOQ%3D%3D&orderBy=createdTime&servicePlanId=324e4567-e89b-12d3-a456-426614174000&campaignId=123e4567-e89b-12d3-a456-426614174000'OK
{ "importedNumbers": [ { … } ], "nextPageToken": "string", "totalSize": 0 }