Leads
Delete a lead
DEL
/leads/{leadId}Deletes a lead, as the app’s Delete does: they leave every list and any campaign that hasn’t reached them. Someone you’ve already been in touch with, or marked Do not contact, stays (lead_has_history): stop them in their campaign instead.
Try itSend a real request with your API key
Path
leadIdstringRequiredThe lead.
Headers
Idempotency-KeystringAny unique value up to 255 characters, like a UUID. The request runs once; repeats within 24 hours get the first answer, with Idempotent-Replayed: true. Up to 255 characters.
Answer
200 OK Deleted.
dataDeletedRequiredInside it
idstringRequireddeletedbooleanRequired
Errors
- 401 Unauthorized
unauthorized - 404 Not found
not_foundnot_in_campaign - 409 Conflict
conflictidempotency_in_progressworkspace_busycampaign_finishedcampaign_without_listtag_limitlead_has_historycampaign_not_launchedcampaign_cannot_resumeambiguous_email - 422 Can’t process
idempotency_key_reused - 429 Too many requests
rate_limited - 500 Server error
server_error
Every error has the same shape. See Errors.