Submit a sales contact/lead (public, no auth).
const url = 'https://api.emite.cr/v1/leads';const options = { method: 'POST', headers: {'user-agent': 'example', 'Content-Type': 'application/json'}, body: '{"name":"María Solís","email":"maria@empresa.cr","message":"Necesitamos facturar ~800 documentos al mes con API.","company":"Comercializadora del Valle S.A.","phone":"+506 8888 8888","monthlyVolume":"500-1000","currentProvider":"GTI / otro proveedor","plan":"enterprise","source":"landing-pricing","website":"example"}'};
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/leads \ --header 'Content-Type: application/json' \ --header 'user-agent: example' \ --data '{ "name": "María Solís", "email": "maria@empresa.cr", "message": "Necesitamos facturar ~800 documentos al mes con API.", "company": "Comercializadora del Valle S.A.", "phone": "+506 8888 8888", "monthlyVolume": "500-1000", "currentProvider": "GTI / otro proveedor", "plan": "enterprise", "source": "landing-pricing", "website": "example" }'Backs the «Hablar con ventas» form of the marketing site, which posts here through the web BFF. The lead is stored first; then sales is notified by email and the person gets a confirmation email, both best-effort — an email failure never fails the request. Answers { ok: true } on success, and also when the honeypot field website is filled: that submission is dropped without being stored. 429 LEADS_RATE_LIMITED past 5 submissions in an hour from the same client IP (the default limit).
Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
The name of the person asking, 2–150 characters. It heads the notification to sales and greets them in the confirmation email.
Example
María SolísTheir email address (up to 254 characters). Sales receives it with the lead, and a confirmation email is sent to it — best-effort: a delivery failure never fails the request.
Example
maria@empresa.crWhat they need, in their own words (1–5000 characters). Sales reads it as written.
Example
Necesitamos facturar ~800 documentos al mes con API.The company they write for, up to 200 characters.
Example
Comercializadora del Valle S.A.A phone number to reach them, as free text (no format is enforced; up to 40).
Example
+506 8888 8888How many documents a month they expect to issue, as free text (up to 100 characters). The contact form sends the range the person picked.
Example
500-1000The invoicing system or provider they use today, if any (up to 200 characters).
Example
GTI / otro proveedorThe plan they asked about. The pricing page opens the form with the catalog plan code (for example pj_custom); free text, not checked against the catalog (up to 40).
Example
enterpriseWhere the form was sent from, for attribution: the contact page sends landing-contact, or landing-pricing when it was opened from a plan. Free text, up to 60 characters.
Example
landing-pricingHoneypot anti-spam; leave empty.
Responses
Section titled “Responses”object
Always true: the submission was received. It says nothing about the emails, which are best-effort.
Example
{ "ok": true}