Skip to content
Esc
navigateopen⌘Jpreview
Dashboard

Verify TOTP device

Checks that the TOTP sent in the body belongs to the totp device (specified by deviceName, belonging to the session user)

POST/{apiBasePath}/totp/device/verify
Authorization
AuthorizationBearer token · headerrequired
Returned as the "st-access-token" header from sign-in and refresh endpoints and present on requests that update the access token payload
or
sAccessTokenAPI key · cookierequired
This is an HTTPOnly cookie, set by sign-in and refresh endpoints and present on requests that update the access token
Path parameters
apiBasePathstringrequired
Its value depends on the apiBasePath set by the user
Header parameters
ridstring
The TOTP recipe ID
anti-csrftoken
This will only be here if enabled by the user.
Request body
application/json
totpstring
deviceNamestring
Responses
200Verification result and optionally the session with a refreshed MFA claim
One of:
object
statusstatusOK
Success status indicator
Allowed:OK
object
statusstring
Allowed:UNKNOWN_DEVICE_ERROR
object
statusstring
Allowed:INVALID_TOTP_ERROR
currentNumberOfFailedAttemptsnumber
maxNumberOfFailedAttemptsnumber
object
statusstring
Allowed:LIMIT_REACHED_ERROR
retryAfterMsnumber
generalErrorResponse
statusstring
Error status code
Allowed:GENERAL_ERROR
messagestring
Error message
403A claim validation error happened during factor setup
One of:
object
messagestring
Error message
claimValidationErrorsobject[]
List of claim validation errors
Show properties
Array of object
idstring
The claim ID
reasonobject
The reason for the validation error
object
messagestring
Error message
claimValidationErrorsobject[]
List of claim validation errors
Show properties
Array of object
idstring
The claim ID
reasonstring
The reason for the validation error
404Resource not found error
string
500Internal server error
string
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST "/auth/totp/device/verify" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "totp": "123456",
  "deviceName": "asdf123asdf"
}'
Response
{
  "status": "OK"
}

API reference

API schema and response details