Skip to content

Verify Signup MFA

POST
/api/v1/signup/mfa/verify
curl --request POST \
--url https://api.spartanauth.com/api/v1/signup/mfa/verify \
--header 'Content-Type: application/json' \
--data '{ "sectorID": "example", "email": "example", "code": "example", "transactionId": "example" }'

Validates the signup OTP, marks the email as verified, and issues a JWT for a user in an MFA-required sector. Public endpoint, but it requires the same recent password-backed transactionID used to begin enrollment.

SignupMFAVerify — validates the OTP, registers email as MFA, and issues a JWT.

Media type application/json

SignupMFAVerify — validates the OTP, registers email as MFA, and issues a JWT.

object
sectorID
string
email
string
code
string
transactionId
required: same transaction used in SignupMFABegin
string
Example generated
{
"sectorID": "example",
"email": "example",
"code": "example",
"transactionId": "example"
}

A successful response.

Media type application/json
object
token
string
Example generated
{
"token": "example"
}

An unexpected error response.

Media type application/json
object
code
integer format: int32
message
string
details
Array<object>
object
@type
string
key
additional properties
Example generated
{
"code": 1,
"message": "example",
"details": [
{
"@type": "example"
}
]
}