API Reference
Verify TOTP during invite setup
POST
/api/auth/verify-invite-totp
Verifies the TOTP code during invite acceptance. On success, marks the user's TOTP as verified, creates a session, and sets the browser session. The invite must first be accepted with /api/auth/accept-invite so the password is set before TOTP verification.
Operation IDverifyInviteTotp
Authentication
No authentication is required.
Request body
This request body is required.
Content typeapplication/json
requestobject2 properties
tokenstringrequiredcodestringrequiredSuccess response body
200TOTP verified, session created
TOTP verified, session created
Content typeapplication/json
responseobject1 property
successbooleanError responses
400Invalid token or incomplete setup
Invalid token or incomplete setup
No response content schema is documented.
401Invalid TOTP code
Invalid TOTP code
No response content schema is documented.
429Too many requests
Too many requests
Content typeapplication/json
responseobject2 properties
errorstringmessagestringExample response
{
"error": "RATE_LIMITED",
"message": "Too many failed TOTP attempts. Try again later."
}