Pull the leads you bought
Read every lead you bought into your own system, oldest first, without missing one.
These routes ship with the Buyer API's first release
Today a Buyer API key answers /v1/buyer/key. The lead feed below ships next, with the
leads:read scope. Until then, the buyer key that starts b3m_, from your buyer portal, keeps
reading leads at its current address.
How the feed works
The lead feed hands you the leads you bought, oldest first, so you can read it like a queue:
- Ask for a page of leads.
- Store each one in your system.
- Ask again with the page's
nextCursor. WhenhasMoreisfalseyou are up to date. - Save the last cursor. Next time, start from it and you get only what arrived since.
Because the order is oldest first, a cursor never skips a lead, even while new ones arrive.
What a lead shows
You see what the account shares with buyers: the answers, the contact details and the consent record, exactly as in your buyer portal. If the account hides a field from buyers, the API hides it too.
Hear about leads as they arrive
Instead of asking every minute, add a webhook endpoint for lead.assigned in your buyer portal. Read the feed when an event arrives, and once in a while in case one was missed. See webhooks.
Report an outcome
When you work a lead, tell TRAKI what happened (sold, no answer, wrong number). The account sees it. This needs leads:write.