Send 2FA Email Code

HTTP MethodURLRequires Auth



Body Parameters

KeyExample ValueDescription

email or username

Enter the email or username.

Example Call

curl  -H 'X-Auth-Token: _2u_4MzRroRcnqc59GYUY_Kwgr9HgtZ9HCKn-2aIvMJ' \
      -H 'X-User-Id: FL2fZL4ERhwA3gWiS' \
      -H "Content-type: application/json" \
      -d ""

Example Response


    "success": true


The following error can occur.

  • Valid Email or Username: Requires selector param for the request to be made.

    "success": false,
    "error": "emailOrUsername is required [error-parameter-required]",
    "errorType": "error-parameter-required"

Last updated

Rocket.Chat versions receive support for six months after release.