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
Your API key with write scope
Query Parameters
The ID of the campaign the record belongs to
Phone number in E.164 format. Required if externalId is not provided.
Your CRM’s internal ID for this record. Required if phoneNumber is not provided.
Response
Whether the request was successful
Always true if the request succeeded
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 Response
Error Response - Not Found
{
"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.