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
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/{projectId}/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 }
We'd love to hear from you!
Rate this content: