Tags

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

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

GET/v1/fetch/tags

Returns 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

POST/v1/fetch/tags

Creates a custom tag in your account.

Only a single tag can be created at a time.

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

DELETE/v1/fetch/tags/:id

Discards a tag in your account.

Use the tag 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.