Tag Management¶
Tags enable granular subscription preferences for your subscribers. All tags are scoped to the organization associated with your API key.
Concept¶
graph TD
subgraph "Organization"
T1[Tag: product-updates]
T2[Tag: weekly-digest]
T3[Tag: marketing]
end
subgraph "Subscriber"
S1[user@example.com]
end
S1 -->|subscribed| T1
S1 -->|subscribed| T2
S1 -.->|not subscribed| T3 Tag Limits by Tier¶
| Tier | Tag Limit |
|---|---|
| Free | 3 |
| Starter | Unlimited |
| Professional | Unlimited |
Exceeding the tag limit on the Free tier returns a 403 Forbidden with error code limit_exceeded.
Creating a Tag¶
The tag is automatically associated with the organization that owns the API key.
Tag Properties¶
| Field | Type | Description |
|---|---|---|
name | string | Technical name (slug), unique per organization |
display_name | string | Display name in the preference center |
description | string | Description for subscribers |
category | string | Grouping (e.g., "newsletter", "notifications") |
is_active | boolean | Whether the tag is shown in the preference center |
sort_order | integer | Sort order |
Organization Scope
Tag names must be unique within an organization, but different organizations can use the same tag names independently.
Listing Tags¶
All Tags¶
Returns only tags belonging to your organization.
By Category¶
Active Tags Only¶
Updating a Tag¶
| Bash | |
|---|---|
Deactivating a Tag¶
Deactivated tags are not shown in the preference center, but existing subscriptions are preserved.
Deleting a Tag¶
Caution
Deleting a tag removes all subscriber associations.
Categories¶
Categories group tags in the preference center:
graph TD
subgraph "Newsletter"
T1[Product Updates]
T2[Weekly Digest]
T3[Company News]
end
subgraph "Notifications"
T4[Security Alerts]
T5[Usage Reports]
end
subgraph "Marketing"
T6[Promotions]
T7[Events]
end Category Overview¶
Response:
| JSON | |
|---|---|
Subscribers per Tag¶
Subscriber Count¶
Response:
| JSON | |
|---|---|
Listing Subscribers¶
Best Practices¶
Naming Conventions¶
| Good | Bad |
|---|---|
product-updates | Product Updates |
weekly-digest | weekly_digest |
security-alerts | securityAlerts |
Hierarchy¶
Use categories for logical grouping:
| YAML | |
|---|---|
Default Tags¶
Define default tags for new subscribers:
| Bash | |
|---|---|
Tag Migration¶
When renaming a tag:
- Create a new tag
- Migrate subscribers
- Deactivate the old tag
- After a transition period: Delete the old tag
Monitor Tag Limits (Free Tier)¶
On the Free tier, you are limited to 3 tags. Check your current usage: