Skip to content

Authenticator challenge

POST
/api/v1/login/totp
curl --request POST \
--url https://api.spartanauth.com/api/v1/login/totp \
--header 'Content-Type: application/json' \
--data '{ "username": "example", "code": "example", "transactionID": "example", "sectorID": "example", "registrationID": "example" }'

Verifies an authenticator code or a recovery code for a transaction that already passed the password challenge. Public endpoint. Returns a JWT when the required factors are satisfied.

Media type application/json
object
username
string
code
string
transactionID
string
sectorID
string
registrationID
string
Example generated
{
"username": "example",
"code": "example",
"transactionID": "example",
"sectorID": "example",
"registrationID": "example"
}

A successful response.

Media type application/json
object
transactionID
string
status
string
default: SUCCESS
Allowed values: SUCCESS UNAUTHENTICATED FORBIDDEN
challengeType
string
token
string
Example
{
"status": "SUCCESS"
}

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"
}
]
}