← Help center

API reference

Create a key in Settings → API keys and send it as Authorization: Bearer <key>.

POST /api/v1/leads            scope leads:write
{"email":"ann@acme.com","name":"Ann","company":"Acme","title":"CTO",
 "consent_text":"Opted in at our webinar registration, 2026-03-02"}

POST /api/v1/events           scope events:write
{"email":"ann@acme.com","type":"email_click","path":"/case-study"}

GET    /api/v1/leads/:id      scope leads:read
DELETE /api/v1/leads/:id      scope leads:write   (erasure request)

Event types: pageview, form_submit, email_click, custom. Events for unknown or unsubscribed leads are ignored.