Verify TOTP code
POST
https://app.speybooks.com/api/v1/auth/totp/verifyComplete two-factor authentication by verifying a six-digit TOTP code. Send the temporary token from login in the Authorization header. Returns the access and refresh tokens and the user profile, identical to a non-TOTP login response.
Header parameters
authorizationstringrequiredBody parameters
tokenstringrequiredSix-digit TOTP code from the authenticator app.
Response
200TOTP verified. Returns full access and refresh tokens.
Show response fields
accessTokenstringexpiresInintegerrefreshTokenstringuserobjectShow child attributes
emailstringfullNamestringidintegerisAdminbooleanusernamestringError codes
400Validation error or invalid token type.
401Invalid TOTP code, expired temp token, or TOTP not configured.
429Rate limit exceeded.