Skip to content

Delete a client token

DELETE
/v1/Accounts/{auth_id}/ClientToken/{client_id}
curl --request DELETE \
--url https://api.siprtc.io/v1/Accounts/example/ClientToken/example \
--header 'Authorization: Basic <credentials>'

Deletes one of the client tokens of account {auth_id}, by the id returned when it was created or listed. A token of another account is not found (404). Deleting removes the token’s record; it does not shorten the lifetime of a token value already handed out.

{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.

client_id
required
string

The token’s id.

Deleted successfully

Media type application/json
object
message

What was done.

string
status

Always “success”.

string

Example

{
"message": "tenant updated successfully",
"status": "success"
}

The token could not be deleted.

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

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 token with this id.

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