AlphaAlpha Docs
API ReferenceTwo factor authentication

Initiate 2FA setup

Generates TOTP secret and QR code for 2FA enrollment

POST
/auth/2fa/setup
AuthorizationBearer <token>

In: header

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:18080/api/v1/auth/2fa/setup"
{
  "qrUri": "string",
  "recoveryCodes": [
    "string"
  ],
  "secret": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}