younifyd
Menu

Me Tfa Enable

Enable 2FA

POST/users/me/tfa/enable

Use it in a workflow

  1. Add a step and choose the Directus connector.
  2. Pick the Me Tfa Enable action (under Users).
  3. Fill in the fields below, then reference the result from later steps as {{meTfaEnable.response.data}}.

Request

Request body

Enter the body as JSON in the step's Body field.

secretstringrequired

The TFA secret from tfa/generate.

otpstringrequired

OTP generated with the secret, to recheck if the user has a correct TFA setup

json
{
  "secret": "string",
  "otp": "string"
}

Response

Returns 204 with a any. Read it in later steps with {{meTfaEnable.response.data.<field>}}.

Need more? See the Directus guide for connection setup and behaviour shared by every action.

Was this page helpful?