Emails
Generate Email
Generates a draft email through the Brew email agent. POST supports idempotency for safe retries.
emailType is required and categorises the row:
campaign— one-shot send to an audience / contact list (canvas-board default).automation— body referenced bysendEmailnodes inside an automation graph. Does NOT surface on the/emailscanvas; chain withPOST /v1/automationsfor the full flow.transactional— system-triggered (welcome / receipt / reset).
POST
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.
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
Email generation prompt and optional reference context. The brand is resolved from the API key and must not be passed.