Revoke access token
OAuth
Revoke OAuth Token
⚠️ SECURITY: Revokes an OAuth access token. Requires OAuth authentication with scope “write:oauth-apps”. Revoked tokens cannot be used for API access.
DELETE
Revoke access token
Revokes an OAuth access token before it expires.
Use Cases
- User logs out
- Security incident requires token invalidation
- Application no longer needs access
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
tokenId | string | Yes | OAuth token ID to revoke |
Example Request
Response
Returns204 No Content on success.
Permissions
Requires OAuth authentication with scopewrite:oauth-apps.
What Happens
- Token is immediately invalidated
- Future API requests with this token will fail with 401
- Token cannot be un-revoked
Common Errors
401 Unauthorized
Authentication required. Provide a valid OAuth token.403 Forbidden
Insufficient scope. Required scope:write:oauth-apps