by Brew
Create an audience
Saves a live contact segment from a name and a set of field filters and returns the audience.
create-audience.md
Create an audience
Saves a live contact segment from a name and a set of field filters and returns the audience.
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.
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 create.
Set $BREW_API_KEY in your environment first (get a key: https://brew.new/settings/api).
API (official)
- Base URL: https://brew.new/api
- Endpoint:
POST /v1/audiences - Auth: send the header
Authorization: Bearer $BREW_API_KEY - Get a key: https://brew.new/settings/api
- Docs: https://docs.brew.new/api-reference/api/api-introduction
Before doing anything else, make one read-only call to confirm access.
Rules
- Ask the user before anything that sends messages, costs money, or changes data.
- Never print API keys.
Built from these files in the repository
The layout and the rules come from lib/catalog/render-markdown.ts, the set-up wording from lib/catalog/render-access.ts.