Authenticator challenge
POST
/api/v1/login/totp
const url = 'https://api.spartanauth.com/api/v1/login/totp';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"username":"example","code":"example","transactionID":"example","sectorID":"example","registrationID":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Request Body
Section titled “Request Body ” 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"}Responses
Section titled “ Responses ”A successful response.
Media type application/json
object
transactionID
string
status
string
challengeType
string
token
string
Example
{ "status": "SUCCESS"}default
Section titled “default ”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" } ]}