Subscribers API
The Subscribers API allows you to programmatically manage your subscriber list. It supports comprehensive filtering capabilities to enable efficient querying and external system synchronization.
Required Permissions
All endpoints require authentication via an API token with appropriate permissions:
- List and read subscribers (Read)
- Create, update, and redact subscribers (Write)
Common Use Cases
The filtering capabilities are particularly useful for:
- External System Synchronization: Sync inactive users with your CRM by filtering
is_active=false - Segment Management: Export specific subscriber segments based on tags, source, or activity status
- Data Cleanup: Identify inactive subscribers using
is_active=false - Analytics and Reporting: Generate reports for subscribers by date ranges or custom attributes
- Compliance: Efficiently retrieve subscription status for regulatory reporting
Subscriber Object
The subscriber object contains the following fields:
| Field | Description |
|---|---|
id |
The ID of the subscriber |
email |
The email address of the subscriber |
first_name |
The first name of the subscriber, or null when it is blank (2.48.0 or later). A value saved blank before 2.48.0 stays an empty string ("") until you change that field |
last_name |
The last name of the subscriber, or null when it is blank (2.48.0 or later). A value saved blank before 2.48.0 stays an empty string ("") until you change that field |
ip_address |
The IP address of the subscriber, or null when it is blank (2.48.0 or later). A value saved blank before 2.48.0 stays an empty string ("") until you change that field |
is_active |
Whether the subscriber is active |
source |
The source of the subscriber |
subscribed_at |
The date and time the subscriber was subscribed |
unsubscribed_at |
The date and time the subscriber was unsubscribed |
confirmed_at |
The date and time the subscriber confirmed via double opt-in (null if unconfirmed or not applicable) |
confirmation_status |
Confirmation state: "confirmed" or "unconfirmed". Derived from confirmed_at. The response to a double opt-in create returns "pending". |
created_at |
The date and time the subscriber was created |
tags |
An array of tags associated with the subscriber |
custom_data |
A JSON object, with key-value pairs |
topics |
Read only. Each Subscriber Topics topic’s stored value, keyed by its custom data key or tag: true, false, or null for no value |
New in 3.7
Each subscriber also has pending_confirmation: true when a double opt-in confirmation email was sent and the subscriber has not confirmed yet, also after the link expired. false otherwise, also for subscribers who never got a confirmation email. confirmation_status keeps its values.
2.49+
In topics, a tag topic is true when tagged, false when the subscriber turned it off (from the topic unsubscribe link, the one-click button or the preference page), and null otherwise. Before 2.49 a turned-off tag topic was null.
List Subscribers
/api/v1/subscribers.jsonParameters
Pagination
page: The page number to return (default is 1)
Filtering Parameters
The following filtering parameters can be used to filter the subscribers list:
Active Status Filtering:
is_active: Filter by active statustrue: Subscribers marked as activefalse: Subscribers marked as inactive
Confirmation Status Filtering:
confirmation_status: Filter by confirmation statusconfirmed: Subscribers who have confirmed via double opt-inunconfirmed: Subscribers who have not yet confirmed
New in 3.7
confirmation_status=pending lists the subscribers whose pending_confirmation is true: a confirmation email was sent and they have not confirmed.
Source Filtering:
source: Filter by how the subscriber was added (e.g.,api_subscription,opt_in_form,import)
Date Range Filtering:
created_after: Filter subscribers created after this timestamp (ISO 8601, e.g.2026-01-24T00:00:00Z)created_before: Filter subscribers created before this timestamp (ISO 8601, e.g.2026-01-24T23:59:59Z)
Either form works: a bare date (2026-01-24, taken as midnight) or a full timestamp
(2026-01-24T09:30:00Z). Unix seconds are accepted too.
Warning
A value that cannot be read is ignored rather than rejected: the request
succeeds without that filter and still returns 200, reporting the reason as a
parameter_ignored entry in warnings.
That fails in the direction that costs you. A filter’s job is to remove rows, so
a dropped filter returns more than you asked for: a job syncing “subscribers
since yesterday” receives the entire list, and an unfiltered result looks exactly
like a filter that matched everything. Check the warnings array before acting on
a large response.
Email Pattern Filtering:
email: Filter subscribers whose email contains the specified text (partial match, case-insensitive)
Tag-Based Filtering:
tags[]: Filter subscribers by tags (supports multiple tags with AND logic)
Tag Filtering Logic:
When filtering by multiple tags, subscribers must have ALL specified tags to be included in the results.
Example: If you have subscribers with these tags:
- Alice:
["premium", "newsletter"] - Bob:
["premium", "vip"] - Carol:
["newsletter", "trial"] - Dave:
["basic"]
Request tags[]=premium&tags[]=newsletter returns only Alice:
- ✅ Alice has both
premiumandnewsletter(matches all required tags) - ❌ Bob has
premiumbut notnewsletter - ❌ Carol has
newsletterbut notpremium - ❌ Dave has neither
premiumnornewsletter
Custom Data Filtering:
custom_data[field_name]: Filter by custom JSONB field values
The value is matched against the stored JSON with its type converted first:
- Digits become a number:
custom_data[plan_id]=42matches42, not the string"42". A value with a leading zero, such as a zip code02139, also becomes a number and does not match a stored string. trueandfalsebecome booleans.- Any other value is matched as a string.
Only top-level keys work, up to 10 keys in one request. A key longer than 100 characters, or a value longer than 500, is skipped. A skipped key or value gives no warning.
3.0+
Each subscriber also has signup_ref: the ref code on the signup form link the person used, or null. The Referrals plugin reads it to credit the referrer.
Request Examples
Basic request:
GET /api/v1/subscribers.json?page=1
Filter by active status:
GET /api/v1/subscribers.json?is_active=true
Filter by source and active status:
GET /api/v1/subscribers.json?is_active=true&source=api_subscription
Filter by date range:
GET /api/v1/subscribers.json?created_after=2024-01-01T00:00:00Z&created_before=2024-12-31T23:59:59Z
Filter by email pattern:
GET /api/v1/subscribers.json?email=gmail.com
Filter by tags (subscribers with ALL specified tags):
GET /api/v1/subscribers.json?tags[]=premium&tags[]=newsletter
Filter by custom data:
GET /api/v1/subscribers.json?custom_data[plan]=enterprise
Combined filtering:
GET /api/v1/subscribers.json?is_active=true&source=api_subscription&created_after=2024-01-01T00:00:00Z&tags[]=premium
Response
{ "broadcast_channel_id": 1, "subscribers": [ { "id": 123, "email": "user@example.com", "first_name": "John", "last_name": "Doe", "ip_address": "192.168.1.1", "is_active": true, "source": "api_subscription", "subscribed_at": "2024-03-20T10:00:00Z", "unsubscribed_at": null, "confirmed_at": null, "confirmation_status": "unconfirmed", "created_at": "2024-03-20T10:00:00Z", "tags": ["newsletter", "product-updates"], "custom_data": { "some_key": "some value" }, "topics": { "newsletter": true } } ], "pagination": { "total": 1500, "count": 250, "from": 1, "to": 250, "current": 1, "total_pages": 6 } }
Find Subscriber
This endpoint can be used to find a subscriber by email address and to return the details stored in your Broadcast database.
/api/v1/subscribers/find.jsonParameters
email(required): Email address of the subscriber
Request
curl -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \ https://your-broadcast-domain.com/api/v1/subscribers/find.json?email=user@example.com
Response
{ "id": 123, "email": "user@example.com", "first_name": "John", "last_name": "Doe", "ip_address": "192.168.1.1", "is_active": true, "source": "api_subscription", "subscribed_at": "2024-03-20T10:00:00Z", "unsubscribed_at": null, "confirmed_at": null, "confirmation_status": "unconfirmed", "created_at": "2024-03-20T10:00:00Z", "tags": ["newsletter", "product-updates"], "custom_data": { "some_key": "some value" }, "topics": { "newsletter": true } }
Create Subscriber
This endpoint can be used to create a new subscriber.
Parameters
The following parameters need to be “namespaced” under the subscriber key. See the cURL example for an example.
email(required): Email address of the subscriberfirst_name: First name of the subscriberlast_name: Last name of the subscriberis_active: Whether the subscriber is active (default: true)tags: Array of tags to add to the subscribercustom_data: JSON object with custom key-value pairssource: The source of the subscriber (e.g.,opt_in_form,api_subscription,import). Defaults toapi_subscriptionif not specified.subscribed_at: The date and time when the subscriber originally subscribed (ISO 8601 format). Useful for migrations to preserve original subscription dates.ip_address: The IP address of the subscriber. Useful for migrations or when capturing the subscriber’s IP from your own system.
A blank first_name, last_name or ip_address (an empty string, or only spaces) is stored as null and returned as null (2.48.0 or later).
Note that when adding a tags array, you must send an array of strings. Send tags, not tag_list: a subscriber.tag_list on create or update returns 422 with {"error": "tag_list is not allowed, please use tags instead and submit as an array"}.
Also note that is_active is automatically set to true when you add a subscriber. If the subscriber was previously set as not active, this will be overwritten and the subscriber will be changed to having is_active as true. The exception is a create with unsubscribed_at, below.
Response
The response code will be 201 (Created) if the subscriber was created successfully.
If a subscriber already exists in the system (eg. such as if a subscriber is added and is unsubscribed), the response will also be 201. Note that in this case, the system will assume that the subscriber has re-subscribed and will set the unsubscribed_at field as null, unless the request sends unsubscribed_at. Any attributes passed along to the API will also be updated at the same time. If the address is on a suppression list (for the channel or for all channels), the subscriber is resubscribed but stays inactive (is_active: false), and the response carries a subscriber_suppressed warning instead of subscriber_reactivated (2.46.1 or later).
If the request is invalid, the response code will be 422 (Unprocessable Entity). The error message will be returned in the response body.
Migrating already-confirmed subscribers (admin API tokens only)
When migrating from another platform, you can carry over a subscriber’s existing
confirmation state instead of re-confirming them: pass confirmed_at (an ISO 8601
timestamp) inside the subscriber object on create. This is accepted only with
an admin API token: requests using a regular channel token ignore the field and
return an unrecognized_parameter warning explaining the restriction.
- An unparseable
confirmed_atfails the request with422: a migration must never silently import subscribers as unconfirmed. - If
double_opt_inis passed together withconfirmed_at, the subscriber is created as confirmed and no confirmation email is sent; the response carries aparameter_ignoredwarning fordouble_opt_in.
Migrating unsubscribed subscribers
To bring over people who already opted out, send unsubscribed_at (an ISO 8601
timestamp) inside the subscriber object on create. Any API token can do this.
The subscriber is stored as unsubscribed in the same request: inactive, on the
channel’s unsubscribe list, and with an unsubscribe entry in their history. There
is no moment in which they are an active subscriber.
- No confirmation email is sent. If
double_opt_inis passed too, the response carries aparameter_ignoredwarning for it. - A tag in the request does not start a tag-triggered sequence.
- A new subscriber fires only the
subscriber.createdwebhook, notsubscriber.unsubscribed. - The request fails with
422whenunsubscribed_atis not a timestamp, is in the future, or comes with"is_active": true. unsubscribed_atis accepted on create only. To unsubscribe an existing subscriber, use the unsubscribe endpoint.
A referral code from your own signup form
3.2+
A Broadcast form keeps the ?ref= code of a referral link by itself. If your
signup form is on your own site and calls this endpoint, read ref from the
address of your signup page and send it as signup_ref inside the subscriber
object. The Referrals plugin, or a plugin of your own, can then credit the
referrer.
- A code can use letters, digits,
_and-, up to 100 characters. - The code is stored only for a new subscriber. A subscriber that already exists keeps what it has.
- A bad code never stops the signup. The subscriber is created, and the
response carries a
parameter_ignoredwarning forsubscriber.signup_ref(see API Response Warnings). signup_refis accepted on create only. An update ignores it, with a warning.- The official Referrals plugin counts a referral when the new person is
confirmed. A subscriber created with no
double_opt_inis never confirmed. So send"double_opt_in": true, or turn on Count a referral at signup in the settings of the plugin (Referrals 1.4 or later).
Request
curl -X POST \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \ -H "Content-Type: application/json" \ --data-raw '{ "subscriber": { "email": "user@example.com", "first_name": "John", "last_name": "Doe", "tags": ["newsletter", "product-updates"], "custom_data": { "my_custom_data": "data value" } } }' \ https://your-broadcast-domain.com/api/v1/subscribers.json
Migration example (preserving original metadata):
curl -X POST \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \ -H "Content-Type: application/json" \ --data-raw '{ "subscriber": { "email": "user@example.com", "first_name": "John", "last_name": "Doe", "source": "opt_in_form", "subscribed_at": "2024-01-15T10:30:00Z", "ip_address": "192.168.1.100" } }' \ https://your-broadcast-domain.com/api/v1/subscribers.json
Example of an error response:
{ "errors": { "email": ["has already been taken"] } }
POST /api/v1/subscribers?broadcast_channel_id=123
{
"subscriber": {
"email": "migrated@example.com",
"confirmed_at": "2024-06-01T10:00:00Z"
}
}
POST /api/v1/subscribers
{
"subscriber": {
"email": "opted-out@example.com",
"unsubscribed_at": "2025-03-14T09:30:00Z"
}
}
POST /api/v1/subscribers
{
"subscriber": {
"email": "new@example.com",
"signup_ref": "r1vc5e"
},
"double_opt_in": true
}
Create Subscriber with Double Opt-In
Create a subscriber that requires email confirmation before becoming active. The subscriber is created in an unconfirmed state and a confirmation email is sent using your channel’s default confirmation template.
Parameters
double_opt_in(required): Set totrueto enable double opt-in. Can also be an object with options (see below).confirmation_template_id(optional): ID of a confirmation template whose email body is sent and whose page copy (heading and body, customizable per page state) drives the confirmation page. Can also be passed inside thedouble_opt_inobject. If not provided, the channel’s default confirmation template is used.
Note: If
confirmation_template_idis not provided and the channel has no default confirmation template, the API responds with422 Unprocessable Contentand the error message"No default confirmation template configured for this channel. Create one under Templates > Confirmation, or pass confirmation_template_id."
2.49+
Note: Every channel has a default confirmation template. If it was deleted or unset, Broadcast creates it again for this request, so a missing default no longer returns
422.
All standard subscriber parameters (email, first_name, last_name, tags, etc.) are also accepted.
Extended double_opt_in options
Instead of passing true, you can pass an object to customize the confirmation email:
reply_to(optional): Reply-to email address for the confirmation emailconfirmation_template_id(optional): ID of a confirmation template whose email body is sent and whose page copy drives the confirmation pageinclude_unsubscribe_link(optional, boolean): Whether to include the unsubscribe link and footer in the confirmation email. Default:true. Set tofalseto suppress the unsubscribe link, email footer, and List-Unsubscribe header.
Both forms are accepted: "double_opt_in": true and "double_opt_in": { ... }. The confirmation_template_id can be passed either as a top-level parameter or inside the double_opt_in object.
The response includes confirmation_status and confirmation_url. The subscriber’s confirmed_at will be null until they click the confirmation link.
Behavior
- New subscriber: Created with
confirmed_atset to null. A confirmation email is sent. - Existing confirmed subscriber: No confirmation email is sent. The attributes you passed are saved, the status is
200 OK(not201), and the response carries adouble_opt_in_skippedwarning. - No transactional email server: The channel needs an active email server that is used for transactional emails. Without one, the response is
422with"No active transactional email server configured for this channel". - Bad template: A
confirmation_template_idthat is not a confirmation template of this channel returns422with"Confirmation template not found or is not a confirmation type". - Existing unconfirmed subscriber: A new confirmation is created and a fresh confirmation email is sent.
The template must be a confirmation template (not a general template) and must belong to the same channel. See Email Templates for more on managing confirmation templates.
{ "double_opt_in": { "reply_to": "support@example.com", "confirmation_template_id": 456, "include_unsubscribe_link": false } }
Request
curl -X POST \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \ -H "Content-Type: application/json" \ --data-raw '{ "subscriber": { "email": "user@example.com", "first_name": "John", "last_name": "Doe" }, "double_opt_in": true }' \ https://your-broadcast-domain.com/api/v1/subscribers.json
Response
{ "id": 123, "email": "user@example.com", "first_name": "John", "last_name": "Doe", "confirmed_at": null, "is_active": true, "confirmation_status": "pending", "confirmation_url": "https://your-broadcast-domain.com/confirm/abc123token" }
Using a specific confirmation template
Nested form (preferred):
curl -X POST \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \ -H "Content-Type: application/json" \ --data-raw '{ "subscriber": { "email": "user@example.com" }, "double_opt_in": { "confirmation_template_id": 456 } }' \ https://your-broadcast-domain.com/api/v1/subscribers.json
Top-level form (also supported):
curl -X POST \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \ -H "Content-Type: application/json" \ --data-raw '{ "subscriber": { "email": "user@example.com" }, "double_opt_in": true, "confirmation_template_id": 456 }' \ https://your-broadcast-domain.com/api/v1/subscribers.json
Update Subscriber
This endpoint can be used to update a subscriber’s details.
Parameters
email(required): The email address of the subscriber you want to update. This is used to identify the subscriber record.subscriber(required): An object containing the fields you want to update.
The following fields can be updated inside the subscriber object:
email: New email address (only if you want to change it)first_name: First name of the subscriberlast_name: Last name of the subscriberis_active: Whether the subscriber is active.falsehere deactivates the subscriber but does not unsubscribe: no unsubscribe date or suppression entry is recorded, and the response carries ause_dedicated_endpointwarning. To unsubscribe, use Unsubscribe Subscriber.tags: Array of tags (replaces existing tags)custom_data: JSON object with custom key-value pairssource: The source of the subscriber (e.g.,opt_in_form,api_subscription,import)subscribed_at: The original subscription date (ISO 8601 format)ip_address: The IP address of the subscriber
To clear first_name, last_name or ip_address, send "" or null. Both store null, and the response returns null (2.48.0 or later). A field you leave out stays as it is.
custom_data_mode(optional, top level):replace(default) storescustom_dataexactly as sent, so keys you leave out are removed.mergechanges only the keys you send and keeps the rest; anullvalue deletes that key. Usemergeto change one Subscriber Topics value without resending the whole object.
Changing a subscriber’s email address:
Important Notes
- The top-level
emailparameter is always required to identify which subscriber to update. - The
subscriber.emailfield is only needed if you want to change the subscriber’s email address. - This endpoint does not follow typical RESTful conventions (e.g.,
/subscribers/:id). Instead, the subscriber is identified by their email address in the request body.
Response
The response code will be 200 (OK) and will return the subscriber JSON object.
If the request is invalid, the response code will be 422 (Unprocessable Entity). The error message will be returned in the response body.
Topics the subscriber turned off
2.49+
When a subscriber turns one of your Subscriber Topics off, only the subscriber can turn it on again. Create (for an existing subscriber), update and add tags all keep such a topic off:
- A custom data topic keeps its
falsevalue. - A tag topic’s tag is not added, from
tagson create or update, or from add tags. The tag is compared without regard to case.
The rest of the request is applied, and the response has a parameter_ignored warning for each topic kept off. The param is subscriber.custom_data.<key> for a custom data topic. For a tag topic it is subscriber.tags, or tags when add tags gets a top-level tags:
Request Examples
Updating subscriber details (most common):
curl -X PATCH \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \ -H "Content-Type: application/json" \ --data-raw '{ "email": "user@example.com", "subscriber": { "first_name": "Jane", "last_name": "Smith" } }' \ https://your-broadcast-domain.com/api/v1/subscribers.json
When changing the email address, use the top-level email to identify the subscriber and subscriber.email for the new email:
curl -X PATCH \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \ -H "Content-Type: application/json" \ --data-raw '{ "email": "user@example.com", "subscriber": { "email": "newemail@example.com" } }' \ https://your-broadcast-domain.com/api/v1/subscribers.json
Changing one topic value and keeping the rest of custom_data:
curl -X PATCH \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \ -H "Content-Type: application/json" \ --data-raw '{ "email": "user@example.com", "custom_data_mode": "merge", "subscriber": { "custom_data": { "sub_offers": false, "old_field": null } } }' \ https://your-broadcast-domain.com/api/v1/subscribers.json
"warnings": [ { "code": "parameter_ignored", "param": "subscriber.tags", "message": "Webinars was turned off by the subscriber. Only the subscriber can turn it back on, from their preference page." } ]
Deactivate Subscriber
You can deactivate a subscriber using the following endpoint:
/api/v1/subscribers/deactivate.jsonParameters
email(required): Email address of the subscriber to deactivate
The parameter can be either passed directly or namespaced under the subscriber key. See the cURL example for an example.
Response
The response code will be 200 (OK) if the subscriber was successfully deactivated.
Request
curl -X POST \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \ -H "Content-Type: application/json" \ --data-raw '{ "email": "user@example.com" }' \ https://your-broadcast-domain.com/api/v1/subscribers/deactivate.json
Activate Subscriber
This endpoint allows you to reactivate a previously deactivated subscriber.
/api/v1/subscribers/activate.jsonParameters
email(required): Email address of the subscriber to activate
The parameter can be either passed directly or namespaced under the subscriber key. See the cURL example for an example.
Response
The response code will be 200 (OK) if the subscriber was successfully activated.
Request
curl -X POST \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \ -H "Content-Type: application/json" \ --data-raw '{ "email": "user@example.com" }' \ https://your-broadcast-domain.com/api/v1/subscribers/activate.json
Add Tags To Subscriber
This endpoint allows you to add one or more tags to a subscriber.
/api/v1/subscribers/add_tag.jsonParameters
email(required): Email address of the subscribertags(required): An array of tags to add to the subscriber
The parameter can be either passed directly or namespaced under the subscriber key. See the cURL example for an example.
Response
The response code will be 200 (OK) if the tags were successfully added.
2.49+
The tag of a topic the subscriber turned off is not added. The other tags are added, and the response has a parameter_ignored warning. See Topics the subscriber turned off.
If the subscriber cannot be saved for another reason, the response is 422 with the validation errors, and no tag is added. Before 2.49 this case answered 200 without saving the tags.
Request
curl -X POST \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \ -H "Content-Type: application/json" \ --data-raw '{ "email": "user@example.com", "tags": ["newsletter", "product-updates"] }' \ https://your-broadcast-domain.com/api/v1/subscribers/add_tag.json
Remove Tags From Subscriber
This endpoint allows you to remove one or more tags from a subscriber.
/api/v1/subscribers/remove_tag.jsonParameters
email(required): Email address of the subscribertags(required): An array of tags to remove from the subscriber
The parameter can be either passed directly or namespaced under the subscriber key. See the cURL example for an example.
Response
The response code will be 200 (OK) if the tags were successfully removed.
Request
curl -X DELETE \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \ -H "Content-Type: application/json" \ --data-raw '{ "email": "user@example.com", "tags": ["newsletter"] }' \ https://your-broadcast-domain.com/api/v1/subscribers/remove_tag.json
Unsubscribe Subscriber
This endpoint allows you to unsubscribe a subscriber from your list. This sets the unsubscribed_at timestamp and marks the subscriber as inactive (is_active: false).
/api/v1/subscribers/unsubscribe.jsonParameters
email(required): Email address of the subscriber to unsubscribe
Response
The response code will be 200 (OK) if the subscriber was successfully unsubscribed. The response includes the updated subscriber object with the unsubscribed_at timestamp set.
Request
curl -X POST \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \ -H "Content-Type: application/json" \ --data-raw '{ "email": "user@example.com" }' \ https://your-broadcast-domain.com/api/v1/subscribers/unsubscribe.json
{ "id": 123, "email": "user@example.com", "first_name": "John", "last_name": "Doe", "ip_address": "192.168.1.1", "is_active": false, "source": "api_subscription", "subscribed_at": "2024-03-20T10:00:00Z", "unsubscribed_at": "2024-03-25T15:30:00Z", "confirmed_at": null, "confirmation_status": "unconfirmed", "created_at": "2024-03-20T10:00:00Z", "tags": ["newsletter", "product-updates"], "custom_data": { "some_key": "some value" }, "topics": { "newsletter": true } }
Resubscribe Subscriber
This endpoint allows you to resubscribe a previously unsubscribed subscriber. This clears the unsubscribed_at timestamp and marks the subscriber as active (is_active: true). If the address is on a suppression list (for the channel or for all channels, from any source: a hard bounce, a spam complaint or your own list), the subscriber is resubscribed but stays inactive, and the response carries a subscriber_suppressed warning (2.46.1 or later). Remove the address from the suppression list first, then activate the subscriber.
/api/v1/subscribers/resubscribe.jsonParameters
email(required): Email address of the subscriber to resubscribe
Response
The response code will be 200 (OK) if the subscriber was successfully resubscribed. The response includes the updated subscriber object with the unsubscribed_at field set to null.
Important Notes
- Dual Field Management:
- Unsubscribe sets
unsubscribed_attimestamp AND marks subscriber as inactive (is_active: false) - Resubscribe clears
unsubscribed_at(sets tonull) AND marks subscriber as active (is_active: true), unless the address is suppressed: then it stays inactive
- Unsubscribe sets
- Difference from Activate/Deactivate: The unsubscribe/resubscribe endpoints manage both subscription status (
unsubscribed_atfield) and activity status (is_activefield), while activate/deactivate endpoints only manage the activity status (is_activefield).
When to use Unsubscribe/Resubscribe: - Subscriber formally opts out of all communications (legal unsubscribe) - Compliance with anti-spam regulations (CAN-SPAM, GDPR, etc.) - Permanent removal from mailing lists - User clicks “unsubscribe” link in emails
When to use Activate/Deactivate:
- Temporary pause of communications (subscriber vacation, busy period)
- System-level deactivation (bounced emails, complaints, fraud detection)
- Subscriber wants to pause but maintain their subscription status
- Administrative actions that don’t constitute formal unsubscription
- A/B testing scenarios where you temporarily exclude certain users
- Webhook Events: Both endpoints trigger appropriate webhook events (subscriber.unsubscribed and subscriber.subscribed) if you have webhooks configured.
- Subscriber History: Both actions are logged in the subscriber’s history for audit purposes.
- Idempotent Operations: These endpoints are safe to call multiple times - unsubscribing an already unsubscribed subscriber or resubscribing an already subscribed subscriber will not cause errors.
Request
curl -X POST \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \ -H "Content-Type: application/json" \ --data-raw '{ "email": "user@example.com" }' \ https://your-broadcast-domain.com/api/v1/subscribers/resubscribe.json
{ "id": 123, "email": "user@example.com", "first_name": "John", "last_name": "Doe", "ip_address": "192.168.1.1", "is_active": true, "source": "api_subscription", "subscribed_at": "2024-03-20T10:00:00Z", "unsubscribed_at": null, "confirmed_at": null, "confirmation_status": "unconfirmed", "created_at": "2024-03-20T10:00:00Z", "tags": ["newsletter", "product-updates"], "custom_data": { "some_key": "some value" }, "topics": { "newsletter": true } }
Redact Subscriber
This endpoint allows you to permanently redact a subscriber’s personally identifiable information (PII) while preserving campaign statistics. This is typically used for GDPR compliance or data privacy requirements.
⚠️ Warning: This action is irreversible. Once a subscriber is redacted, their personal data cannot be recovered.
/api/v1/subscribers/redact.jsonWhat Gets Redacted
When a subscriber is redacted, the following information is permanently removed or anonymized:
- Email address: Replaced with an anonymized identifier (
redacted-{id}@privacy-compliant.local) - First and last names: Set to
null - Custom data fields: Cleared completely
- IP addresses: Removed
- Preferences: Cleared
What Gets Preserved
The following data is preserved to maintain campaign analytics and statistical integrity:
- Campaign statistics and metrics: Open rates, click rates, delivery statistics
- Sequence performance data: Automation engagement metrics
- Subscriber ID and timestamps: For referential integrity in reports
- Aggregate reporting data: Overall campaign performance remains accurate
Parameters
email(required): Email address of the subscriber to redact
Important Considerations
- Irreversible Action: Once redacted, subscriber data cannot be restored
- Campaign Statistics: All historical email metrics remain intact for reporting
- Compliance: Ideal for GDPR “right to be forgotten” requests
- Database Integrity: The system maintains referential integrity across all related records
- Audit Trail: The redaction action is logged for compliance purposes
- Gone from the API: A redacted subscriber is never returned again. Listing leaves it out, finding, updating or redacting it by its placeholder email returns
404 Not Found, and creating a subscriber with the placeholder email returns422 Unprocessable Entityinstead of reopening the erased record - Write Permission Required: Requires an API token with write permissions
Common Use Cases
- GDPR Compliance: Responding to “right to be forgotten” requests
- Data Minimization: Regularly cleaning PII while preserving analytics
- Privacy Compliance: Meeting regulatory requirements for data retention
- Customer Requests: Honoring explicit data deletion requests
Request
curl -X POST \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \ -H "Content-Type: application/json" \ --data-raw '{ "email": "user@example.com" }' \ https://your-broadcast-domain.com/api/v1/subscribers/redact.json
Response
Success Response (200 OK)
{ "message": "Subscriber successfully redacted" }
Error Response (422 Unprocessable Entity)
{ "error": "Failed to redact subscriber: [error details]" }
Not Found Response (404 Not Found)
{ "error": "Subscriber not found" }
Last updated
Was this page helpful?