Skip to main content
DELETE
Revoke one of the current user's API tokens

Authorizations

Authorization
string
header
required

WorkOS access JWT or a user-owned WorkOS API key. User keys are bound to one organization and restricted to their enabled product permissions. Session-only onboarding and session revocation require an interactive access JWT. No cookie session is assumed.

Headers

X-Request-Id
string

Optional caller-provided correlation identifier.

Required string length: 1 - 128

Path Parameters

organization_id
string
required
Pattern: ^[0-9A-HJKMNP-TV-Z]{26}$
key_id
string
required
Pattern: ^api_key_[A-Za-z0-9_]{1,120}$

Response

The requested token is absent from the current user's scope.