Send your first lead
Send one lead on Demo and check that it arrived.
Steps
-
1
Where your lead goes
Your API key is bound to a lead source; the lead source belongs to a marketplace — every lead you send with this key lands there.
GET /accountshows which.Response (excerpt){ "keyName": "My CRM", "permissions": ["api:provider:lead:write"], "leadSource": { "id": "00000000-0000-4000-8000-000000000001", "name": "Website form", "marketplace": { "id": "00000000-0000-4000-8000-000000000002", "name": "My Marketplace" } }, "environment": "demo" } -
2
Send a lead
Send the required fields plus
streetandcity, which the API also needs for most addresses — with your own test values, not the example names.curlcurl -X POST https://demo.api.lead.zolar.tech/api/public/v2/leads \ -H "Authorization: Bearer sk_[YOUR DEMO KEY]" \ -H "Content-Type: application/json" \ -d '{ "firstName": "[YOUR TEST FIRST NAME]", "lastName": "[YOUR TEST LAST NAME]", "email": "[YOUR TEST EMAIL]", "mobilePhone": "[YOUR TEST MOBILE NUMBER]", "street": "[STREET AND HOUSE NUMBER]", "city": "[CITY]", "postalCode": "[POSTAL CODE]", "properties": { "interest": { "pv": "interestNew" }, "building": { "type": "residential" } } }'streetmay be left out only when your lead source allows approximate locations, or for a Dutch address (postal code like1234 ABplushouseNumber);cityonly for a Dutch address.If you send
properties, it must containbuilding; sendinteresttoo, or installers won't see the lead. Other optional fields, such asleadIdLeadPartner(your own ID), are listed under Create a new lead.Use a new name, email and phone for every test: duplicates are checked across the whole platform, including other partners' Demo leads, so a reused or sample name returns
409. Sample names such as "Mustermann" andexample.comaddresses are flagged as test leads and never offered to installers. -
3
Check it arrived
A
201returns the new lead'sidand awarningslist (empty when everything was understood).Response{ "id": "[LEAD ID]", "warnings": [] }Fetch it by ID (needs Read leads), or open My Marketplaces → Dashboard, pick the marketplace and look under Active Projects.
curlcurl -X POST https://demo.api.lead.zolar.tech/api/public/v2/leads/bulk \ -H "Authorization: Bearer sk_[YOUR DEMO KEY]" \ -H "Content-Type: application/json" \ -d '{ "ids": ["[LEAD ID]"] }' -
4
Update it
OptionalChange
leadIdLeadPartnerorproperties.marketplace.maxOfferCount(needs Update leads or Insert leads). A new lead only becomesREADYafter verification; until then aPATCHreturns400.maxOfferCountis at least 1; lowering it to or below the number of times the lead was already bought takes the lead off the marketplace (OFFLINE).curlcurl -X PATCH https://demo.api.lead.zolar.tech/api/public/v2/leads/[LEAD ID] \ -H "Authorization: Bearer sk_[YOUR DEMO KEY]" \ -H "Content-Type: application/json" \ -d '{ "leadIdLeadPartner": "crm-4711" }'
Rate limit: 60 requests per rolling 60 seconds per key,
including the try-it console. Over the limit you get 429.