curl --request POST \
--url https://brew.new/api/v1/emails/{emailId}/clone \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'{
"emailId": "2SmZOWV3ZQ7W5x6g3m4pA",
"emailVersionId": "8g3m4pA2SmZOWV3ZQ7W5x",
"html": "<!DOCTYPE html><html><body>Welcome to Brew.</body></html>",
"previewImage": "https://storage.example.com/emails/2SmZOWV3ZQ7W5x6g3m4pA.png",
"group": null
}Clone an email design
Creates a NEW design by copying the persisted source snapshot exactly. This is a deterministic database fork: it does not invoke an AI agent, reinterpret markup, re-host assets, or regenerate the preview.
Omit emailVersionId to clone the current latest row, or pass a version id from GET /v1/emails/{emailId}?include=versions to clone that exact historical snapshot. Optional groupId (grp_… or ungrouped) or groupName (resolve-or-create) — not both; omit to inherit the source group. Unknown groupId → 404 EMAIL_GROUP_NOT_FOUND. The clone receives fresh design/version ids and the title you pass (else Copy of …) while JSX, rendered HTML, and the preview image remain identical; rename it any time with PATCH /v1/emails/{emailId} { title }.
curl --request POST \
--url https://brew.new/api/v1/emails/{emailId}/clone \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'{
"emailId": "2SmZOWV3ZQ7W5x6g3m4pA",
"emailVersionId": "8g3m4pA2SmZOWV3ZQ7W5x",
"html": "<!DOCTYPE html><html><body>Welcome to Brew.</body></html>",
"previewImage": "https://storage.example.com/emails/2SmZOWV3ZQ7W5x6g3m4pA.png",
"group": null
}Authorizations
Headers
The brand this request acts on. REQUIRED for organization-scoped credentials (otherwise 400 BRAND_ID_REQUIRED — there is no default brand); list ids with GET /v1/brands. Brand-scoped credentials may omit it, and sending a different brand returns 403 BRAND_SCOPE_MISMATCH. A brand outside your organization returns 404 BRAND_NOT_FOUND.
1 - 64Path Parameters
Body
Optional exact source-version pin. Omit the body or send an empty object to clone latest.
Response
Exact clone created. The response carries the clone’s new ids plus the unchanged rendered HTML and preview.
Was this page helpful?