Skip to content

Submit a sales contact/lead (public, no auth).

POST
/v1/leads
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).

user-agent
required
string
Media typeapplication/json
object
name
required

The name of the person asking, 2–150 characters. It heads the notification to sales and greets them in the confirmation email.

string
Example
María Solís
email
required

Their 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.

string
Example
maria@empresa.cr
message
required

What they need, in their own words (1–5000 characters). Sales reads it as written.

string
Example
Necesitamos facturar ~800 documentos al mes con API.
company

The company they write for, up to 200 characters.

string
Example
Comercializadora del Valle S.A.
phone

A phone number to reach them, as free text (no format is enforced; up to 40).

string
Example
+506 8888 8888
monthlyVolume

How many documents a month they expect to issue, as free text (up to 100 characters). The contact form sends the range the person picked.

string
Example
500-1000
currentProvider

The invoicing system or provider they use today, if any (up to 200 characters).

string
Example
GTI / otro proveedor
plan

The 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).

string
Example
enterprise
source

Where 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.

string
Example
landing-pricing
website

Honeypot anti-spam; leave empty.

string
Media typeapplication/json
object
ok
required

Always true: the submission was received. It says nothing about the emails, which are best-effort.

boolean
Example
{
"ok": true
}