Send 2FA SMS Phone Code

How to send a 6-digit phone authentication code via SMS.

The Send 2FA Phone Code API sends a 6-digit code to a user via SMS. This is most commonly used to enforce 2-factor phone authentication during your sign in flow.

After this step is complete, the user will receive a code. You'll then have them enter this code and use the method for verifying a phone code to confirm it. The code remains valid for 10 minutes, but if entered incorrectly, it expires immediately.

Please note the following validations:

  • The accountAccessToken should be valid (real, not expired).
  • Maximum of one request per 60 seconds.
  • MFA should be not yet be complete (not passed).

Example Request

Below please find the JSON body for an example request:

{
    "phone": "+19172249999"
}
Language
Credentials
Header