Skip to content

Create a credential list

POST
/v1/Accounts/{auth_id}/SipTrunk/CredentialList
curl --request POST \
--url https://api.siprtc.io/v1/Accounts/example/SipTrunk/CredentialList \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json' \
--data '{ "customer_auth_id": "AC000000000000000001", "name": "PBX credentials", "username": [ "pbx-main" ] }'

Creates a credential list: a named group of username/password credentials that authenticate calls on a trunk’s termination URI. The name must be unique on the account and an account can have at most 5 lists. username adds existing auth credentials of the account to the new list by username. Vendor accounts can act for a direct child account with customer_auth_id.

auth_id
required
string

Auth ID of your account.

The credential list to create.

Media type application/json
object
customer_auth_id

Vendor accounts only: create the list for this direct child account.

string

Example

AC000000000000000001
name
required

Name of the list, unique among the account’s credential lists.

string

Example

PBX credentials
username

Usernames of existing auth credentials on the account to add to the new list.

Array<string>

Example

[
"pbx-main"
]

The new credential list.

Media type application/json
object
auth_credential_names

Usernames of the auth credentials in the list. Filled by GET; null in the create response.

Array<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 (0 in this response).

integer
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

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

The body could not be read, name is missing, or (with customer_auth_id) the gateway did not supply your company.

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_auth_id is not a direct child account of a vendor you belong to, or its parent is not a vendor.

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 list was not created: the limit is reached, the name is taken, or an account lookup failed.

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