curl --request POST \
--url https://seu-dominio/api/webhooks/leads \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Maria Souza",
"phone": "+55 49 99999-0000",
"email": "maria@exemplo.com.br",
"source": "site",
"notes": "Asked for contact about the annual plan"
}
'{
"message": "Lead accepted for processing"
}{
"message": "Unauthenticated."
}{
"message": "<string>",
"error": "<string>"
}Leads
Send a lead
Receives a lead and places it in the initial stage of the funnel. Either a phone number or an email is required. The lead is processed right after it is accepted. If a lead with the same email and phone already exists, it is updated. Limit of 120 requests per minute.
POST
/
api
/
webhooks
/
leads
curl --request POST \
--url https://seu-dominio/api/webhooks/leads \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Maria Souza",
"phone": "+55 49 99999-0000",
"email": "maria@exemplo.com.br",
"source": "site",
"notes": "Asked for contact about the annual plan"
}
'{
"message": "Lead accepted for processing"
}{
"message": "Unauthenticated."
}{
"message": "<string>",
"error": "<string>"
}Authorizations
Token generated in Settings, Integrations, Lead Webhook tab, Generate New Security Token button. Send it as Authorization: Bearer YOUR_TOKEN.
Body
application/json
Provide at least phone or email.
Lead name. Without a name, the lead is created as Novo Lead.
Maximum string length:
255Phone number. Only the digits are kept.
Maximum string length:
50Lead email.
Maximum string length:
255Lead source, for example site or rd_station.
Maximum string length:
100Notes about the lead.
Response
Lead accepted for processing.
Example:
"Lead accepted for processing"