Resend the signup code
const url = 'https://api.emite.cr/v1/auth/signup/resend';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"email":"ventas@emite.cr"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Request Bodyrequired
Section titled “Request Bodyrequired”object
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.
Example
ventas@emite.crResponses
Section titled “Responses”Accepted; the same answer whether or not a signup was waiting.
object
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.
Example
{ "email": "ventas@emite.cr"}