Create a workspace tag
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.
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
application/json- body
name*string1 <= length <= 50color?string"blue""gray""red""orange""yellow""green""blue""purple""pink"Default Response
application/json- response
tag*curl -X POST 'https://api.tryzen.co/v1/tags' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'{ "tag": { "id": "string", "name": "string", "color": "gray" }}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.
Add tags to a lead POST
**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.