Skip to content

Resend the signup code

POST
/v1/auth/signup/resend
curl --request POST \
--url https://api.emite.cr/v1/auth/signup/resend \
--header 'Content-Type: application/json' \
--data '{ "email": "ventas@emite.cr" }'

Sends a new verification code for a signup still waiting for its own; it replaces the previous code, with 15 minutes and five attempts of its own. Answers 202 whether or not such a signup exists, so the response does not reveal which emails are signing up. Per email, at most one code every 60 seconds: 429 EMAIL_VERIFICATION_COOLDOWN (params.retryAfterSeconds). 503 EMAIL_DELIVERY_FAILED when the email could not be sent.

Media typeapplication/json
object
email
required

Email of a signup still waiting for its code: a new 6-digit code is sent there and replaces the previous one. When there is no such signup nothing is sent, and the 202 answer is the same.

string
Example
ventas@emite.cr

Accepted; the same answer whether or not a signup was waiting.

Media typeapplication/json
object
email
required

The email the request named, echoed back. The answer is the same whether or not a signup was waiting for it, so it reveals nothing; when one was, the new code went there.

string
Example
{
"email": "ventas@emite.cr"
}