Skip to main content
POST
Send 2FA SMS Code

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Body

application/json
phone_number
string

Phone number to send the code to in E.164 format; falls back to the account's registered number if omitted

Example:

"+14155550123"

tfa_method_id
integer

ID of an existing SMS 2FA method whose phone number should be used

Example:

3

secret
string

Existing tfa_secret to reuse when refreshing a code during an active login challenge

Example:

"abc123secret"

Response

Returns {msg: "2FA Sent", secret} where secret is used to verify the code.

msg
string

"2FA Sent"

secret
string

TFA secret token to include in the subsequent verification request