Start typing to search.

API Reference

Verify TOTP code

View Markdown
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

requestobject
1 property
codestringrequired

Success response body

200TOTP verified, session established

TOTP verified, session established

Content typeapplication/json

responseobject
1 property
successboolean

Error 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

responseobject
2 properties
errorstring
messagestring
Example response
{
  "error": "AUTH_ERROR",
  "message": "Not authenticated"
}

429Too many requests

Too many requests

Content typeapplication/json

responseobject
2 properties
errorstring
messagestring
Example response
{
  "error": "RATE_LIMITED",
  "message": "Too many failed TOTP attempts. Try again later."
}