Set or delete a lead's custom fields
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.
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
leadId*string^[0-9a-f]{24}$application/json- body
customFields*Default Response
application/json- response
leadId*string^[0-9a-f]{24}$customFields*curl -X PATCH 'https://api.tryzen.co/v1/leads/string/custom-fields' \ -H 'Content-Type: application/json' \ -d '{ "customFields": { "property1": "string", "property2": "string" }}'{ "leadId": "string", "customFields": { "property1": "string", "property2": "string" }}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.
The workspace's tags, by name GET
**Access:** an API key (or an org-wide key naming the workspace) with view on `leads`. The same tags the Unibox puts on conversations and the lists screen shows on leads.