Reference / Auth

Begin TOTP enrollment for the current user (returns secret + otpauth URI). Requires a session.

POST /v1/auth/mfa/totp/enroll
End-user session operationId: enroll_totp

Authorization

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

Responses

200 Enrollment started
{
  "data": {
    "factor_id": "018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f",
    "otpauth_url": "string",
    "secret": "string"
  },
  "error": {
    "code": "string",
    "message": "string"
  },
  "meta": {
    "timestamp": "string"
  },
  "success": false
}
401 No end-user session

Request

curl -X POST "http://localhost:8080/v1/auth/mfa/totp/enroll" \

Try it

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