Skip to content

List auth credentials of a credential list

GET
/v1/Accounts/{auth_id}/SipTrunk/CredentialList/{credential_list_id}/AuthCredentials
curl --request GET \
--url 'https://api.siprtc.io/v1/Accounts/example/SipTrunk/CredentialList/example/AuthCredentials?status=active&page=1&limit=30' \
--header 'Authorization: Basic <credentials>'

Returns auth credentials of your account, newest first, 30 per page by default, each with the credential lists it belongs to; passwords are returned in clear text. The credential_list_id path segment is not applied as a filter, so pass the same ID as listid to restrict the result to that list. name matches any part of friendly_name and username any part of the username. A vendor account sees its own credentials unless it passes customer_id for a direct child account.

auth_id
required
string

Auth ID of your account.

credential_list_id
required
string

ID of the credential list.

name
string

Return credentials whose friendly_name contains this text.

username
string

Return credentials whose username contains this text.

listid
string

Return only credentials in this credential list.

status
string
Allowed values: active inactive any all

Return only this status. Default (or any / all): active and inactive.

customer_id
string

Vendor accounts only: list the credentials of this direct child account.

page
integer
default: 1

Page number, starting at 1.

limit
integer
default: 30

Page size.

One page of auth credentials.

Media type application/json
object
base_url

The request URL the page links are built from.

string
current_page

Page number that was returned (1-based).

integer
last_page

Number of the last page.

integer
next_url

Link to the next page; omitted on the last page.

string
per_page

Page size that was applied.

integer
prev_url

Link to the previous page; omitted on the first page.

string
total_results

Total number of matching records across all pages.

integer
trunkAuthCredential

Auth credentials on this page, newest first.

Array<object>
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
customer_info

Owner details; filled only when a vendor lists its child accounts’ credentials.

object
auth_id

Auth ID of the owning child account.

string
email

Email address on the owning account.

string
firstName

First name on the owning account.

string
lastName

Last name on the owning account.

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.

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

Example

{
"base_url": "http://api.siprtc.io/v1/Accounts/AC000000000000000000/SipTrunk?page=1",
"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,
"trunkAuthCredential": [
{
"auth_id": "AC000000000000000000",
"created_at": "2026-01-15T10:30:00Z",
"created_by": "AC000000000000000000",
"customer_info": {
"auth_id": "AC000000000000000001",
"email": "jane.doe@example.com",
"firstName": "Jane",
"lastName": "Doe"
},
"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"
}
]
}

The gateway did not supply your company (message “company id is empty”).

Media type application/json
object
message

Human-readable explanation of the outcome.

string
status

Outcome of the request: “success” or “failed”.

string
Allowed values: success failed

Example

{
"message": "Invalid auth ID",
"status": "success"
}

Missing or wrong Basic-auth credentials (returned by the API gateway).

Media type application/json
string

Example generated

example

Customer_id is not a direct child of your account.

Media type application/json
object
message

Human-readable explanation of the outcome.

string
status

Outcome of the request: “success” or “failed”.

string
Allowed values: success failed

Example

{
"message": "Invalid auth ID",
"status": "success"
}

The credentials could not be read.

Media type application/json
object
message

Human-readable explanation of the outcome.

string
status

Outcome of the request: “success” or “failed”.

string
Allowed values: success failed

Example

{
"message": "Invalid auth ID",
"status": "success"
}