curl --request DELETE \
--url https://api.example.com/v1/deals/{id}{
"data": {
"deleted": true,
"id": "<string>"
}
}Permanently delete a deal from your workspace
curl --request DELETE \
--url https://api.example.com/v1/deals/{id}{
"data": {
"deleted": true,
"id": "<string>"
}
}Authorization: Bearer wbk_your_api_key_here
deals:write permission.deal_id is set to null) but are not deleted. Fires the deal.deleted webhook event.curl -X DELETE https://data.leadlex.com/functions/v1/api-gateway/v1/deals/3f8e1d2c-4b5a-6d7e-8f9a-0b1c2d3e4f5a \
-H "Authorization: Bearer wbk_your_api_key_here"
{
"data": {
"deleted": true,
"id": "3f8e1d2c-4b5a-6d7e-8f9a-0b1c2d3e4f5a"
}
}
| Status | Code | Description |
|---|---|---|
| 401 | invalid_key | Invalid or expired API key |
| 403 | insufficient_permissions | Missing deals:write permission |
| 404 | deal_not_found | No deal with this ID in your workspace |
| 429 | rate_limited | Rate limit exceeded |