Before You Begin
Use Node 20 or newer. Add your brand and create a brand API key at Settings → API. Generation uses credits. You do not need an audience or a verified domain.Generate and Test an Email
Save this asfirst-email.mjs in the project where you installed the SDK:
send() has separate test and production responses.
Open [TEST] Welcome aboard in your inbox. The test uses Brew’s default sender and creates no production send row.
Reuse the keys above when recovering the same requests; use new keys for a new design or test.
Idempotency owns the replay contract.
Keep Going
- SDK Resources: imports, edits, contacts, and request options.
- Agentic Cookbook: build, test, publish, and fire an automation.
- Error Handling: recover API and transport failures.
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.
Ask ChatGPT or Claude
Click here to open the Copy page menu at the top of this page, then send the page to ChatGPT, Claude, or your editor.