Generate a TOTP secret

POST /api/my-account/mfa-verifications/totp-secret/generate

Generate a TOTP secret for the user.

Responses

  • 200 application/json

    The TOTP secret was generated successfully.

  • 401

    Unauthorized

  • 403

    Forbidden

POST /api/my-account/mfa-verifications/totp-secret/generate
curl \
 --request POST 'https://[tenant_id].logto.app/api/my-account/mfa-verifications/totp-secret/generate' \
 --header "Authorization: Bearer $ACCESS_TOKEN"