Skip to content

[GG-1943] Document every audience condition type the API now takes - #150

Merged
dgra merged 1 commit into
mainfrom
GG-1943-audience-conditions-docs
Nov 30, 2026
Merged

dgra merged 1 commit into
mainfrom
GG-1943-audience-conditions-docs

Conversation

@dgra

@dgra dgra commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

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

  • Set the audience: list the available types, the two-level filter rules and caps, the
    refuse-rather-than-reinterpret rule, every error code with its status, and a combined-types
    example.
  • New "Audience conditions" section: one subsection per type with operators, property shapes
    and an example, taken from docs/api/v2/broadcasts_api_spec.yaml, PublishedFilter,
    ValueRules and the condition classes on drip main (a610adcbec).
  • Fetch the audience: the unsupported example now uses lifetime value, since tags are supported.
  • Create and Schedule: a draft starts with no audience chosen, and scheduling one is a 409
    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.

@dgra dgra assigned dgra and Copilot and unassigned Copilot Nov 30, 2026
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
dgra force-pushed the GG-1943-audience-conditions-docs branch from b464ef2 to 470b405 Compare November 30, 2026 16:20
@dgra
dgra merged commit 7c82fde into main Nov 30, 2026
1 check passed
@dgra
dgra deleted the GG-1943-audience-conditions-docs branch November 30, 2026 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants