POST
/
sdk
/
{environmentId}
/
users
/
mfa
/
recovery
curl --request POST \
  --url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/users/mfa/recovery \
  --header 'Authorization: Bearer <token>'
{
  "count": 123,
  "recoveryCodes": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

environmentId
string
required

ID of the environment

Required string length: 36

Response

200
application/json
Successful operation
count
integer
required

The number of recovery codes available

recoveryCodes
string[]
required

Recovery codes for the user to use in case they lose access to their MFA device