List credential lists
const url = 'https://api.siprtc.io/v1/Accounts/example/SipTrunk/CredentialList?status=active&page=1&limit=30';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.siprtc.io/v1/Accounts/example/SipTrunk/CredentialList?status=active&page=1&limit=30' \ --header 'Authorization: Basic <credentials>'Returns your SIP trunk credential lists (named groups of username/password credentials), newest first, 30 per page by default. Each list carries credential_count and its members as ID and username. name matches any part of the list name. For a vendor account without customer_id the result holds the lists of all its direct child accounts (not the vendor’s own), each with customer_info; with customer_id it holds that child’s lists.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Auth ID of your account.
Query Parameters
Section titled “ Query Parameters ”Return lists whose name contains this text.
Return only this status. Default (or any / all): active and inactive.
Vendor accounts only: list the credential lists of this direct child account.
Page number, starting at 1.
Page size.
Responses
Section titled “ Responses ”One page of credential lists.
object
The request URL the page links are built from.
Credential lists on this page, newest first.
object
Auth credentials in the list (ID and username).
object
Auth ID of the account that owns the credential.
When the record was created (RFC 3339).
Auth ID of the account that created the record.
Label of the credential.
Auth credential ID (UUID).
JSON-encoded array of the credential list IDs it belongs to, as stored.
The credential lists it belongs to, resolved to ID and name. Filled by GET only.
object
Credential list ID.
Credential list name.
Auth ID of the account that last changed the record.
SIP digest password, returned in clear text.
Status of the credential.
When the record was last changed (RFC 3339).
SIP digest username.
Auth ID of the account that owns the list.
When the record was created (RFC 3339).
Auth ID of the account that created the record.
Number of auth credentials in the list.
Owner details; filled only when a vendor lists its child accounts’ lists.
object
Auth ID of the owning child account.
Email address on the owning account.
First name on the owning account.
Last name on the owning account.
Deletion time; zero time (0001-01-01T00:00:00Z) for live lists.
Credential list ID (UUID).
Auth ID of the account that last changed the record.
Name of the list.
Status of the list.
When the record was last changed (RFC 3339).
Page number that was returned (1-based).
Number of the last page.
Link to the next page; omitted on the last page.
Page size that was applied.
Link to the previous page; omitted on the first page.
Total number of matching records across all pages.
Example
{ "base_url": "http://api.siprtc.io/v1/Accounts/AC000000000000000000/SipTrunk?page=1", "credentiallist": [ { "auth_credential_names": [ { "auth_id": "AC000000000000000000", "created_at": "2026-01-15T10:30:00Z", "created_by": "AC000000000000000000", "friendly_name": "Main PBX", "id": "2d3e4f50-6172-4839-a4b5-c6d7e8f90a01", "list_id": "[\"6f1c2b9e-0d4a-4c8e-9b7a-2f5d3e1a0b01\"]", "list_ids": [ { "id": "6f1c2b9e-0d4a-4c8e-9b7a-2f5d3e1a0b01", "name": "PBX credentials" } ], "modified_by": "AC000000000000000000", "password": "S3cretPassw0rd!", "status": "active", "updated_at": "2026-01-16T08:00:00Z", "username": "pbx-main" } ], "auth_id": "AC000000000000000000", "created_at": "2026-01-15T10:30:00Z", "created_by": "AC000000000000000000", "credential_count": 1, "customer_info": { "auth_id": "AC000000000000000001", "email": "jane.doe@example.com", "firstName": "Jane", "lastName": "Doe" }, "deleted_at": "0001-01-01T00:00:00Z", "id": "6f1c2b9e-0d4a-4c8e-9b7a-2f5d3e1a0b01", "modified_by": "AC000000000000000000", "name": "PBX credentials", "status": "active", "updated_at": "2026-01-16T08:00:00Z" } ], "current_page": 1, "last_page": 1, "next_url": "http://api.siprtc.io/v1/Accounts/AC000000000000000000/SipTrunk?page=2", "per_page": 30, "prev_url": "", "total_results": 2}The gateway did not supply your company (message “company id is empty”).
object
Human-readable explanation of the outcome.
Outcome of the request: “success” or “failed”.
Example
{ "message": "Invalid auth ID", "status": "success"}Missing or wrong Basic-auth credentials (returned by the API gateway).
Example generated
exampleCustomer_id is not a direct child of your account.
object
Human-readable explanation of the outcome.
Outcome of the request: “success” or “failed”.
Example
{ "message": "Invalid auth ID", "status": "success"}The lists could not be read.
object
Human-readable explanation of the outcome.
Outcome of the request: “success” or “failed”.
Example
{ "message": "Invalid auth ID", "status": "success"}