Skip to main content
POST
/
api
/
auth
/
2fa
/
setup
/
start
Start Two Factor Setup
curl --request POST \
  --url https://api.example.com/api/auth/2fa/setup/start \
  --header 'Authorization: Bearer <token>'
{
  "secret": "<string>",
  "otpauth_url": "<string>",
  "issuer": "<string>",
  "account": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json

Successful Response

secret
string
required
otpauth_url
string
required
issuer
string
required
account
string
required