Documentation Index
Fetch the complete documentation index at: https://docs.brew.new/llms.txt
Use this file to discover all available pages before exploring further.
Create The Client
Get an API key from brew.new/settings/api. Each key is bound to one brand at creation — pick the brand you want this client to act on before generating.1. Upsert A Contact
2. Browse Public Templates (optional)
referenceEmailId to email generation when you want to anchor the
output on its layout. Your own brand design context is automatic —
every API key is bound to one brand at creation, and brew.emails.generate
grounds itself in that brand without you ever passing a brandId.
3. Generate An Email
4. Edit A Saved Email (optional)
brew.emails.edit runs the agent against an existing email’s current
latest JSX and persists a new version: "latest" row on the same
emailId, demoting the previous head to a numeric historical version.
emailId is a path
parameter — neither brandId nor emailId may appear in the body.
5. List Verified Domains
6. Start A Send
Use one recipient mode.audienceIdemails
Handle Errors
Next Steps
Resource Surface
See the current TypeScript SDK resources and methods.
API Reference
See the raw HTTP contract behind the SDK.
Need Help?
Our team is ready to support you at every step of your journey with Brew. Choose the option that works best for you:- Self-Service Tools
- Talk to Our Team
Search Documentation
Type in the “Ask any question” search bar at the top left to instantly find relevant documentation pages.
ChatGPT/Claude Integration
Click “Open in ChatGPT” at the top right of any page to analyze documentation with ChatGPT or Claude for deeper insights.