Skip to main content
POST
Send 2FA Email Code

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Body

application/json
secret
string

Existing tfa_secret to reuse when refreshing a code during an active login challenge; omit to generate a new secret

Example:

"abc123secret"

Response

Returns {success: true, msg: "2FA code sent to your email address.", secret} where secret is used to verify the code.

success
boolean

Always true on success

msg
string

Confirmation message

secret
string

TFA secret token to include in the subsequent verification request