Resources and Methods
Brand selection lives on the client:
brandId or withBrand(brandId).
See SDK Authentication for setup and Organization and Brand Scope for access rules.
Detail Reads and Expansions
brew.canvas.sessions provides create(input), refresh(sessionId), and
revoke(sessionId). Embed the Email Canvas
shows the authenticated server endpoint and the React and browser integrations.
list(query) returns a page. Where available, get(id) returns the bare record.
Use the detail read for its own ID; relation filters such as sends.list({ emailId }) still belong on lists.
The v1 Migration maps removed ID filters.
These reads also take
include, outside the detail-read pattern:
HTTP query expansions use a comma-separated string, such as
include: 'html,versions'.
Contact search sends a body and takes include: ['openProfile'].
The generated API reference owns the full schemas and expansion limits.
Request Options
Methods take request options after their input:
With
raw: true, the body is on data; status, headers, and requestId describe the HTTP response.
See Error Handling for timeouts, cancellation, and unknown outcomes.
Idempotency owns replay guarantees.
Result Unions
Check the result before accessing variant-specific fields:
The SDK’s automation authoring types require
domainId and previewText on each sendEmail node.
The HTTP schema allows them to be omitted while authoring; a verified domain is still required to publish and send.
Supply both when using the typed SDK.
Pagination Helpers
Most collections return{ data, pagination }. Pagination owns cursor semantics.
These helpers return async iterators:
Other paginated methods take a
cursor for the next page.
emails.list() returns one page, not every saved design.
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 explore it further with ChatGPT or Claude.