Skip to main content
DELETE
https://YOUR_DEPLOYMENT.lupitor.com/api/v1
/
api
/
v1
/
records
curl -X DELETE "https://YOUR_DEPLOYMENT.lupitor.com/api/v1/records?campaignId=YOUR_CAMPAIGN_ID&externalId=CRM_12345" \
  -H "x-api-key: YOUR_API_KEY"
{
  "success": true,
  "data": {
    "deleted": true
  },
  "error": null
}
Endpoint Alias: This endpoint is an alias for /api/v1/leads. Both endpoints are functionally identical - use whichever naming convention fits your integration.

Record Lookup

Records are identified by externalId or phoneNumber, not internal IDs.
At least one of phoneNumber or externalId is required. If both are provided, externalId takes priority for the lookup.

Authentication

x-api-key
string
required
Your API key with write scope

Query Parameters

campaignId
string
required
The ID of the campaign the record belongs to
phoneNumber
string
Phone number in E.164 format.Required if externalId is not provided.
externalId
string
Your CRM’s internal ID for this record.Required if phoneNumber is not provided.

Response

success
boolean
Whether the request was successful
data
object
error
string | null
Error message if request failed

Examples

curl -X DELETE "https://YOUR_DEPLOYMENT.lupitor.com/api/v1/records?campaignId=YOUR_CAMPAIGN_ID&externalId=CRM_12345" \
  -H "x-api-key: YOUR_API_KEY"
{
  "success": true,
  "data": {
    "deleted": true
  },
  "error": null
}

Notes

Permanent Deletion: This action cannot be undone. The record will be permanently deleted.
Need the record data? Fetch the record first, then delete it.
For full documentation, see Delete Lead.