Skip to content

Email a sign-in code

POST
/v1/auth/2fa/challenge/email
curl --request POST \
--url https://api.emite.cr/v1/auth/2fa/challenge/email \
--header 'Content-Type: application/json' \
--data '{ "challengeToken": "example" }'

(Re)sends a 6-digit sign-in code to the account email for a live challenge: the backup path, available whatever methods the account has, including an authenticator alone. Use the code as code in POST /v1/auth/2fa/challenge/verify. Limited per email: at most one code every 60 seconds (429 EMAIL_VERIFICATION_COOLDOWN). 400 MFA_CHALLENGE_EXPIRED for an unknown, used or expired challenge; 503 EMAIL_DELIVERY_FAILED when the email could not be sent. At most 10 requests per minute per client IP (429 AUTH_RATE_LIMITED).

Media typeapplication/json
object
challengeToken
required

Challenge token returned by the login response.

string
Examplegenerated
{
"challengeToken": "example"
}

The code was sent. The response has no body.