Emails
Restore a historical version
Non-destructive restore: clones the numbered version into a NEW latest row (demoting the current head) and returns the same generated-email shape as an edit, including the fresh emailVersionId.
post/v1/emails/{emailId}/restore
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
emailIdstring required
Design id returned by POST /v1/emails and listed by GET /v1/emails.
Example:eml_2SmZOWV3ZQ7W5x6g3m4p
Headers
Idempotency-Keystring
Optional idempotency key for safe retries. Reusing the same key with the same request body returns the original response for 24 hours.
Request body
Response
Restored — a new latest version row was written.
Changes
No recorded changes to this operation across all 1 revision of this API.