Edit an email design
Applies a natural-language prompt edit (optionally a emailVersionId source pin + contentUrls) to an existing design: the Brew email agent edits the design’s current latest version (or the pinned version) and writes a new version: "latest" row on the same emailId (the previous head is demoted to a numeric historical version).
USAGE-metered — the agent’s actual token spend is charged. Returns the generated-email shape with the new emailVersionId.
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.
Path parameters
Design id returned by POST /v1/emails and listed by GET /v1/emails.
Request body
Response
Updated design (a new latest version row was written) or a text response if the agent returned prose instead of a design. USAGE-metered: the agent’s actual token usage is charged (no fixed price).
Changes
No recorded changes to this operation across all 1 revision of this API.