Add leads to a list: one by hand, or up to 100
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.
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 <= 100updateExisting?booleanfalseDefault Response
application/json- response
added*integer0 <= value <= 9007199254740991alreadyInList*integer0 <= value <= 9007199254740991failed*integer0 <= value <= 9007199254740991items*array<>curl -X POST 'https://api.tryzen.co/v1/lists/string/leads' \ -H 'Content-Type: application/json' \ -d '{ "leads": [ { "leadId": "string" } ]}'{ "added": 0, "alreadyInList": 0, "failed": 0, "items": [ { "index": 0, "outcome": "added", "leadId": "string", "created": true, "blacklisted": { "lead": true, "company": true }, "code": "target_invalid", "message": "string", "problems": [ { "code": "string", "parameter": "string", "message": "string" } ] } ]}A page of the list's leads, in the order they were added GET
**Access:** an API key (or an org-wide key naming the workspace) with view on `leads`.
Delete leads from a list, by id or profile URL DELETE
**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`.