Revoke previous API token after rotation
POST/tokens/:tokenId/revokePrevious
Manually revokes the previous token after rotation, ending the grace period early. Use this after confirming that all systems have been updated to use the new token. Only the token owner can revoke their previous tokens.
Request
Responses
- 200
- 400
- 401
- 404
- 500
Successfully revoked previous token
Invalid token ID format or no previous token exists
Unauthorized - admin role and credentials.manage scope required
Token not found or access denied
Internal server error