Leads
Delete Lead
Delete a single lead from your campaign
DELETE
Documentation Index
Fetch the complete documentation index at: https://lupitor-docs.com/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint Alias: You can also use
/api/v1/records instead of /api/v1/leads. Both endpoints are functionally identical - use whichever naming convention fits your integration.Lead Lookup
Leads are identified byexternalId or phoneNumber, not internal IDs. This matches how you created the lead.
At least one of
phoneNumber or externalId is required. If both are provided, externalId takes priority for the lookup.Authentication
Your API key with
write scopeQuery Parameters
The ID of the campaign the lead belongs to
Phone number in E.164 format (e.g., +15555551234).Required if
externalId is not provided.Your CRM’s internal ID for this lead.Required if
phoneNumber is not provided.Response
Whether the request was successful
Error message if request failed
Examples
- By External ID
- By Phone Number
Delete by external CRM reference:
Notes
Access Control: You can only delete leads that belong to campaigns your API key has access to.
Common Errors
| Error | Cause | Solution |
|---|---|---|
campaignId query parameter is required | Missing campaignId | Include campaignId in query string |
At least one of phoneNumber or externalId query parameter is required | Missing both identifiers | Include phoneNumber or externalId |
Lead not found | Lead doesn’t exist in campaign | Verify identifier and campaign |
Invalid or inactive API key | Wrong API key | Check your API key |
Forbidden | API key doesn’t have write access | Use an API key with write scope |