Discord
GitHub
Dashboard
Search...
/
Documentation
SDK Reference
API Reference
API Overview
Client API Reference
GET
/api/v1
Emails
OAuth
Others
OTP
POST
Sign in with a code
POST
Send sign-in code
POST
MFA sign in
POST
Check sign in code
Password
Permissions
Projects
Sessions
Teams
Users
Server API Reference
GET
/api/v1
Emails
OAuth
Others
OTP
Password
Permissions
Projects
Sessions
Teams
Users
Webhooks API Reference
Users
Teams
Discord
GitHub
Dashboard
Client API Reference
OTP
MFA sign in
POST
https://
api.stack-auth.com
/
api
/
v1
/
auth
/
mfa
/
sign-in
Complete multi-factor authorization to sign in, with a TOTP and an MFA attempt code
Request
This endpoint expects an object.
type
string
Required
totp
string
Required
code
string
Required
Response
This endpoint returns an object.
refresh_token
string
Long-lived refresh token that can be used to obtain a new access token
access_token
string
Short-lived access token that can be used to authenticate the user
is_new_user
boolean
Whether the user is a new user
user_id
string
The unique identifier of this user
Built with