Delete a Saved Search of a Contact

Deletes one saved search of a contact. The contact stops getting its email updates.

DELETE/v1/crm/contacts/:id/saved-searches/:searchId

Authentication

API keyAuthorization: Bearer

Secret API key as Authorization: Bearer sk_live_…. Create it in the dashboard under Workspace settings › API Keys, with full access or only the areas it needs (see API Keys & Scopes). Keys are for servers only. Needs the saved_searches:write scope.

Path Parameters

idstring
required

Contact id.

searchIdstring
required

Saved search id.

Responses

200Success
application/json
idstring
deletedboolean

Errors

401Missing, invalid or revoked API key. The body is { error: { code, message } }.
403The account has no active subscription (error.code subscription_inactive), or the key lacks the required scope (insufficient_scope, and error.details.required names it).
429More than 120 requests per minute for this key. Wait for the Retry-After header.
404No such contact or saved search in this account.
Request
curl --request DELETE \
--url "https://api.pandaidx.com/v1/crm/contacts/6ad0c3f2e4b1a2c3d4e5f607/saved-searches/6ad0c9a1e4b1a2c3d4e5f640" \
--header "Authorization: Bearer {{api_key}}"
Response200 OK
{
"id": "6ad0c9a1e4b1a2c3d4e5f640",
"deleted": true
}