Audiences
Create or duplicate an audience
Body is a 2-branch union:
- Create —
{ name, filters: { filters: [...], logicalOperator: "and" | "or" } }. - Duplicate —
{ duplicateFrom: audienceId }clones an existing audience (name suffixed ” (copy)”).
Returns the uniform { audiences: [row] } envelope.
POST
Authorizations
Send your Brew API key as Authorization: Bearer brew_xxx.
Headers
Optional idempotency key for safe retries. Reusing the same key with the same request body returns the original response for 24 hours.
Required string length:
1 - 100Body
application/json
Response
Created. One-element { audiences: [row] }.