Generates a new raw token for an existing access token and invalidates the previous raw token immediately. The token id, name, description, permission, will_expire, and expired_at values are preserved.
Requires auth_enabled=true and an admin access token or admin JWT. Expired tokens cannot be rotated.
Admin JWT obtained from the login endpoint.
Admin JWT or admin access token. Format Bearer <admin-jwt-or-access-token>.
The unique identifier of the access token to rotate.
Token rotated successfully. Returns the new raw token.
Unique identifier for the access token.
Human-readable name for the token.
Description of the token's intended use.
The new raw access token value. Store this securely, as it cannot be retrieved after rotation.
Original creation timestamp, in RFC 3339 UTC format.
Expiration timestamp. null when will_expire is false.
Whether the token has an expiration date.
Comma-separated permission names assigned to the token.