Skip to main content
DELETE
/
api
/
leads
/
search
/
{id}
Delete a lead search
curl --request DELETE \
  --url https://app.puffle.ai/api/leads/search/{id} \
  --header 'Authorization: Bearer <token>'
{
  "success": true
}

Overview

Hard-delete a lead search. Cascades to lead_search_results via foreign key. Irreversible. Note: this does NOT cancel an in-flight Apify run — the background task will still complete in Apify’s cloud, but the results have nowhere to land and are discarded.
This operation shares the URL path /api/leads/search/{id} with other verbs. See the sibling page for related operations on the same resource.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

Lead search UUID. Must be owned by the authenticated user.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Response

Search (and all its results) deleted.

success
enum<boolean>
required
Available options:
true