cURL
curl --request DELETE \ --url https://app.journeybee.io/api/v1/leads/{leadId} \ --header 'Authorization: Bearer <token>'
Delete a lead
curl -X DELETE "https://app.journeybee.io/api/v1/leads/{leadId}" \ -H "Authorization: Bearer your-api-key-uuid" \ -H "Content-Type: application/json"
204 No Content
curl -X DELETE "https://app.journeybee.io/api/v1/leads/789" \ -H "Authorization: Bearer jb_api_1234567890abcdef" \ -H "Content-Type: application/json"
json 204 No Content (No response body)
{ "error": "Invalid API key or insufficient permissions" }
{ "error": "Write access required for this operation" }
{ "error": "Lead not found or already deleted" }