Skip to main content
POST
Resend 2FA SMS Code

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Body

application/json
secret
string

The tfa_secret from the original send; required unless the user is authenticated via bearer token

Example:

"abc123secret"

phone_number
string

Phone number associated with the original challenge; must match the number the code was first sent to

Example:

"+14155550123"

tfa_method_id
integer

ID of the SMS 2FA method to resend to; phone number is taken from the stored method

Example:

3

Response

Returns {msg: "A 6-digit code has been sent to your phone", secret}.

msg
string

"A 6-digit code has been sent to your phone"

secret
string

The TFA secret (original or newly issued) to use in the verification request