One lead: profile, email, custom fields, tags, connections
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.
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
leadId*string^[0-9a-f]{24}$Default Response
application/json- response
lead*curl -X GET 'https://api.tryzen.co/v1/leads/string'{ "lead": { "id": "string", "firstName": "string", "lastName": "string", "headline": "string", "position": "string", "companyName": "string", "companyGuessedFrom": "headline", "location": "string", "profileUrl": "string", "pictureUrl": "string", "email": { "state": "none", "value": "string", "reason": "string" }, "tags": [ { "id": "string", "name": "string", "color": "gray" } ], "customFields": { "property1": "string", "property2": "string" }, "companyUrl": "string", "autoTag": { "value": "string", "at": "2019-08-24T14:15:22Z" }, "blacklist": { "lead": true, "company": true }, "connections": [ { "senderId": "string", "state": "none", "invitedAt": "2019-08-24T14:15:22Z", "acceptedAt": "2019-08-24T14:15:22Z" } ], "listIds": [ "string" ], "campaignIds": [ "string" ], "source": "csv", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}A lead's LinkedIn profile photo, as we stored it GET
**Access:** a member of the workspace in the `workspaceId` query parameter or an API key (or an org-wide key naming the workspace) with view on `leads`. The image bytes (`image/jpeg`, `image/png`, `image/webp` or `image/avif`), privately cacheable for a day. Use the `pictureUrl` the profile lookup returns (relative to the API base); it is never a LinkedIn URL and fetching it never reads LinkedIn. The photo is stored by the inbox sync from a thread with the person. 404 when none is stored (show initials).
The campaigns a lead is in, with its status in each GET
**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.