RegenerateToken creates a new token with the same settings.
POST/api/v1/auth/tokens/:id/regenerate
Replaces the old token with a new one while keeping the same name, description, scopes, and expiration settings.
Parameters
- id: Required, token ID to regenerate
Response
- plain_text_token: New full token value (ONLY SHOWN ONCE)
- data: Updated token metadata (with new ID and prefix)
Side Effects
- Old token is immediately deleted
- New token created with fresh hash
- Cannot be undone
Errors
- NOT_FOUND: Token doesn't exist or belongs to another user
Request
Responses
- 200
- default
A successful response.
An unexpected error response.