/v1/workspaces/{workspace_id}/settings/revoke-all-tokensAuthRevoke every recipient token
Every recipient token of the workspace stops working on its next call (`401 RECIPIENT_TOKEN_INVALID`), open real-time streams included; your apps get a new token from your backend. Use it after a suspected leak of many tokens.
Path parameters
workspace_id*string · uuidId of the workspace.
Response · 204
Revoked.
Example
Request
POST https://api.notify.productcraft.co/v1/workspaces/{workspace_id}/settings/revoke-all-tokens
Authorization: Bearer YOUR_TOKENimport { Notify } from "@productcraft/notify";
// Reads PRODUCTCRAFT_API_KEY and PRODUCTCRAFT_WORKSPACE_ID from the environment;
// client routes take a recipient token: notify.client({ token })
const notify = new Notify();
await notify.settings.revokeAllTokens();notify.settings.revokeAllTokens(options?): void