Tags
Tags are labels for organizing people and triggering automation. Use this API to list, create, and discard tag definitions. To add or remove tags from a subscriber, use Subscriber Commands or the batch subscriber import endpoint.
Available Endpoints
- GET
/fetch/tagsGet Tags
List tags in your account.
- POST
/fetch/tagsCreate Tag
Create one custom tag.
- DELETE
/fetch/tags/:idDelete Tag
Discard one tag definition by id and name.
The Tag Model
The tag model is a simple named data point you can use to tag subscribers.
Properties
- Name
namestring- Description
The name of the tag
Get Tags
/v1/fetch/tagsReturns a list of tags in your account.
Response
Returns a list of Tags in your account.
- Name
dataarray- Description
Tag records in your account.
- Name
data[].namestring- Description
Tag name.
Create Tag
/v1/fetch/tagsCreates a custom tag in your account.
Required Attributes
- Name
namestring- Description
The name of the tag to create.
Response
Returns the details of the created Tag.
- Name
data.namestring- Description
Name of the created tag.
Delete Tag
/v1/fetch/tags/:idDiscards a tag in your account.
id from Get Tags in the URL path. Send tag.name in the JSON body.Required Attributes
- Name
idstring- Description
Tag id from the list tags response.
- Name
tag.namestring- Description
The name of the tag to discard.
Response
Returns a status message for the discard or restore action.
- Name
messagestring- Description
Confirmation message, such as
Tag (example) deleted successfully.