The campaigns a lead is in, with its status in each
Access: an API key (or an org-wide key naming the workspace) with view on campaigns.
Newest enrollment first, at most 200. leadStatus is the lead's own status in that campaign (pending, in_progress, finished, paused, failed, excluded). 404 lead_not_found when it isn't in this workspace.
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
leadId*string^[0-9a-f]{24}$Default Response
application/json- response
leadId*string^[0-9a-f]{24}$campaigns*array<>curl -X GET 'https://api.tryzen.co/v1/leads/string/campaigns'{ "leadId": "string", "campaigns": [ { "campaignId": "string", "name": "string", "campaignStatus": "draft", "leadStatus": "pending", "replied": true, "senderId": "string", "failureCode": "string", "enrolledAt": "2019-08-24T14:15:22Z", "finishedAt": "2019-08-24T14:15:22Z" } ]}One lead: profile, email, custom fields, tags, connections GET
**Access:** an API key (or an org-wide key naming the workspace) with view on `leads`. The lead drawer's facts: name, headline, position, company, location, profile URL, the unified email and its state, custom fields, manual tags, the auto-tag, the blacklist badge, the connection status with each sender that has a relationship with it, and the lists and campaigns it is in (at most 200 each). 404 `lead_not_found` when it isn't in this workspace.
Set or delete a lead's custom fields PATCH
**Access:** an API key (or an org-wide key naming the workspace) with manage on `leads`. A merge: a string sets the field, `null` deletes it, fields left out stay. At most 100 per call; names use letters, numbers and `_` (≤ 128) and can't be a default variable (`FIRST_NAME`, `COMPANY`…); values ≤ 2,048 characters (400 otherwise). Every bad name comes back at once in `error.problems` (422 `invalid_custom_fields`). The fields are usable as `{variables}` in sequences.