Get an auth credential
const url = 'https://api.siprtc.io/v1/Accounts/example/SipTrunk/AuthCredentials/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/AuthCredentials/example \ --header 'Authorization: Basic <credentials>'Returns one auth credential with the credential lists it belongs to. The password is returned in clear text.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Auth ID of your account.
ID of the auth credential.
Responses
Section titled “ Responses ”The auth credential.
object
The auth credential.
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.
Always “success”.
Example
{ "result": { "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" }, "status": "success"}Missing or wrong Basic-auth credentials (returned by the API gateway).
Example generated
exampleNo live auth credential with this ID (code 20404).
object
SIPRTC error code, for example 21213 (invalid field) or 20404 (not found).
Human-readable description of the error.
Link to more information.
HTTP status the error is meant to map to. It can differ from the actual response status.
Example
{ "code": 21213, "message": "validation failed on field Password is not valid", "more_info": "https://api.siprtc.io", "status": 400}