Guide / Website & API

Send leads from your website's server

Developers

Your site's server posts JSON to /api/v1/leads with the header X-Api-Key:

{ "name": "…", "mobile": "…", "email": "…", "company": "…", "interest": "…",
  "message": "…", "page": "/pricing", "consent": { "enquiry": true, "marketing": false } }

Replies: 201 new lead, 200 added to the person's open lead, 422 with a reason (no enquiry consent, no way to reply), 401/403 key problems. Never put the key in a web page. Full reference: Developers.