RevokeAllUserAuthTokens revokes all access and refresh tokens for a user. You can optionally pass "current" instead of the user ID to revoke all tokens for the current user.

delete/v1/users/{userId}/tokens

Request

  • The document declares no server URL.
  • Auth
    none declared

Path parameters

userIdstring required

User ID to revoke all tokens for. Set to "current" to revoke all tokens for the current user.

Query parameters

superuserForceAccessboolean

Flag for superusers to override normal access checks.

Response

A successful response.

tokensRevokedinteger

Number of tokens revoked.

Changes

No recorded changes to this operation across all 70 revisions of this API.