← Back to API Reference

PATCH /emails/{email_id}

Update Email

Update mutable email content while still queued.

Request (cURL)

curl -X PATCH "http://localhost:8080/v1/emails/em_123" \
  -H "Authorization: Bearer <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "subject": "Updated subject",
  "text": "Updated plain-text body"
}'

Response Example

{
  "object": "email",
  "id": "em_123",
  "status": "queued",
  "to": [
    "customer@example.com"
  ]
}

Request Body Example

{
  "subject": "Updated subject",
  "text": "Updated plain-text body"
}