Skip to content

Finish OTP Registration

POST
/api/v1/otp/finish
curl --request POST \
--url https://api.spartanauth.com/api/v1/otp/finish \
--header 'Content-Type: application/json' \
--data '{ "transactionID": "example", "password": "example" }'

Validates the OTP code sent by BeginOTPRegistration and marks that OTP factor as registered for the authenticated user. Requires a valid bearer token and the transactionID from the begin step.

Media type application/json
object
transactionID
string
password
string
Example generated
{
"transactionID": "example",
"password": "example"
}

A successful response.

Media type application/json
object
transactionID
string
Example generated
{
"transactionID": "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"
}
]
}