Skip to main content
Enable Two-Factor Authentication
curl --request POST \
  --url https://{tenantId}.api.nestmed.com/api/v1/auth/2fa/enable \
  --header 'Authorization: Bearer <token>'
{
  "secret": "<string>",
  "qrCode": "<string>",
  "backupCodes": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

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

Response

200 - application/json

2FA secret and QR code for setup.

secret
string

The secret key for the authenticator app.

qrCode
string

A data URI for a QR code image to be displayed to the user.

backupCodes
string[]