Skip to content

Get credential lists for SIP trunk

Request

Return all the credential lists for a specified SIP trunk.

Security
Basic or OAuth2.0
Path
projectIdstringrequired

The projectId is a required parameter you must include when making any API calls. You can find your project ID on your Build dashboard.

Example:3acb7ae1-cf3d-4112-ba5e-3a9d8c71cd47
trunkIdstringrequired

The ID of the trunk that you want to work with

Query
pageinteger

The page you want to fetch, can set to 1 for first page, or omitted for first page

Default:1
sizeinteger, [ 1 .. 500 ]

The size of each page to fetch

Default:500
sortArray of strings

An array setting the sorting criteria in the format of property,(ascending/descending)

curl -i -X GET \
  -u '<username>:<password>' \
  'https://elastic-trunking.api.sinch.com/v1/projects/3acb7ae1-cf3d-4112-ba5e-3a9d8c71cd47/trunks/{trunkId}/credentialLists?page=1&size=500&sort=string'

Responses

OK

Bodyapplication/json
credentialListIdsArray of stringsrequired
totalItemsinteger, (int32)read-only

Total size of the result.

Example:10000
pageNumberstringread-only

The token to be used for listing the next page

Example:"1"
sizeinteger, (int32)read-only

The number of items per page. default is 1000

Example:2000
Response
{ "credentialListIds": [ "01GNZ9MXEZ4K6S8GB7RW063VAN" ], "totalItems": 10000, "pageNumber": "1", "size": 2000 }