API Reference
Verify TOTP code
POST
/api/auth/verify-totp
Completes login by verifying the TOTP code. Sets the authenticated browser session on success.
Operation IDverifyTotp
Authentication
No authentication is required.
Request body
This request body is required.
Content typeapplication/json
requestobject1 property
codestringrequiredSuccess response body
200TOTP verified, session established
TOTP verified, session established
Content typeapplication/json
responseobject1 property
successbooleanError responses
400Missing pending browser session or TOTP code. Messages distinguish the two cases so the client can recover (re-login vs re-enter code).
Missing pending browser session or TOTP code. Messages distinguish the two cases so the client can recover (re-login vs re-enter code).
No response content schema is documented.
401Not authenticated
Not authenticated
Content typeapplication/json
responseobject2 properties
errorstringmessagestringExample response
{
"error": "AUTH_ERROR",
"message": "Not authenticated"
}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."
}