Lists all active numbers for a project.
Security
Basic or OAuth2.0
Found on your Sinch Customer Dashboard. Settings > Projects.
Example:YOUR_projectId
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}/activeNumbers
curl -i -X GET \
-u '<username>:<password>' \
'https://numbers.api.sinch.com/v1/projects/YOUR_projectId/activeNumbers?regionCode=US&numberPattern.pattern=%252B120&numberPattern.searchPattern=START&type=LOCAL&capability=SMS&pageSize=0&pageToken=string&orderBy=phoneNumber'A successful response, or an Error.
Response
{ "activeNumbers": [ { … } ], "nextPageToken": "string", "totalSize": 0 }