Skip to main content
PATCH
/
api
/
v1
/
emails
/
{emailId}
Update Email
curl --request PATCH \
  --url https://api.sequenzy.com/api/v1/emails/{emailId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "subject": "<string>",
  "previewText": "<string>",
  "html": "<string>",
  "blocks": [
    {}
  ]
}
'
{
  "success": true,
  "email": {
    "id": "email_123",
    "companyId": "company_123",
    "name": "Welcome",
    "subject": "Updated welcome",
    "previewText": null,
    "blocks": [{ "id": "block_123", "type": "text", "variant": "html", "content": "<p>Updated body</p>" }],
    "createdAt": "2026-04-19T12:00:00.000Z",
    "updatedAt": "2026-04-19T12:05:00.000Z"
  }
}

Update Email

You can update an email’s metadata and replace its body with either raw HTML or structured blocks.

Request

emailId
string
required
Email ID.
name
string
Email name.
subject
string
Email subject line.
previewText
string
Inbox preview text. Use null to clear it.
html
string
Raw HTML body. Provide either html or blocks, not both.
blocks
array
Structured email blocks. Provide either blocks or html, not both.
curl -X PATCH "https://api.sequenzy.com/api/v1/emails/email_123" \
  -H "Authorization: Bearer API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"subject":"Updated welcome","html":"<p>Updated body</p>"}'

Responses

{
  "success": true,
  "email": {
    "id": "email_123",
    "companyId": "company_123",
    "name": "Welcome",
    "subject": "Updated welcome",
    "previewText": null,
    "blocks": [{ "id": "block_123", "type": "text", "variant": "html", "content": "<p>Updated body</p>" }],
    "createdAt": "2026-04-19T12:00:00.000Z",
    "updatedAt": "2026-04-19T12:05:00.000Z"
  }
}