Skip to content

List client tokens

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

Lists the client tokens of account {auth_id}, newest first, 30 per page unless limit says otherwise. Token values are never included. Expired tokens stay listed until they are deleted or replaced. An account with no tokens gets 404, not an empty list. Page with page and limit: the next_url and prev_url links are built from the full request URL with http://, so they are not directly usable.

{auth_id} must be the authenticated account or one of its direct sub-accounts; any other account gets 403.

auth_id
required
string

Your Auth ID, or a direct sub-account’s.

page
integer
default: 1 >= 1

Page number, from 1.

limit
integer
default: 30 >= 1

Tokens per page.

A page of tokens, without their values.

Media type application/json
object
base_url

Request URL the page links are built from.

string
current_page

This page’s number, from 1.

integer
data

The tokens on this page, newest first.

Array<object>
object
auth_id

Auth ID of the account the token belongs to.

string
created_at

When the token was created (RFC 3339).

string
expires_at

Recorded expiry, 7 days after creation (RFC 3339).

string
id

Token id (UUID); pass it to deleteClientToken.

string
name

The name given when the token was created.

string
token

The bearer token (a signed JWT). Returned only when the token is created; lists leave it out.

string
last_page

Number of the last page.

integer
next_url

Link to the next page, when there is one.

string
per_page

Page size.

integer
prev_url

Link to the previous page. See the operation description.

string
total_results

Number of tokens the account has.

integer

Example

{
"base_url": "http://api.siprtc.io/v1/Accounts/AC000000000000000001/ClientToken",
"current_page": 1,
"data": [
{
"auth_id": "AC000000000000000001",
"created_at": "2026-11-26T09:30:00Z",
"expires_at": "2026-12-03T09:30:00Z",
"id": "5b1f0c2a-3d4e-4f60-8a9b-0c1d2e3f4a5b",
"name": "web-softphone",
"token": "eyJhbGciOiJSUzI1NiJ9.EXAMPLE.SIGNATURE"
}
],
"last_page": 1,
"next_url": "http://api.siprtc.io/v1/Accounts/AC000000000000000001/ClientToken?page=2",
"per_page": 30,
"prev_url": "",
"total_results": 1
}

Authentication failed: wrong or missing credentials, a disabled account, or an {auth_id} that is neither you nor your direct sub-account.

Media type application/json
string

Example generated

example

{auth_id} is neither the authenticated account nor its direct sub-account.

Media type application/json
object
error

The underlying error text. Only some 400 responses of the tenant list carry it.

string
message

What went wrong, in English.

string
status

Always “failed”.

string

Example

{
"error": "sql: connection is already closed",
"message": "Account Details not found",
"status": "failed"
}

The account has no client tokens.

Media type application/json
object
error

The underlying error text. Only some 400 responses of the tenant list carry it.

string
message

What went wrong, in English.

string
status

Always “failed”.

string

Example

{
"error": "sql: connection is already closed",
"message": "Account Details not found",
"status": "failed"
}

The account could not be checked.

Media type application/json
object
error

The underlying error text. Only some 400 responses of the tenant list carry it.

string
message

What went wrong, in English.

string
status

Always “failed”.

string

Example

{
"error": "sql: connection is already closed",
"message": "Account Details not found",
"status": "failed"
}