Skip to content

List credential lists

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

auth_id
required
string

Auth ID of your account.

name
string

Return lists whose name contains this text.

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 credential lists of this direct child account.

page
integer
default: 1

Page number, starting at 1.

limit
integer
default: 30

Page size.

One page of credential lists.

Media type application/json
object
base_url

The request URL the page links are built from.

string
credentiallist

Credential lists on this page, newest first.

Array<object>
object
auth_credential_names

Auth credentials in the list (ID and username).

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
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
auth_id

Auth ID of the account that owns the list.

string
created_at

When the record was created (RFC 3339).

string
created_by

Auth ID of the account that created the record.

string
credential_count

Number of auth credentials in the list.

integer
customer_info

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

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
deleted_at

Deletion time; zero time (0001-01-01T00:00:00Z) for live lists.

string
id

Credential list ID (UUID).

string
modified_by

Auth ID of the account that last changed the record.

string
name

Name of the list.

string
status

Status of the list.

string
Allowed values: active inactive
updated_at

When the record was last changed (RFC 3339).

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

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

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 lists 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"
}