Submit a lead
Or use the API
POST /api/leads with the same fields as JSON. consent is true or false; city and source are optional. Products: KVG, VVG, LIFE, CAR. Cantons: two-letter codes.
curl -s -X POST https://leads-v1.sdi.skaloom.com/api/leads \
-H 'Content-Type: application/json' \
-d '{"firstName":"Lea","lastName":"Brunner","email":"lea.brunner@example.com","phone":"079 004 12 33","postcode":"8400","city":"Winterthur","canton":"ZH","product":"KVG","consent":true,"source":"Partner API"}'
Response (shortened):
HTTP/1.1 201 Created
{
"id": 812,
"url": "/leads/812",
"status": "valid", // valid | warnings | invalid | duplicate
"stage": "assigned", // assigned | waiting | rejected
"statusReason": "All checks passed.",
"checks": [{ "check": "phone", "result": "pass", "reason": "Swiss mobile number (079), …" }, …],
"duplicateOf": null,
"broker": { "id": 2, "name": "Muster Finanz Zürich GmbH" },
"assignmentReason": "KVG in ZH: 2 eligible brokers; …",
"pipedrive": { "simulated": true, … }
}
Errors: 400 {"error", "fields"} for a malformed request, 415 if the body isn't JSON, 413 above 64 KB, 429 when changes come too fast.