Track a lead
A click became a person: a sign-up, a form, a trial. Send the kc_click your page received and your own id for the person. One lead per person and event name; sending it again counts nothing and answers created: false. Call this from your server, never from the browser: it needs your API key.
Authorization
apiKey AuthorizationBearer <token>
An API key from Settings, Developers: Authorization: Bearer kc_live_...
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/track/lead" \ -H "Content-Type: application/json" \ -d '{ "clickId": "stringst", "customerId": "string" }'{ "id": "string", "created": true, "kind": "lead", "eventName": "string", "amount": 0, "currency": "string", "customer": { "id": "string", "externalId": "string", "name": "string", "email": "string" }, "link": { "id": "string", "name": "string", "shortUrl": "string" }}