List client tokens
const url = 'https://api.siprtc.io/v1/Accounts/example/ClientToken?page=1&limit=30';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Your Auth ID, or a direct sub-account’s.
Query Parameters
Section titled “ Query Parameters ”Page number, from 1.
Tokens per page.
Responses
Section titled “ Responses ”A page of tokens, without their values.
object
Request URL the page links are built from.
This page’s number, from 1.
The tokens on this page, newest first.
object
Auth ID of the account the token belongs to.
When the token was created (RFC 3339).
Recorded expiry, 7 days after creation (RFC 3339).
Token id (UUID); pass it to deleteClientToken.
The name given when the token was created.
The bearer token (a signed JWT). Returned only when the token is created; lists leave it out.
Number of the last page.
Link to the next page, when there is one.
Page size.
Link to the previous page. See the operation description.
Number of tokens the account has.
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.
Example generated
example{auth_id} is neither the authenticated account nor its direct sub-account.
object
The underlying error text. Only some 400 responses of the tenant list carry it.
What went wrong, in English.
Always “failed”.
Example
{ "error": "sql: connection is already closed", "message": "Account Details not found", "status": "failed"}The account has no client tokens.
object
The underlying error text. Only some 400 responses of the tenant list carry it.
What went wrong, in English.
Always “failed”.
Example
{ "error": "sql: connection is already closed", "message": "Account Details not found", "status": "failed"}The account could not be checked.
object
The underlying error text. Only some 400 responses of the tenant list carry it.
What went wrong, in English.
Always “failed”.
Example
{ "error": "sql: connection is already closed", "message": "Account Details not found", "status": "failed"}