Add tags to a lead
Access: an API key (or an org-wide key naming the workspace) with manage on leads.
Batch: through an API key, tagIds holds at most 100 items.
Adds the named tags and keeps the lead's others; a tag it already has is a no-op. Name tags by tagIds, by names, or both (at most 100 each). A name the workspace doesn't have is 422 tag_not_found unless createMissing (then it is created with color, default blue). A lead carries at most 100 tags (422 too_many_tags). A real change fires the lead_tag_updated webhook; a no-op fires nothing.
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
leadId*string^[0-9a-f]{24}$application/json- body
tagIds?array<>items <= 100[]names?array<>items <= 100[]createMissing?booleanfalsecolor?string"blue""gray""red""orange""yellow""green""blue""purple""pink"Default Response
application/json- response
leadId*string^[0-9a-f]{24}$tags*array<>added*array<>removed*array<>created*array<>curl -X POST 'https://api.tryzen.co/v1/leads/string/tags' \ -H 'Content-Type: application/json' \ -d '{}'{ "leadId": "string", "tags": [ { "id": "string", "name": "string", "color": "gray" } ], "added": [ "string" ], "removed": [ "string" ], "created": [ { "id": "string", "name": "string", "color": "gray" } ]}Create a workspace tag POST
**Access:** an API key (or an org-wide key naming the workspace) with manage on `leads`. A name (1–50 characters, unique in the workspace) and one of the 8 colors (default `blue`). 409 `tag_exists` when the name is taken.
Replace a lead's tags as a set PUT
**Access:** an API key (or an org-wide key naming the workspace) with manage on `leads`. **Batch:** through an API key, `tagIds` holds at most 100 items. The named tags become the lead's whole set (empty lists remove every tag). Name tags by `tagIds`, by `names`, or both (at most 100 each). A name the workspace doesn't have is 422 `tag_not_found` unless `createMissing` (then it is created with `color`, default blue). A lead carries at most 100 tags (422 `too_many_tags`). A real change fires the `lead_tag_updated` webhook; a no-op fires nothing.