251
All tools
BrewB

by Brew

Create an audience from email events

Saves a frozen cohort of the contacts who opened, clicked or otherwise engaged in a time window or send, or with an exclude rule those who did not.

Updated Sep 29, 2026

create-audience-from-events.md

Create an audience from email events

Saves a frozen cohort of the contacts who opened, clicked or otherwise engaged in a time window or send, or with an exclude rule those who did not.

Note: Builds in the background: poll the audience with include=build until it is ready before sending to it.

Set up

Use the first option your agent supports.

MCP (official, remote)

Add this server to your agent's MCP settings, then sign in when asked.

{ "mcpServers": { "brew": { "url": "https://brew.new/api/mcp" } } }

Call the MCP tool create_audience_from_events.

Server URL: https://brew.new/api/mcp

CLI (official)

Install the command, then confirm it runs.

brew install getbrew/tap/brew-cli
brew-cli --version

Run brew-cli audiences from-events.

Set $BREW_API_KEY in your environment first (get a key: https://brew.new/settings/api).

API (official)

Before anything else, confirm access with the cheapest read-only call, like a list or a search. Never send or change anything to test access.

Rules

  • Ask the user before anything that sends messages, costs money, or changes data, and say how many records it touches. One approval covers a batch the user has seen.
  • Never print API keys.

Ways in

RouteSourceCallRequiredDocs
MCPOfficial · remotecreate_audience_from_eventsOAuthDocs
CLIOfficialbrew-cli audiences from-eventsAPI key in $BREW_API_KEYDocs
APIOfficialPOST /v1/audiences/from-eventsAPI key in $BREW_API_KEYDocs

Workflows using Create an audience from email events