Get a credential list
const url = 'https://api.siprtc.io/v1/Accounts/example/SipTrunk/CredentialList/example';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/example \ --header 'Authorization: Basic <credentials>'Returns one credential list. auth_credential_names holds the usernames of its members.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Auth ID of your account.
ID of the credential list.
Responses
Section titled “ Responses ”The credential list.
object
Usernames of the auth credentials in the list. Filled by GET; null in the create response.
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 (0 in this response).
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).
Example
{ "auth_credential_names": [ "pbx-main" ], "auth_id": "AC000000000000000000", "created_at": "2026-01-15T10:30:00Z", "created_by": "AC000000000000000000", "credential_count": 0, "id": "6f1c2b9e-0d4a-4c8e-9b7a-2f5d3e1a0b01", "modified_by": "AC000000000000000000", "name": "PBX credentials", "status": "active", "updated_at": "2026-01-16T08:00:00Z"}Missing or wrong Basic-auth credentials (returned by the API gateway).
Example generated
exampleNo live credential list with this ID (message “Credential not found”).
object
Human-readable explanation of the outcome.
Outcome of the request: “success” or “failed”.
Example
{ "message": "Invalid auth ID", "status": "success"}