Tags overviewMenu
On this page

Tags

A tag is a label on campaigns, journeys, segments and templates, such as "Black Friday", for filtering lists and reports. A tag is not an audience: to group contacts, use a list or a segment. A tag that a segment or journey rule names cannot be deleted until the rule stops naming it.

Endpoints

EndpointRequest
List tagsGET /v1/tags
Create a tagPOST /v1/tags
Rename a tagPATCH /v1/tags/{id}
Delete a tagDELETE /v1/tags/{id}
Merge a tag into anotherPOST /v1/tags/{id}/merge

The Tag object

Tag example
{
  "id": "018f2a4e-6b1c-7d3e-9f40-37386ae05a6b",
  "name": "name_example",
  "usage": {
    "campaigns": 0,
    "journeys": 0,
    "segments": 0,
    "templates": 0
  },
  "createdAt": "2030-03-14T09:30:00Z",
  "updatedAt": "2030-03-14T09:30:00Z"
}
idstringrequired

uuid

namestringrequired
usageobjectrequired

How many items of each kind carry the tag.

4 child attributes
campaignsintegerrequired

min 0

journeysintegerrequired

min 0

segmentsintegerrequired

min 0

templatesintegerrequired

min 0

createdAtstringrequired

date-time

updatedAtstringrequired

date-time