# Postmark

> Send transactional email through Postmark, plainly or from templates, manage templates and layouts, search sent email with its opens and bounces, reactivate bounced addresses, manage suppressions, and read delivery statistics.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/postmark

## Actions

### Create template

Create a template to send, or a layout other templates are placed inside. Bodies and subject can use {{variables}}. Returns the new template's id.

**Inputs**

- Name (`name`, text, required): What to call it in Postmark.
- Type (`template_type`, text): A template you send, or a layout. This cannot be changed later. Defaults to a template. One of: `Standard` (Template: an email you send), `Layout` (Layout: a shared wrapper templates are placed inside). Default: `Standard`.
- Subject (`subject`, text): The subject line. Required for a template. Only when Type is Template: an email you send.
- HTML body (`html_body`, text): The HTML version. A layout must contain {{{ @content }}} exactly once, where each template goes.
- Text body (`text_body`, text): The plain-text version. Give this, the HTML body, or both.
- Alias (`alias`, text): A name to refer to it by instead of its id: letters, digits, '.', '-' and '_', starting with a letter. A layout needs one for templates to use it.
- Layout (`layout`, text): The layout to place this template inside. Only when Type is Template: an email you send.

**Outputs**

- `Active` (true/false)
- `Alias` (text)
- `LayoutTemplate` (text)
- `Name` (text)
- `TemplateId` (number)
- `TemplateType` (text)

**Example output**

```json
{
  "Active": true,
  "Alias": "onboarding-email",
  "LayoutTemplate": null,
  "Name": "Onboarding Email",
  "TemplateId": 1234,
  "TemplateType": "Standard"
}
```

### Delete template

Delete a template or layout. A layout still used by templates cannot be deleted.

**Inputs**

- Template (`template`, text, required): The template or layout to delete.

**Outputs**

- `ErrorCode` (number)
- `Message` (text)
- `Template` (text)

**Example output**

```json
{
  "ErrorCode": 0,
  "Message": "Template 1234 removed.",
  "Template": "1234"
}
```

### Get bounce

Read one bounce: the address, the type and description, and whether it can be reactivated.

**Inputs**

- Bounce ID (`bounce_id`, text, required): The bounce's ID, from 'List bounces' or the bounce's page in Postmark.

**Outputs**

- `BouncedAt` (text)
- `CanActivate` (true/false)
- `Content` (text)
- `Description` (text)
- `Details` (text)
- `DumpAvailable` (true/false)
- `Email` (text)
- `From` (text)
- `ID` (number)
- `Inactive` (true/false)
- `MessageID` (text)
- `MessageStream` (text)
- `Name` (text)
- `RecordType` (text)
- `ServerID` (number)
- `Subject` (text)
- `Tag` (text)
- `Type` (text)
- `TypeCode` (number)

**Example output**

```json
{
  "BouncedAt": "2026-10-14T03:52:19-04:00",
  "CanActivate": true,
  "Content": null,
  "Description": "The server was unable to deliver your message.",
  "Details": "action: failed",
  "DumpAvailable": true,
  "Email": "anything@blackhole.postmarkapp.com",
  "From": "sender@example.com",
  "ID": 692560173,
  "Inactive": true,
  "MessageID": "2c1b63fe-43f2-4db5-91b0-8bdfa44a9316",
  "MessageStream": "outbound",
  "Name": "Hard bounce",
  "ServerID": 23,
  "Subject": "Hello from our app!",
  "Tag": "Invitation",
  "Type": "HardBounce",
  "TypeCode": 1
}
```

### Get delivery stats

Count the server's bounces by type, and the addresses Postmark is currently blocking.

**Inputs**: None.

**Outputs**

- `Bounces` (list)
- `InactiveMails` (number)

**Example output**

```json
{
  "Bounces": [
    {
      "Count": 253,
      "Name": "All"
    },
    {
      "Count": 195,
      "Name": "Hard bounce",
      "Type": "HardBounce"
    }
  ],
  "InactiveMails": 192
}
```

### Get sending stats

Totals for the emails this server sent: sent, bounced, spam complaints, opens and clicks, with bounce and complaint rates. Leave the dates empty for all time.

**Inputs**

- Tag (`tag`, text): A label to group this email under in Postmark's statistics and searches.
- Message stream (`message_stream`, text): Only this message stream. Defaults to all.
- From (`from_date`, date): Start of the period.
- To (`to_date`, date): End of the period.

**Outputs**

- `BounceRate` (number)
- `Bounced` (number)
- `Opens` (number)
- `SMTPApiErrors` (number)
- `Sent` (number)
- `SpamComplaints` (number)
- `SpamComplaintsRate` (number)
- `TotalClicks` (number)
- `TotalTrackedLinksSent` (number)
- `Tracked` (number)
- `UniqueLinksClicked` (number)
- `UniqueOpens` (number)
- `WithClientRecorded` (number)
- `WithLinkTracking` (number)
- `WithOpenTracking` (number)
- `WithPlatformRecorded` (number)

**Example output**

```json
{
  "BounceRate": 10.406,
  "Bounced": 64,
  "Opens": 166,
  "SMTPApiErrors": 25,
  "Sent": 615,
  "SpamComplaints": 10,
  "SpamComplaintsRate": 1.626,
  "TotalClicks": 72,
  "TotalTrackedLinksSent": 60,
  "Tracked": 111,
  "UniqueLinksClicked": 30,
  "UniqueOpens": 26,
  "WithClientRecorded": 14,
  "WithLinkTracking": 90,
  "WithOpenTracking": 51,
  "WithPlatformRecorded": 10
}
```

### Get sent email

Read one sent email in full: its bodies, recipients and everything that has happened to it since, including delivery, opens, clicks and bounces.

**Inputs**

- Message ID (`message_id`, text, required): The id 'Send email' returned, or one from 'Search sent emails'.

**Outputs**

- `Attachments` (list)
- `Bcc` (list)
- `Body` (text)
- `Cc` (list)
- `From` (text)
- `HtmlBody` (text)
- `MessageEvents` (list)
- `MessageID` (text)
- `MessageStream` (text)
- `Metadata` (object)
- `ReceivedAt` (text)
- `Recipients` (list)
- `Sandboxed` (true/false)
- `Status` (text)
- `Subject` (text)
- `Tag` (text)
- `TextBody` (text)
- `To` (list)
- `TrackLinks` (text)
- `TrackOpens` (true/false)

**Example output**

```json
{
  "Attachments": [],
  "Bcc": [],
  "Body": "",
  "Cc": [],
  "From": "\"Joe\" <joe@example.com>",
  "HtmlBody": "<p>Hello</p>",
  "MessageEvents": [
    {
      "Details": {
        "DeliveryMessage": "250 OK"
      },
      "ReceivedAt": "2026-10-14T10:59:01-04:00",
      "Recipient": "john.doe@example.com",
      "Type": "Delivered"
    }
  ],
  "MessageID": "0ac29aee-e1cd-480d-b08d-4f48548ff48d",
  "MessageStream": "outbound",
  "Metadata": {
    "color": "blue"
  },
  "ReceivedAt": "2026-10-14T10:58:58.9233386-04:00",
  "Recipients": [
    "john.doe@example.com"
  ],
  "Sandboxed": false,
  "Status": "Sent",
  "Subject": "staging",
  "Tag": "Invitation",
  "TextBody": "Hello",
  "To": [
    {
      "Email": "john.doe@example.com",
      "Name": null
    }
  ],
  "TrackLinks": "HtmlOnly",
  "TrackOpens": true
}
```

### Get server

Read the connected server's settings: its name, delivery mode, tracking defaults and webhook URLs. Its API tokens are left out.

**Inputs**: None.

**Outputs**

- `BounceHookUrl` (text)
- `ClickHookUrl` (text)
- `Color` (text)
- `DeliveryHookUrl` (text)
- `DeliveryType` (text)
- `EnableSmtpApiErrorHooks` (true/false)
- `ID` (number)
- `InboundAddress` (text)
- `InboundDomain` (text)
- `InboundHash` (text)
- `InboundHookUrl` (text)
- `InboundSpamThreshold` (number)
- `IncludeBounceContentInHook` (true/false)
- `Name` (text)
- `OpenHookUrl` (text)
- `PostFirstOpenOnly` (true/false)
- `RawEmailEnabled` (true/false)
- `ServerLink` (text)
- `SmtpApiActivated` (true/false)
- `TrackLinks` (text)
- `TrackOpens` (true/false)

**Example output**

```json
{
  "Color": "red",
  "DeliveryType": "Live",
  "ID": 1,
  "Name": "Staging Testing",
  "ServerLink": "https://account.postmarkapp.com/servers/1/streams",
  "SmtpApiActivated": true,
  "TrackLinks": "None",
  "TrackOpens": false
}
```

### Get template

Read one template or layout in full: its subject, HTML and text bodies, alias and layout.

**Inputs**

- Template (`template`, text, required): The template or layout to read.

**Outputs**

- `Active` (true/false)
- `Alias` (text)
- `AssociatedServerId` (number)
- `HtmlBody` (text)
- `LayoutTemplate` (text)
- `Name` (text)
- `Subject` (text)
- `TemplateId` (number)
- `TemplateType` (text)
- `TextBody` (text)

**Example output**

```json
{
  "Active": true,
  "Alias": "onboarding-email",
  "AssociatedServerId": 1,
  "HtmlBody": "<p>Hello dear Postmark user. {{Name}}</p>",
  "LayoutTemplate": null,
  "Name": "Onboarding Email",
  "Subject": "Hi there, {{Name}}",
  "TemplateId": 1234,
  "TemplateType": "Standard",
  "TextBody": "Hello dear Postmark user. {{Name}}"
}
```

### List bounces

List emails that bounced, newest first, with the reason and whether Postmark is now blocking the address.

**Inputs**

- Bounce type (`bounce_type`, text): Only bounces of this type. One of: `HardBounce` (Hard bounce), `SoftBounce` (Soft bounce), `Transient`, `SpamComplaint` (Spam complaint), `SpamNotification` (Spam notification), `BadEmailAddress` (Bad email address), `Blocked`, `DnsError` (DNS error), `DMARCPolicy` (DMARC policy), `ManuallyDeactivated` (Manually deactivated), and 12 more.
- Address status (`inactive`, text): Only addresses Postmark is, or is not, blocking. One of: `true` (Only addresses Postmark is blocking), `false` (Only addresses Postmark still sends to).
- Email address (`email_filter`, text): Only bounces whose address contains this text.
- Tag (`tag`, text): A label to group this email under in Postmark's statistics and searches.
- Message ID (`message_id`, text): Only the bounce of this sent email.
- Message stream (`message_stream`, text): Only include this message stream. Defaults to outbound.
- From (`from_date`, date and time): Only include those on or after this moment.
- To (`to_date`, date and time): Only include those on or before this moment.
- Number of results (`limit`, number): How many to return, 1-500. Defaults to 50. From 1 to 500. Default: `50`.
- Skip (`offset`, number): How many to skip first; use 'next_offset' from a previous run to read the next page. Defaults to 0. From 0 to 9999. Default: `0`.

**Outputs**

- `bounces` (list): Bounces, newest first
- `count` (number): Records on this page
- `has_more` (true/false): Whether another page follows
- `next_offset` (number): The offset that reads the next page, or null
- `total_count` (number): How many records match, across every page

**Example output**

```json
{
  "bounces": [
    {
      "BouncedAt": "2026-10-14T03:52:19-04:00",
      "CanActivate": true,
      "Content": null,
      "Description": "The server was unable to deliver your message.",
      "Details": "action: failed",
      "DumpAvailable": true,
      "Email": "anything@blackhole.postmarkapp.com",
      "From": "sender@example.com",
      "ID": 692560173,
      "Inactive": true,
      "MessageID": "2c1b63fe-43f2-4db5-91b0-8bdfa44a9316",
      "MessageStream": "outbound",
      "Name": "Hard bounce",
      "RecordType": "Bounce",
      "ServerID": 23,
      "Subject": "Hello from our app!",
      "Tag": "Invitation",
      "Type": "HardBounce",
      "TypeCode": 1
    }
  ],
  "count": 1,
  "has_more": false,
  "next_offset": null,
  "total_count": 1
}
```

### List email opens

List the times sent emails were opened, with the email client, platform and rough location. Only emails sent with open tracking are recorded.

**Inputs**

- Recipient (`recipient`, text): Only opens by this address.
- Tag (`tag`, text): A label to group this email under in Postmark's statistics and searches.
- Message stream (`message_stream`, text): Only include this message stream. Defaults to outbound.
- Platform (`platform`, text): Only opens on this kind of platform. One of: `webmail`, `desktop`, `mobile`.
- Email client (`client_name`, text): Only opens in this client.
- Email client family (`client_family`, text): Only opens in this client family.
- Operating system (`os_name`, text): Only opens on this operating system.
- OS family (`os_family`, text): Only opens on this OS family.
- Country (`country`, text): Only opens from this country.
- Region (`region`, text): Only opens from this region or state.
- City (`city`, text): Only opens from this city.
- Number of results (`limit`, number): How many to return, 1-500. Defaults to 50. From 1 to 500. Default: `50`.
- Skip (`offset`, number): How many to skip first; use 'next_offset' from a previous run to read the next page. Defaults to 0. From 0 to 9999. Default: `0`.

**Outputs**

- `count` (number): Records on this page
- `has_more` (true/false): Whether another page follows
- `next_offset` (number): The offset that reads the next page, or null
- `opens` (list): Opens, newest first
- `total_count` (number): How many records match, across every page

**Example output**

```json
{
  "count": 1,
  "has_more": false,
  "next_offset": null,
  "opens": [
    {
      "Client": {
        "Company": "Google",
        "Family": "Gmail",
        "Name": "Gmail"
      },
      "Geo": {
        "City": "Boston",
        "Country": "United States"
      },
      "MessageID": "927e56d2-dc08-4de4-9cb5-e21dbd4e7d0f",
      "MessageStream": "outbound",
      "OS": {
        "Company": "Apple",
        "Family": "OS X",
        "Name": "OS X"
      },
      "Platform": "WebMail",
      "ReceivedAt": "2026-10-14T13:37:28-04:00",
      "Recipient": "john.doe@example.com",
      "RecordType": "Open",
      "Tag": "welcome-user",
      "UserAgent": "Mozilla/5.0"
    }
  ],
  "total_count": 1
}
```

### List message streams

List the server's message streams (transactional, broadcast and inbound) with the id each one is referred to by.

**Inputs**

- Type (`stream_type`, text): Which kind to list. Defaults to all. One of: `All` (All streams), `Transactional`, `Broadcasts`, `Inbound`.
- Include archived (`include_archived`, true/false): Also list archived streams.

**Outputs**

- `count` (number)
- `message_streams` (list): The server's message streams
- `total_count` (number)

**Example output**

```json
{
  "count": 1,
  "message_streams": [
    {
      "ArchivedAt": null,
      "CreatedAt": "2026-03-26T12:01:46.9574415-04:00",
      "Description": "This is my stream to send transactional messages",
      "ExpectedPurgeDate": null,
      "ID": "outbound",
      "MessageStreamType": "Transactional",
      "Name": "Transactional Stream",
      "ServerID": 123457,
      "SubscriptionManagementConfiguration": {
        "UnsubscribeHandlingType": "None"
      },
      "UpdatedAt": "2026-03-26T12:01:46.9574415-04:00"
    }
  ],
  "total_count": 1
}
```

### List suppressions

List the addresses a message stream will not send to, and why: a hard bounce, a spam complaint, or added by hand.

**Inputs**

- Message stream (`message_stream`, text, required): Suppressions belong to one stream; outbound is the default transactional stream.
- Reason (`suppression_reason`, text): Only suppressions for this reason. One of: `HardBounce` (Hard bounce), `SpamComplaint` (Spam complaint), `ManualSuppression` (Added by hand).
- Added by (`origin`, text): Only suppressions added by this party. One of: `Recipient` (The recipient), `Customer` (You, through the app or the API), `Admin` (Postmark).
- Email address (`email_address`, text): Only this address.
- From (`from_date`, date): Only those added on or after this.
- To (`to_date`, date): Only those added on or before this.
- Number of results (`limit`, number): How many to return, 1-500. Defaults to 50. From 1 to 500. Default: `50`.
- Skip (`offset`, number): How many to skip first; use 'next_offset' from a previous run to read the next page. Defaults to 0. From 0 to 9999. Default: `0`.

**Outputs**

- `count` (number): Records on this page
- `has_more` (true/false): Whether another page follows
- `next_offset` (number): The offset that reads the next page, or null
- `suppressions` (list): Suppressed addresses
- `total_count` (number): How many records match, across every page

**Example output**

```json
{
  "count": 1,
  "has_more": false,
  "next_offset": null,
  "suppressions": [
    {
      "CreatedAt": "2026-10-10T08:58:33-04:00",
      "EmailAddress": "address@wildbit.com",
      "Origin": "Recipient",
      "SuppressionReason": "ManualSuppression"
    }
  ],
  "total_count": 1
}
```

### List templates

List the server's templates and layouts, with each one's id, alias and type.

**Inputs**

- Type (`template_type`, text): Which kind to list. Defaults to both. One of: `All` (Templates and layouts), `Standard` (Templates only), `Layout` (Layouts only).
- Using layout (`layout`, text): Only templates that use this layout.
- Number of results (`limit`, number): How many to return, 1-500. Defaults to 50. From 1 to 500. Default: `50`.
- Skip (`offset`, number): How many to skip first; use 'next_offset' from a previous run to read the next page. Defaults to 0. From 0 to 9999. Default: `0`.

**Outputs**

- `count` (number): Records on this page
- `has_more` (true/false): Whether another page follows
- `next_offset` (number): The offset that reads the next page, or null
- `templates` (list): Templates and layouts
- `total_count` (number): How many records match, across every page

**Example output**

```json
{
  "count": 1,
  "has_more": false,
  "next_offset": null,
  "templates": [
    {
      "Active": true,
      "Alias": "onboarding-email",
      "LayoutTemplate": null,
      "Name": "Onboarding Email",
      "TemplateId": 1234,
      "TemplateType": "Standard"
    }
  ],
  "total_count": 1
}
```

### Reactivate bounce

Let Postmark send to a bounced address again. Only bounces whose CanActivate is true can be reactivated; a spam complaint never can.

**Inputs**

- Bounce ID (`bounce_id`, text, required): The bounce's ID, from 'List bounces' or the bounce's page in Postmark.

**Outputs**

- `Bounce` (object)
- `Message` (text)

**Example output**

```json
{
  "Bounce": {
    "BouncedAt": "2026-10-14T03:52:19-04:00",
    "CanActivate": true,
    "Content": null,
    "Description": "The server was unable to deliver your message.",
    "Details": "action: failed",
    "DumpAvailable": true,
    "Email": "anything@blackhole.postmarkapp.com",
    "From": "sender@example.com",
    "ID": 692560173,
    "Inactive": false,
    "MessageID": "2c1b63fe-43f2-4db5-91b0-8bdfa44a9316",
    "MessageStream": "outbound",
    "Name": "Hard bounce",
    "RecordType": "Bounce",
    "ServerID": 23,
    "Subject": "Hello from our app!",
    "Tag": "Invitation",
    "Type": "HardBounce",
    "TypeCode": 1
  },
  "Message": "OK"
}
```

### Remove suppressions

Let a message stream send to up to 50 suppressed addresses again. Spam-complaint suppressions cannot be removed.

**Inputs**

- Message stream (`message_stream`, text, required): Suppressions belong to one stream; outbound is the default transactional stream.
- Email addresses (`email_addresses`, text, required): Up to 50 addresses, separated by commas.

**Outputs**

- `Suppressions` (list)

**Example output**

```json
{
  "Suppressions": [
    {
      "EmailAddress": "good.address@wildbit.com",
      "Message": null,
      "Status": "Deleted"
    }
  ]
}
```

### Search sent emails

Search the emails this server sent, newest first, by recipient, sender, tag, subject, status, stream, date or a metadata value.

**Inputs**

- Recipient (`recipient`, text): Only emails sent to this address.
- From (`from_email`, text): Only emails sent from this address.
- Tag (`tag`, text): A label to group this email under in Postmark's statistics and searches.
- Subject (`subject`, text): Only emails with this subject.
- Status (`status`, text): Only emails still queued, or already sent. One of: `queued`, `sent`.
- Message stream (`message_stream`, text): Only include this message stream. Defaults to outbound.
- From (`from_date`, date and time): Only include those on or after this moment.
- To (`to_date`, date and time): Only include those on or before this moment.
- Metadata name (`metadata_key`, text): Only emails whose metadata has this name...
- Metadata value (`metadata_value`, text): ...set to this value.
- Number of results (`limit`, number): How many to return, 1-500. Defaults to 50. From 1 to 500. Default: `50`.
- Skip (`offset`, number): How many to skip first; use 'next_offset' from a previous run to read the next page. Defaults to 0. From 0 to 9999. Default: `0`.

**Outputs**

- `count` (number): Records on this page
- `has_more` (true/false): Whether another page follows
- `messages` (list): Sent emails, newest first
- `next_offset` (number): The offset that reads the next page, or null
- `total_count` (number): How many records match, across every page

**Example output**

```json
{
  "count": 1,
  "has_more": false,
  "messages": [
    {
      "Attachments": [],
      "Bcc": [],
      "Cc": [],
      "From": "\"Joe\" <joe@example.com>",
      "MessageID": "0ac29aee-e1cd-480d-b08d-4f48548ff48d",
      "MessageStream": "outbound",
      "Metadata": {
        "color": "blue"
      },
      "ReceivedAt": "2026-10-14T10:58:58.9233386-04:00",
      "Recipients": [
        "john.doe@example.com"
      ],
      "Sandboxed": false,
      "Status": "Sent",
      "Subject": "staging",
      "Tag": "Invitation",
      "To": [
        {
          "Email": "john.doe@example.com",
          "Name": null
        }
      ],
      "TrackLinks": "HtmlOnly",
      "TrackOpens": true
    }
  ],
  "next_offset": null,
  "total_count": 1
}
```

### Send email

Send one email through Postmark, with a text body, an HTML body or both, optional attachments, tracking, a tag and metadata. Returns the message id Postmark assigned.

**Inputs**

- From (`from_email`, text, required): The sender. It must be a confirmed Sender Signature in Postmark, or an address on a domain you verified there. A name can go first: Jane Doe <jane@example.com>.
- To (`to`, text, required): Who receives it. Separate several addresses with commas; To, Cc and Bcc together can hold at most 50.
- Subject (`subject`, text, required): The subject line, up to 2,000 characters.
- Text body (`text_body`, text): The plain-text version. Give this, the HTML body, or both.
- HTML body (`html_body`, text): The HTML version. Give this, the text body, or both.
- Cc (`cc`, text): Addresses to copy, separated by commas.
- Bcc (`bcc`, text): Addresses to blind-copy, separated by commas.
- Reply to (`reply_to`, text): Where replies go, if not to the From address.
- Tag (`tag`, text): A label to group this email under in Postmark's statistics and searches.
- Track opens (`track_opens`, true/false): Record when the email is opened. Leave unset to use the server's own setting.
- Track links (`track_links`, text): Record clicks on links in the email. Leave unset to use the server's own setting. Link tracking works once Postmark has approved the account. One of: `None` (Don't track links), `HtmlAndText` (Track in the HTML and text bodies), `HtmlOnly` (Track in the HTML body only), `TextOnly` (Track in the text body only).
- Metadata (`metadata`, object): Your own names and values to store with the email, such as an order number. They come back on searches, bounces and webhooks.
- Custom headers (`headers`, object): Extra email headers, by name and value.
- Attachments (`attachments`, list): Files to attach. Upload a file or reference a document (or a list of documents) from an earlier step. The whole email can be at most 10 MB.
- Message stream (`message_stream`, text): The stream to send through. Defaults to the transactional stream, outbound.

**Outputs**

- `ErrorCode` (number)
- `Message` (text)
- `MessageID` (text)
- `SubmittedAt` (text)
- `To` (text)

**Example output**

```json
{
  "ErrorCode": 0,
  "Message": "OK",
  "MessageID": "0a129aee-e1cd-480d-b08d-4f48548ff48d",
  "SubmittedAt": "2026-10-15T12:16:12.6683391-04:00",
  "To": "receiver@example.com"
}
```

### Send email with template

Send one email built from a Postmark template, filling its {{variables}} from the values given. Returns the message id.

**Inputs**

- Template (`template`, text, required): The template to send, picked or typed as an alias.
- Template values (`template_model`, object): The values the template's {{variables}} are filled from, by variable name.
- From (`from_email`, text, required): The sender. It must be a confirmed Sender Signature in Postmark, or an address on a domain you verified there. A name can go first: Jane Doe <jane@example.com>.
- To (`to`, text, required): Who receives it. Separate several addresses with commas; To, Cc and Bcc together can hold at most 50.
- Inline CSS (`inline_css`, true/false): Move the template's style rules onto each element, which some email clients need. Postmark does this by default.
- Cc (`cc`, text): Addresses to copy, separated by commas.
- Bcc (`bcc`, text): Addresses to blind-copy, separated by commas.
- Reply to (`reply_to`, text): Where replies go, if not to the From address.
- Tag (`tag`, text): A label to group this email under in Postmark's statistics and searches.
- Track opens (`track_opens`, true/false): Record when the email is opened. Leave unset to use the server's own setting.
- Track links (`track_links`, text): Record clicks on links in the email. Leave unset to use the server's own setting. Link tracking works once Postmark has approved the account. One of: `None` (Don't track links), `HtmlAndText` (Track in the HTML and text bodies), `HtmlOnly` (Track in the HTML body only), `TextOnly` (Track in the text body only).
- Metadata (`metadata`, object): Your own names and values to store with the email, such as an order number. They come back on searches, bounces and webhooks.
- Custom headers (`headers`, object): Extra email headers, by name and value.
- Attachments (`attachments`, list): Files to attach. Upload a file or reference a document (or a list of documents) from an earlier step. The whole email can be at most 10 MB.
- Message stream (`message_stream`, text): The stream to send through. Defaults to the transactional stream, outbound.

**Outputs**

- `ErrorCode` (number)
- `Message` (text)
- `MessageID` (text)
- `SubmittedAt` (text)
- `To` (text)

**Example output**

```json
{
  "ErrorCode": 0,
  "Message": "OK",
  "MessageID": "0a129aee-e1cd-480d-b08d-4f48548ff48d",
  "SubmittedAt": "2026-10-15T12:16:12.6683391-04:00",
  "To": "receiver@example.com"
}
```

### Suppress addresses

Stop a message stream sending to up to 50 addresses. Fails, naming each one, if Postmark refuses any of them.

**Inputs**

- Message stream (`message_stream`, text, required): Suppressions belong to one stream; outbound is the default transactional stream.
- Email addresses (`email_addresses`, text, required): Up to 50 addresses, separated by commas.

**Outputs**

- `Suppressions` (list)

**Example output**

```json
{
  "Suppressions": [
    {
      "EmailAddress": "good.address@wildbit.com",
      "Message": null,
      "Status": "Suppressed"
    }
  ]
}
```

### Update template

Change a template's or layout's name, subject, bodies, alias or layout. Anything left empty stays as it is.

**Inputs**

- Template (`template`, text, required): The template or layout to change.
- Name (`name`, text): A new name.
- Subject (`subject`, text): A new subject line (templates only).
- HTML body (`html_body`, text): A new HTML body.
- Text body (`text_body`, text): A new text body.
- Alias (`alias`, text): A new alias.
- Layout (`layout`, text): Move the template to this layout.
- Remove layout (`remove_layout`, true/false): Stop the template using any layout.

**Outputs**

- `Active` (true/false)
- `Alias` (text)
- `LayoutTemplate` (text)
- `Name` (text)
- `TemplateId` (number)
- `TemplateType` (text)

**Example output**

```json
{
  "Active": true,
  "Alias": "onboarding-email",
  "LayoutTemplate": null,
  "Name": "Onboarding Email",
  "TemplateId": 1234
}
```
