Get emails
Unified email-design read. Omit emailId to LIST the brand’s designs (newest first) under { data, pagination } — each row carries emailId, the latest emailVersionId, title, status, previewImage (when captured), and updatedAt. Filter with ?status= and the createdAtFrom/To + updatedAtFrom/To ISO-8601 windows; paginate with limit + cursor. Pass ?emailId= to fetch ONE design — returns { data: [row] } (no pagination), 404 EMAIL_NOT_FOUND on an unknown / cross-brand id. Add detail-only ?include=html (rendered HTML) and/or ?include=versions (lean { version, emailVersionId } history) — both rejected without emailId.
Request
- Base URLhttps://brew.new/api
- Auth
- HTTP bearer
- or API key in header X-API-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Response
A page of email designs (list mode), or { data: [row] } (detail mode).
Changes
No recorded changes to this operation across all 1 revision of this API.