API ReferenceLeads
Delete Lead List
Delete a lead list and its attached companies and leads
Delete Lead List
Permanently deletes one lead list owned by the authenticated user.
Deleting a lead list also deletes companies attached to that list. Leads under
those companies are deleted by the database cascade through leads.company_id.
id(integer) (required) — The lead list ID.
curl -X DELETE https://api.hermes.camie.ai/v1/lead-lists/15 \
-H "Authorization: Bearer hermes_your_api_key"Response
{
"success": true,
"data": {
"lead_list_id": 15,
"deleted_companies": 137,
"deleted_leads": 41,
"message": "Lead list deleted successfully"
}
}Errors
| Status | Code | Meaning |
|---|---|---|
400 | INVALID_INPUT | The lead list ID is not a number. |
404 | LEAD_LIST_NOT_FOUND | The lead list does not exist or does not belong to the authenticated user. |
500 | LEAD_LIST_DELETE_ERROR | Hermes could not delete the lead list. |
Notes
- This action is destructive. Use
GET /v1/lead-lists/:id/companiesorGET /v1/lead-lists/:id/leadsfirst if you need to inspect what will be removed. - The delete response counts companies directly attached to the list and visible lead rows for the authenticated user.