Get API credentials
const url = 'https://api.siprtc.io/v1/Accounts/example/ApiCredentials';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/ApiCredentials \ --header 'Authorization: Basic <credentials>'Returns the account’s Auth ID with hints (the last four characters) of its primary secret and of its secondary secret, if one exists, and when the primary was last replaced. Secrets themselves are never in this reply; use revealApiSecret.
Only the account itself may call this: {auth_id} must be the Auth ID you authenticate with (a parent cannot manage a sub-account’s credentials, 403), and agent, supervisor and member accounts have no API credentials to manage (403). Replies carry Cache-Control: no-store.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Your Auth ID.
Responses
Section titled “ Responses ”The Auth ID and secret hints.
object
The account’s Auth ID and its secrets as hints.
object
The account’s Auth ID: the Basic-auth user name.
The primary secret, the one in use.
object
Eight bullets and the secret’s last four characters.
When a secondary secret was last promoted to primary (RFC 3339), or null if never.
Auth ID (or sign-in id) that promoted it, or null if never.
The secondary secret, or null when there is none.
object
When the secondary secret was created (RFC 3339).
Auth ID (or sign-in id) that created it.
Eight bullets and the secret’s last four characters.
Always “success”.
Example
{ "data": { "auth_id": "AC000000000000000001", "primary": { "hint": "••••••••0000", "rotated_at": "2026-11-20T10:00:00Z", "rotated_by": "AC000000000000000001" }, "secondary": { "created_at": "2026-11-26T09:30:00Z", "created_by": "AC000000000000000001", "hint": "••••••••1111" } }, "status": "success"}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 not the authenticated account, or the account has no API credentials to manage.
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 was not found.
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 credentials could not be read.
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"}