Repository navigation
[GG-1943] Document every audience condition type the API now takes - #150
Merged
Merged
Conversation
Addresses: [GG-1943](https://dripcom.atlassian.net/browse/GG-1943) ## Background The audience docs still say segments are the only condition type. The API now also takes tags, Email Series Campaigns, Single-Email Campaign activity, custom fields, date subscribed, lead score and email inactivity, and scheduling now needs an audience chosen first. Anyone reading the docs today would not know any of that is possible. ## Modification - Set the audience: list the available types, the two-level filter rules and size limits, the refuse-rather-than-reinterpret rule, every error code with its status, and an example that combines types. - New "Audience conditions" section: one subsection per type with its operators, property shapes and an example. - Fetch the audience: the unsupported example now uses lifetime value, since tags are supported, and a draft whose audience was never set is explained. - Create and Schedule: a draft starts with no audience chosen, and scheduling one responds with a 409 until it is set. ## Result The API docs describe every condition type a caller can use in a Single-Email Campaign audience, what each accepts, and what each error means.
dgra
force-pushed
the
GG-1943-audience-conditions-docs
branch
from
November 30, 2026 16:20
b464ef2 to
470b405
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses: GG-1943
Background
The audience docs still say segments are the only condition type. Since then the API and MCP
server have shipped tags, Email Series Campaigns, Single-Email Campaign activity, custom fields,
date subscribed, lead score and email inactivity, and scheduling now needs an audience chosen
first. Anyone reading the docs today would not know any of that is possible.
Modification
refuse-rather-than-reinterpret rule, every error code with its status, and a combined-types
example.
and an example, taken from
docs/api/v2/broadcasts_api_spec.yaml,PublishedFilter,ValueRulesand the condition classes on drip main (a610adcbec).until it is set (GG-1822).
Result
The public API docs describe every condition type a caller can use in a Single-Email Campaign
audience, what each accepts, and what each error means.