Send 2FA SMS Phone Code

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).
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Request Body

string
required

The mobile phone number in international phone format.

Headers
string
enum
Defaults to 2026-04-22
Allowed:
string
required

JWT token that was created/signed via the Create Account or Sign In endpoints.

Responses

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json