Delete a lead
delete_leadDelete a lead
Deletes the lead permanently: there is no undo. The contact, its notes (status changes
that name the lead included) and the conversation stay. A second delete of the same lead
is 404 not_found. If the AI later saves a lead from the same conversation, it is a new
lead. Contacts can't be deleted through the API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lead_id | Yes | A lead of the agent. Another agent's lead is `404 not_found`. | |
| agent_id | Yes | The agent the resource belongs to. Another company's agent, or the nil UUID, is `404 agent_not_found`; an agent outside the key's agent list is `403 agent_not_authorized`. |