email_template

Call email_template.save_draft

Change an email template without changing any email that wears it — 'make the header darker', 'swap the footer on the newsletter template', 'change the template's subject line'. It saves into the template's draft, opening one from the version emails send now when none is open; every email wearing the template keeps sending its current version until the draft is finalized. Leave a field out to keep it as it stands. Read the template with email_template.list_versions first for its id, its design and the open draft's revision, and pass that revision back. Not for applying the change to the emails that wear it — that is email_template.finalize_and_apply.

Every result names the workspace it ran in. Say which workspace the answer is about. When the account has more than one workspace and none is selected, this tool refuses with workspace_ambiguous and lists the choices — offer them, never pick one.

post/api/v1/tools/email_template.save_draft

Request

  • Base URL: https://app.goosybear.ai
  • URL: https://app.goosybear.ai/api/v1/tools/email_template.save_draft
  • Auth: HTTP bearer

Headers

x-request-idstring

Your own id for this request, echoed back and recorded on the audit trail. 1–128 characters from A–Z a–z 0–9 . _ : -, starting with a letter or digit; anything else is replaced by a generated id.

Request body

template_idstring uuid required

The email template, as email_template.list_versions or email_template.create named it.

mjml_sourcestring

The template's whole design as MJML. Leave it out to keep the design as it stands and change only the subject or regions.

subjectstring nullable

The template's own subject line. Leave it out to keep it; null clears it.

contentobject nullable

The editor's region overrides as one JSON object. Leave it out to keep them; null clears them.

expected_revisioninteger

The open draft's revision as email_template.list_versions or the last save reported it. Leave it out only when no draft is open.

workspacestring

Which workspace to run in — its slug. Omit to use your default. With more than one reachable workspace and no default, the call is refused and the choices are listed.

Response

The call was admitted and dispatched. ok says whether the tool succeeded — a refusal the tool itself produced is still a 200, exactly as it is a successful JSON-RPC result over MCP.

OR

Changes

No recorded changes to this operation across all 4 revisions of this API.