> For the complete documentation index, see [llms.txt](https://docs.stackai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackai.com/integrations/catalog/postmark.md).

# Postmark

Send transactional email and inspect delivery activity through Postmark.

### Connectors

Choose the connector that matches your authentication method. The options below use the names shown in StackAI.

| Connector | Authentication   |
| --------- | ---------------- |
| Postmark  | Server API Token |

#### Postmark

Connect to a Postmark server to send email and inspect delivery activity.

**Set up in Postmark**

1. Prepare the Postmark account or service that the workflow will access. Grant access to the required resources and operations.
2. Create or obtain the API credential identified in the fields below. Use the provider instructions linked with those fields to find its key-management page.

**Set up in StackAI**

1. Open **Settings → Connections**, add a connection, and select **Postmark**.
2. Enter the credentials and connection details in the fields below.
3. Save the connection and check its connection status. Select this saved connection when configuring an action or feature that uses it.

**Connection fields**

| StackAI field    | Required | What to enter                                                                                                                               |
| ---------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| Server API Token | Yes      | Open the Postmark server, select API Tokens, and copy a Server API token. [Provider instructions](https://account.postmarkapp.com/servers). |

#### Verify the connection

Check that the connection is healthy. Then run a read operation against a resource the connected account can access. A successful connection check confirms authentication; it does not guarantee permission for every action.

If access is denied, check the credential or OAuth permissions, the selected account or environment, and access to the specific resource. Update expired credentials or reconnect after permissions change.

### Use an action

1. Add the required **Postmark** action to the workflow.
2. Select a connection when the action requests one.
3. Complete the required fields. Use the reference picker when a value comes from another workflow step.
4. Run the workflow and inspect the action’s output. Check the result before using it in a later step.

### Actions

#### Send email

Send one transactional email through Postmark.

**Inputs**

| Field           | Type            | Required | Description                                                                                                                               |
| --------------- | --------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| From            | string          | Yes      | The verified sender address.                                                                                                              |
| To              | string          | Yes      | The recipient address or comma-separated recipients.                                                                                      |
| Subject         | string          | Yes      | The email subject.                                                                                                                        |
| Plain-text body | textarea        | No       | The plain-text version of the email.                                                                                                      |
| HTML body       | textarea        | No       | The HTML version of the email.                                                                                                            |
| CC              | string          | No       | Comma-separated carbon-copy recipients.                                                                                                   |
| BCC             | string          | No       | Comma-separated blind-copy recipients.                                                                                                    |
| Reply to        | string          | No       | Where replies should be sent.                                                                                                             |
| Tag             | string          | No       | A Postmark tag for reporting.                                                                                                             |
| Track opens     | boolean         | No       | Record when recipients open this email. Default: false.                                                                                   |
| Track links     | select (string) | No       | Choose which links Postmark should track. Available values: Do not track, HTML and plain text, HTML only, Plain text only. Default: None. |
| Message stream  | select (string) | No       | The Postmark message stream used for sending. Options load from the selected connection. Default: outbound.                               |

**Outputs**

| Field        | Type     | Description                       |
| ------------ | -------- | --------------------------------- |
| To           | string   | The accepted recipient address.   |
| Submitted at | datetime | When Postmark accepted the email. |
| Message ID   | string   | The Postmark message identifier.  |
| Message      | string   | Postmark's acceptance message.    |

#### Get delivery stats

Get inactive-recipient and bounce totals from Postmark.

**Inputs**

No input fields are required in this catalog entry.

**Outputs**

| Field          | Type          | Description                                 |
| -------------- | ------------- | ------------------------------------------- |
| Inactive mails | integer       | The number of inactive recipient addresses. |
| Bounces        | object\_array | Bounce totals grouped by Postmark category. |

#### List bounces

Search bounce records in Postmark.

**Inputs**

| Field               | Type            | Required | Description                                                                                                                                                                                                                                                                                                                                                                                                      |
| ------------------- | --------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Bounce type         | select (string) | No       | Only return this Postmark bounce type. Available values: Hard bounce, Transient, Unsubscribe, Subscribe, Auto responder, Address change, DNS error, Spam notification, Open relay test, Unknown, Soft bounce, Virus notification, Challenge verification, Bad email address, Spam complaint, Manually deactivated, Unconfirmed, Blocked, SMTP API error, Inbound error, DMARC policy, Template rendering failed. |
| Inactive recipients | boolean         | No       | Filter by whether the recipient is inactive.                                                                                                                                                                                                                                                                                                                                                                     |
| Email               | string          | No       | Filter by recipient email.                                                                                                                                                                                                                                                                                                                                                                                       |
| Tag                 | string          | No       | Filter by Postmark tag.                                                                                                                                                                                                                                                                                                                                                                                          |
| Message ID          | string          | No       | Find bounces for one Postmark message.                                                                                                                                                                                                                                                                                                                                                                           |
| From date           | datetime        | No       | Only include bounces on or after this time.                                                                                                                                                                                                                                                                                                                                                                      |
| To date             | datetime        | No       | Only include bounces on or before this time.                                                                                                                                                                                                                                                                                                                                                                     |
| Message stream      | select (string) | No       | Only include this Postmark message stream. Options load from the selected connection. Default: outbound.                                                                                                                                                                                                                                                                                                         |
| Maximum results     | integer         | No       | The maximum number of bounces to return. Minimum: 1. Maximum: 500. Default: 100.                                                                                                                                                                                                                                                                                                                                 |
| Offset              | integer         | No       | Continue from an earlier result offset. Minimum: 0. Maximum: 9999. Default: 0.                                                                                                                                                                                                                                                                                                                                   |

**Outputs**

| Field       | Type          | Description                                    |
| ----------- | ------------- | ---------------------------------------------- |
| Total count | integer       | The number of bounces matching the filters.    |
| Bounces     | object\_array | The matching bounce records.                   |
| Next offset | integer       | Pass this back as Offset to get the next page. |

#### List outbound messages

Search messages sent through Postmark.

**Inputs**

| Field           | Type            | Required | Description                                                                                              |
| --------------- | --------------- | -------- | -------------------------------------------------------------------------------------------------------- |
| Recipient       | string          | No       | Filter by recipient address.                                                                             |
| From            | string          | No       | Filter by sender address.                                                                                |
| Tag             | string          | No       | Filter by Postmark tag.                                                                                  |
| Status          | select (string) | No       | Only return messages in this status. Available values: Queued, Sent, Processed.                          |
| Subject         | string          | No       | Filter by email subject.                                                                                 |
| From date       | datetime        | No       | Only include messages received on or after this time.                                                    |
| To date         | datetime        | No       | Only include messages received on or before this time.                                                   |
| Message stream  | select (string) | No       | Only include this Postmark message stream. Options load from the selected connection. Default: outbound. |
| Maximum results | integer         | No       | The maximum number of messages to return. Minimum: 1. Maximum: 500. Default: 100.                        |
| Offset          | integer         | No       | Continue from an earlier result offset. Minimum: 0. Maximum: 9999. Default: 0.                           |

**Outputs**

| Field       | Type          | Description                                    |
| ----------- | ------------- | ---------------------------------------------- |
| Total count | integer       | The number of messages matching the filters.   |
| Messages    | object\_array | The matching outbound messages.                |
| Next offset | integer       | Pass this back as Offset to get the next page. |

### Important behavior

Actions that create, update, send, or delete data can change the connected service. Review their inputs before running them. A retry can repeat an operation; consider this when configuring retries for actions that change data.

The catalog lists the fields and capabilities available in the supplied provider definition. Availability can also depend on your deployment and organization’s Feature Access settings.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stackai.com/integrations/catalog/postmark.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
