Skip to content

Complete a two-factor login

POST
/v2/portal/auth/2fa/login-verify
curl --request POST \
--url https://api.sipstack.com/v2/portal/auth/2fa/login-verify \
--header 'Content-Type: application/json' \
--data '{ "tempToken": "example", "code": "123456" }'

Exchanges the tempToken from the MFA-challenged login response plus a 6-digit TOTP code for a full session.

Media type application/json
object
tempToken
required
string
code
required
string
Example
123456

Session created — same shape as a successful login.

Missing tempToken or code.

Invalid or expired challenge/code.

Too many verification attempts.