TryzenAPI
Lists

Delete leads from a list, by id or profile URL

DELETE
/v1/lists/{listId}/leads

Access: an API key (or an org-wide key naming the workspace) with manage on leads.

Batch: through an API key, leads holds at most 100 items.

Removes list membership only: the leads stay in the workspace and in their other lists. A lead still active (pending, in progress, paused) in a campaign that runs on this list is kept and reported in_campaign with those campaigns: stop it in the campaign first. Up to 100 items; per-item not_in_list, lead_not_found, target_invalid. 409 list_busy, company_list; 404 list_not_found.

Authorization

apiKey
headerx-api-key<token>

Workspace API key (nrk_…), shown once when created

Path Parameters

listId*string
Match^[0-9a-f]{24}$

Request Body

application/json
  1. body
leads*array<|>
Items1 <= items <= 100

Response Body

Default Response

application/json
  1. response
removed*integer
Range0 <= value <= 9007199254740991
notInList*integer
Range0 <= value <= 9007199254740991
inCampaign*integer
Range0 <= value <= 9007199254740991
failed*integer
Range0 <= value <= 9007199254740991
items*array<>
Example Request
curl -X DELETE 'https://api.tryzen.co/v1/lists/string/leads' \  -H 'Content-Type: application/json' \  -d '{  "leads": [    {      "leadId": "string"    }  ]}'
Example Response
{  "removed": 0,  "notInList": 0,  "inCampaign": 0,  "failed": 0,  "items": [    {      "index": 0,      "outcome": "removed",      "leadId": "string",      "campaigns": [        {          "id": "string",          "name": "string"        }      ],      "code": "target_invalid",      "message": "string"    }  ]}