Partner API
Leads and policies
List the leads you sent to Kinro with list_leads: how many engaged, were quoted and bound, when each customer was last active and contacted, and each lead's policies and documents.
See every lead you sent to Kinro, how far each one got, when Kinro last heard from or contacted the customer, and the policies Kinro placed for it. Call list_leads from your server with your partner token. Embedded partners use it for a dashboard of their referrals; brokers use it to reconcile their client records.
Calling list_leads
list_leads returns your leads in your token's environment, newest first. A test token sees your test leads, plus Kinro's shared test lead on the preview endpoint; a live token sees your live leads only.
curl -X POST https://api.kinro.com/mcp \
-H "Authorization: Bearer $KINRO_PARTNER_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{
"jsonrpc": "2.0",
"id": "leads_1",
"method": "tools/call",
"params": { "name": "list_leads", "arguments": { "limit": 25 } }
}'| Argument | Description |
|---|---|
limit | Leads per page, 1 to 100. Default 25. |
cursor | The next_cursor of the previous page. Omit it for the first page. |
A lead is yours when you sent it with upsert_lead, when a customer started it in your embedded widget, or when Kinro received it from your integration in another way. A visitor who opens your widget without a customer token becomes a lead once they share a phone number or email; until then nothing is listed. That lead is live on your registered sites after activation, and a test lead on a local development page.
What comes back
{
"environment": "test",
"counts": { "transferred": 12, "engaged": 9, "quoted": 7, "bound": 3 },
"leads": [
{
"lead_id": "7e57c0de-5a4d-4b0c-9e1a-000000000001",
"external_id": "kinro_shared_test_lead",
"company_name": "Sample Harbor Bakery LLC",
"created_at": "2026-11-30T18:02:11.000Z",
"stage": "bound",
"last_customer_activity_at": null,
"last_contacted_at": null,
"shared_test_lead": true,
"policies": [
{
"policy_id": "7e57c0de-5a4d-4b0c-9e1a-000000000002",
"policy_number": "KNR-SIM-SHARED01",
"status": "active",
"carrier": "Sample Carrier (Sandbox)",
"line_of_business": "general_liability",
"effective_date": "2026-11-30",
"expiration_date": "2027-11-30",
"premium_amount_cents": 9200,
"premium_period": "monthly",
"bound_at": "2026-11-30T18:02:11.000Z",
"documents": [
{
"document_id": "7e57c0de-5a4d-4b0c-9e1a-000000000003",
"type": "declarations",
"filename": "sample-declarations.pdf",
"content_type": "application/pdf",
"size_bytes": 2254,
"download_url": "https://...",
"expires_at": "2026-11-30T18:17:11.000Z"
}
]
}
]
}
],
"next_cursor": null
}countscovers all your leads in this environment, not only the current page:transferredis every lead,engagedthe leads whose customer answered Kinro,quotedthe leads that received at least one quote, andboundthe leads with at least one bound policy. Each count includes the later stages, so a bound lead also counts as engaged and quoted.stageis how far a lead got:transferred,engaged,quotedorbound. A lead staysboundafter its policy is cancelled; the policy'sstatusshows the cancellation.last_customer_activity_atis when the customer last messaged Kinro, submitted an intake, or engaged by phone. It isnulluntil the customer engages.last_contacted_atis when Kinro last sent a reply or message, or placed a call. It isnulluntil one of those actions is recorded.external_idis the ID you sent withupsert_lead. It isnullfor a lead started in the widget without one, or when more than one of your records names the lead.policieslists every bound policy with its currentstatus:active,pending_docs,cancelledorexpired.next_cursoris set when more leads follow. Pass it back ascursor.
Policy documents
For test leads, sandbox policies can include documents such as a declarations page, policy or certificate of insurance. Each download_url works for 15 minutes, until expires_at. Call list_leads again for a fresh link.
Download the file from your server and store or serve it from there. Do not put the link in a URL your customers share. If a link could not be created, download_url is null; list the leads again later.
Keeping in sync
Use webhooks to learn about changes as they happen, and list_leads to show the current state or to catch up after downtime. Both identify a lead by the same lead_id and external_id.