Skip to main content
Tags allow you to organize and segment your subscribers based on their interests, behaviors, or characteristics. They’re essential for targeted email campaigns and subscriber management.

List tags

Returns a list of tags for your account.

Endpoint

GET /v3/tags

Parameters

string
required
Your account API key

Create a tag

Create one or multiple tags for your account.

Endpoint

POST /v3/tags

Parameters

string
required
Your API key
object|array
required
A JSON object or an array of JSON objects that includes the tag name. Each object should contain:
  • name (required): The name of the tag

Tag a subscriber

Tags are handled as subscriptions. Subscribe an email address to a tag to have that tag applied to the subscriber with that email address.

Endpoint

POST /v3/tags/#{tag_id}/subscribe

Parameters

string
required
Your API secret key
integer
required
The ID of the tag you want to apply
string
required
Subscriber email address
string
Subscriber first name
object
Object of key/value pairs for custom field(s). The custom field(s) must exist before you can use it here.
array
Array of tag ids to subscribe to

Deprecated Parameters

array
Array of sequence ids to subscribe to. You should add the subscriber to the sequence directly.
array
Array of form ids to subscribe to. You should add the subscriber to the form directly.
string
Subscriber first name. You should prefer using first_name listed above.

Remove tag from a subscriber

Remove a specific tag from a subscriber by subscriber ID.

Endpoint

DELETE /v3/subscribers/#{subscriber_id}/tags/#{tag_id}

Parameters

string
required
Your API secret key
integer
required
The ID of the subscriber
integer
required
The ID of the tag to remove

Remove tag from a subscriber by email

Remove a specific tag from a subscriber by email address.

Endpoint

POST /v3/tags/#{tag_id}/unsubscribe

Parameters

string
required
Your API secret key
integer
required
The ID of the tag to remove
string
required
Subscriber email address

List subscriptions to a tag

List subscriptions to a tag including subscriber data.

Endpoint

GET /v3/tags/#{tag_id}/subscriptions

Parameters

string
required
Your API secret key
integer
required
The ID of the tag you want to retrieve subscriptions for
string
Sort order for results (asc or desc). asc to list subscribers added oldest to newest, desc to list subscribers added newest to oldest. Default is asc.
string
Filter by subscriber state (active or cancelled). Receive only active subscribers or cancelled subscribers.
string
The page of results being requested. Default value is 1. Each page of results will contain up to 50 subscriptions.