leads_assign_discovery
Associates a lead the workspace already owns with a record from the discovery database, instead of creating a new lead the way leads_bulk_add_to_segment does. Body: {company_guid, person_guid?} — the company is required, the person optional.
Effects. The GUIDs are unlocked for the workspace (so enrichments and leads_update accept them afterwards), the lead's discovery_company_guid/discovery_person_guid are overwritten, and — only when the lead has no contact yet — a contact is backfilled from the discovery record.
Cost. One ADD_LEAD_FROM_DISCOVERY charge per call, plus one CONTACT_ACCESS charge when person_guid names a person this workspace has never unlocked. Returns 402 when the balance or the daily spend limit will not cover it; nothing is linked in that case.
Method: POST /api/v1/workspaces/{workspace_sqid}/leads/{sqid}/assign-discovery/
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sqid": "<sqid>",
"company_guid": "<company_guid>"
},
"name": "leads_assign_discovery"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sqid | Yes | ||
| person_guid | No | GUID of the discovery Person to link. Omit to link the company only; the lead's existing person link is then left untouched. | |
| company_guid | Yes | GUID of the discovery Company to link to the lead. |