Numbers///
- API reference
- Imported and Hosted Numbers Overview
- List imported numbers
Import number
Get imported number
Delete imported number
Update imported number
List imported numbers
Lists all imported numbers for the project.
Security
Basic or OAuth2.0
Found on your Sinch Customer Dashboard. Settings > Projects.
Example:d1923022-5199-4bb3-a513-c47b3a656bc5
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
Example:numberPattern.pattern=+1732
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. |
Example:numberPattern.searchPattern=START
- 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
Response
{ "importedNumbers": [ { … } ], "nextPageToken": "string", "totalSize": 0 }