DocsAPI referenceClient tokens
Revoke a client token and its chain
Revokes the token and every token of its chain at once; uploads they created and have not sent stop working. Again is 204.
DELETE /v1/client-tokens/{id}
Needs an API key: Authorization: Bearer $VIDEXO_API_KEY.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string | The id of a client token. |
Request
bash
curl --fail-with-body -X DELETE "$VIDEXO_API_URL/v1/client-tokens/ct_4m8x2k9q0c3v7n1r5t6b2z8w" \
-H "Authorization: Bearer $VIDEXO_API_KEY"Copy failed. The text is selected; copy it with your keyboard.
JavaScript
const response = await fetch(`${process.env.VIDEXO_API_URL}/v1/client-tokens/ct_4m8x2k9q0c3v7n1r5t6b2z8w`, {
method: 'DELETE',
headers: { Authorization: `Bearer ${process.env.VIDEXO_API_KEY}` },
});
// 204: no body.
if (!response.ok) throw new Error(`The revoke returned ${response.status}`);Copy failed. The text is selected; copy it with your keyboard.
Response
204 headers
HTTP/1.1 204 No ContentCopy failed. The text is selected; copy it with your keyboard.
Responses
| Status | Body | When |
|---|---|---|
| 204 | none | Revoked. |
| 401 | Problem | authentication_failed (missing_api_key, invalid_api_key, api_key_revoked, api_key_expired) |
| 403 | Problem | permission_denied (token_scope): a client token cannot call this route |
| 404 | Problem | not_found (client_token) |
| 429 | Problem | rate_limited, with Retry-After in seconds |