Delete leads from a list, by id or profile URL
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.
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
listId*string^[0-9a-f]{24}$application/json- body
leads*array<|>1 <= items <= 100Default Response
application/json- response
removed*integer0 <= value <= 9007199254740991notInList*integer0 <= value <= 9007199254740991inCampaign*integer0 <= value <= 9007199254740991failed*integer0 <= value <= 9007199254740991items*array<>curl -X DELETE 'https://api.tryzen.co/v1/lists/string/leads' \ -H 'Content-Type: application/json' \ -d '{ "leads": [ { "leadId": "string" } ]}'{ "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" } ]}Add leads to a list: one by hand, or up to 100 POST
**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. Each item is a workspace lead id, or a person by LinkedIn profile URL with optional name, headline, position, company, company URL, location, email and custom fields. A URL is deduped against the workspace's leads like the CSV import (a new person becomes a lead, source `manual` from the app, `api` from a key); profile fields are written only on a new lead unless `updateExisting`, custom fields and the email always. Per-item failures (`target_invalid` with every `problems` entry, `lead_not_found`) don't fail the call; a lead already in the list is `already_in_list`. A blacklisted lead is still added and flagged in `blacklisted` (campaigns skip it at every step). 409 `list_busy` while an import or operation fills the list, `company_list` for a company list; 404 `list_not_found`.
Export a list as CSV GET
**Access:** an API key (or an org-wide key naming the workspace) with view on `leads`. `text/csv`, streamed, every member in the order added. Columns: linkedin_url, first_name, last_name, headline, position, company, company_url, location, email (the CSV import maps these by itself), one column per custom field, then tags and auto_tag. Cells that would run as a spreadsheet formula get a leading `'`.