Update a message
Permission
messages:writeRate limit writesIdempotent with Idempotency-KeySend only the fields to change. Publishes at once: the next send of a broadcast or automation step uses the edited version. The channel cannot change; fields of the other channel are ignored (body_html, subject and preheader on a text message, body_text on an email). A renamed message whose new name is taken gets a numeric suffix.
Authorization
ESTAGE-API-KeystringheaderrequiredA project key, est_live_…, from Settings → API keys. Call from server code only.
Path parameters
idintegerrequiredBody
application/jsonnamestring≤ 255 charssubjectstring≤ 255 charspreheaderstringnullable≤ 255 charsbody_htmlstringbody_textstring≤ 1600 charsHeaders
Idempotency-Keystring≤ 255 charsAny unique string per attempt. A retry with the same key gets the first answer back instead of doing the work twice.
RequestcURL
curl --request PATCH \ --url 'https://api.estage.com/v1/messages/message-id' \ --header 'ESTAGE-API-Key: est_live_your-api-key' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: your-unique-key' \ --data '{ "subject": "Welcome aboard, {{first_name|there}}", "preheader": "Start here" }'
OK
{
"data": {
"id": 311,
"name": "Welcome email",
"channel": "email",
"type": null,
"status": "public",
"subject": "Welcome aboard, {{first_name|there}}",
"preheader": "Start here",
"created_at": "2026-11-02T10:15:00Z",
"updated_at": "2026-11-13T09:02:44Z",
"body_html": "<p>Hi {{first_name|there}},</p><p>Thanks for joining Studio Nova.</p><p><a href=\"{{unsubscribe_url}}\">Unsubscribe</a></p>",
"body_text": null
}
}Example. Errors are
{ error: { code, message, details } }.