Reference / Auth

Confirm a pending TOTP enrollment with a current code.

POST /v1/auth/mfa/totp/verify
End-user session operationId: confirm_totp

Authorization

Called from the browser with the publishable application id (x-application-id); the access token lives in memory.

Request body · required

  • code string required
  • factor_id string<uuid> required uuid

Responses

200 TOTP enrolled
422 Incorrect code

Request

curl -X POST "http://localhost:8080/v1/auth/mfa/totp/verify" \
  -H "Content-Type: application/json" \
  -d '{
  "code": "string",
  "factor_id": "018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f"
}'

Try it

live request
POST http://localhost:8080/v1/auth/mfa/totp/verify

Request body

application/json