Skip to content

Lists active numbers for a project

Request

Lists all active numbers for a project.

Security
Basic or OAuth2.0
Path
projectIdstringrequired

Found on your Sinch Customer Dashboard. Settings > Projects.

Example:YOUR_projectId
Query
regionCodestring

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

Example:regionCode=US
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.

typestring(Type)

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.

capabilityArray of strings

Number capabilities to filter by SMS and/or VOICE.

pageSizeinteger, (int32)

The maximum number of items to return.

pageTokenstring

The next page token value returned from a previous List request, if any.

orderBystring

Supported fields for ordering by phoneNumber or displayName.

Enum ValueDescription
phoneNumber

Ordered by phone number

displayName

Ordered by display name

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'

Responses

A successful response, or an Error.

Bodyapplication/json
activeNumbersArray of objects(Active Number Response)

List of numbers associated to the client project specified in ListActiveNumbers.

nextPageTokenstring(The token to be used for listing the next page.)
totalSizeinteger, (int32)(The maximum number of results returned.)
Response
{ "activeNumbers": [ { … } ], "nextPageToken": "string", "totalSize": 0 }