Skip to content

Get an auth credential

GET
/v1/Accounts/{auth_id}/SipTrunk/AuthCredentials/{auth_credential_id}
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.

auth_id
required
string

Auth ID of your account.

auth_credential_id
required
string

ID of the auth credential.

The auth credential.

Media type application/json
object
result

The auth credential.

object
auth_id

Auth ID of the account that owns the credential.

string
created_at

When the record was created (RFC 3339).

string
created_by

Auth ID of the account that created the record.

string
friendly_name

Label of the credential.

string
id

Auth credential ID (UUID).

string
list_id

JSON-encoded array of the credential list IDs it belongs to, as stored.

string
list_ids

The credential lists it belongs to, resolved to ID and name. Filled by GET only.

Array<object>
object
id

Credential list ID.

string
name

Credential list name.

string
modified_by

Auth ID of the account that last changed the record.

string
password

SIP digest password, returned in clear text.

string
status

Status of the credential.

string
Allowed values: active inactive
updated_at

When the record was last changed (RFC 3339).

string
username

SIP digest username.

string
status

Always “success”.

string

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).

Media type application/json
string

Example generated

example

No live auth credential with this ID (code 20404).

Media type application/json
object
code

SIPRTC error code, for example 21213 (invalid field) or 20404 (not found).

integer
message

Human-readable description of the error.

string
more_info

Link to more information.

string
status

HTTP status the error is meant to map to. It can differ from the actual response status.

integer

Example

{
"code": 21213,
"message": "validation failed on field Password is not valid",
"more_info": "https://api.siprtc.io",
"status": 400
}