Export as lead
export_conversation_leadExports a conversation as an enriched lead using matching audience data and recent messages, optionally posts it to a webhook, and returns JSON or CSV.
Instructions
Export as lead.
Required API key scope: conversations:write.
POST /conversations/{id}/crm
Builds a lead (enriched from the matching audience member, last 5 messages), fires the lead.imported
webhook event, optionally POSTs the lead to webhookUrl (failures ignored), and returns it as JSON or CSV.
The body is optional.
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": {
"id": "<id>"
},
"name": "export_conversation_lead"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Path parameter `id`. | |
| body | No | JSON request body. |