Create a lead
POST
https://server.heyrik.com/api/v1/leadsHeaders
AuthorizationstringRequiredUse Bearer $HEYRIK_API_KEY with an account-scoped API key. Keep the key on your server.
Parameters 6
Fields documented for this operation. See the request example for placement and structure.
namestringRequiredContact name.
phonestringE.164 — required if you want to call them.
emailstringContact email.
companystringCompany name.
stagestringPipeline stage. Defaults to the first stage.
customobjectAny extra fields — become {{variables}} on a call.
Response
No response example is documented for this operation yet.
Error referencePOST/leads
cURL
curl -X POST https://server.heyrik.com/api/v1/leads \
-H "Authorization: Bearer $HEYRIK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Ravi Kumar",
"phone": "+919876543210",
"company": "Acme",
"stage": "new",
"custom": { "order_id": "AC-8842" }
}'Illustrative examples · No live request is sent
