Verify TOTP code
POST
https://app.speybooks.com/api/v1/auth/totp/verifyComplete two-factor authentication by verifying a 6-digit TOTP code. Requires the temporary token from the login endpoint in the Authorization header. Returns full access and refresh tokens along with the user profile — identical to a successful non-TOTP login response.
Header parameters
authorization string requiredBody parameters
token string requiredSix-digit TOTP code from the authenticator app.
Response
200 TOTP verified. Returns full access and refresh tokens.
Show response fields
accessToken stringexpiresIn integerrefreshToken stringuser objectShow child attributes
email stringfullName stringid integerisAdmin booleanusername stringError codes
400 Validation error or invalid token type.
401 Invalid TOTP code, expired temp token, or TOTP not configured.
429 Rate limit exceeded.