cURL
curl --request DELETE \ --url https://api.kakiyo.com/v1/prospects/{prospectId} \ --header 'Authorization: Bearer <token>'
{ "message": "Prospect deleted successfully", "deletionSummary": { "prospectId": "prospect_123", "deletedItems": { "chats": 1, "messages": 8 } } }
Delete a single prospect and all associated data
{ "message": "Prospect deleted successfully", "deletionSummary": { "prospectId": "prospect_123", "prospectName": "John Smith", "campaignId": "campaign_456", "campaignName": "Enterprise Outreach Q4", "deletedItems": { "chats": 1, "messages": 8, "tasks": 3, "webhookEvents": 2 }, "deletedAt": "2024-01-20T15:30:00Z" }, "campaignStatsUpdated": { "prospectsCount": 149, "messagesCount": 412, "qualifiedCount": 11 } }
curl -X DELETE "https://api.kakiyo.com/v1/prospects/prospect_123" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json"
// JavaScript/Node.js const prospectId = 'prospect_123'; const response = await fetch(`https://api.kakiyo.com/v1/prospects/${prospectId}`, { method: 'DELETE', headers: { 'Authorization': 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' } }); const result = await response.json(); console.log('Deletion Result:', result);
# Python import requests prospect_id = 'prospect_123' response = requests.delete( f'https://api.kakiyo.com/v1/prospects/{prospect_id}', headers={ 'Authorization': 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' } ) result = response.json() print('Deletion Result:', result)
{ "error": "not_found", "message": "Prospect not found" }
{ "error": "forbidden", "message": "You do not have access to this prospect" }
{ "error": "prospect_active", "message": "Cannot delete prospect with active conversation. Please pause first." }
curl -X POST "https://api.kakiyo.com/v1/prospects/prospect_123/pause" \ -H "Authorization: Bearer YOUR_API_KEY"
curl -X POST "https://api.kakiyo.com/v1/prospects/prospect_123/disqualify" \ -H "Authorization: Bearer YOUR_API_KEY"
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Prospect deleted successfully
"Prospect deleted successfully"
Show child attributes