إنتقل إلى المحتوى الرئيسي

Delete a lead

DELETE 

/v1/agents/:agentId/leads/:leadId

x-scope: "leads:write"

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.

Request​

Responses​

Deleted.

Response Headers
    X-Correlation-ID

    Correlation id for this request — paste into support tickets.