Postmark Messages API
The Messages API API from Postmark — 11 operation(s) for messages api.
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
Add selected operations to Stack
Show what people ask
Ask an LLM “Did my password reset email actually go out to a particular customer?”
“Can I search outgoing messages by sender address and tag?”
Tell an agent Search sent emails to {recipient} from {fromdate} to {todate}.
List the latest {count} outbound messages tagged {tag}.
Ask an LLM “What happened to one specific email I sent — was it delivered?”
“Can I see the body and delivery events of a single outbound message?”
Tell an agent Show the details and delivery events for sent message {messageid}.
Get outbound message {messageid}.
Ask an LLM “How do I see the raw SMTP source of an email I sent?”
“Can I download the full headers and MIME dump for an outbound message?”
Tell an agent Dump the raw source of outbound message {messageid}.
Give me the full MIME dump of sent email {messageid}.
Ask an LLM “Which inbound emails failed processing or got blocked this week?”
“Can I search received mail by subject or mailbox hash?”
Tell an agent Search inbound emails with subject {subject}.
List {count} inbound messages with status {status} since {fromdate}.
Ask an LLM “What did a specific inbound email contain and how was it processed?”
“Can I look up one received message by its ID?”
Tell an agent Show inbound message {messageid}.
Get the content and processing details of received email {messageid}.
Ask an LLM “An inbound email got blocked by my rules — how do I let it through?”
“Can I bypass inbound rules for just one blocked message?”
Tell an agent Bypass inbound rules for blocked message {messageid}.
Release blocked inbound email {messageid} past the rules.
Ask an LLM “My inbound webhook was down — how do I reprocess a failed message?”
“Can I retry delivery of a failed inbound email to my endpoint?”
Tell an agent Retry processing of failed inbound message {messageid}.
Reprocess inbound email {messageid} now that the webhook is back.
Ask an LLM “Who opened my emails, and from which email clients?”
“Can I filter open events by country or by mobile versus desktop?”
Tell an agent List opens across all messages tagged {tag}.
Show {count} email opens from {country} on platform {platform}.
Ask an LLM “Has a specific email I sent been opened, and how many times?”
“Can I see every open event recorded for one message?”
Tell an agent Show the opens for message {messageid}.
List the first {count} open events on sent email {messageid}.
Ask an LLM “Which links in my emails are recipients clicking, and from where?”
“Can I filter link clicks by operating system or city?”
Tell an agent List link clicks across all messages tagged {tag}.
Show {count} clicks from {city} on OS family {os_family}.
Ask an LLM “Did anyone click the links in one particular email I sent?”
“Can I see each click event recorded for a single message?”
Tell an agent Show link clicks for message {messageid}.
List the first {count} click events on sent email {messageid}.
Documentation
Specifications
Other Resources
Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.
get_api_artifactsOne API's artifacts, grouped by type.
get_openapiThe primary OpenAPI for this API.
find_similar_apisAPIs that look like this one.
apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
resolveTurn a domain, URL or GitHub org into the provider it belongs to.
find_cohortsEvery scored population of providers in the catalog.
All 92 tools →
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/postmark:postmark-messages-api-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key .
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms .
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Postmark Server Messages API
description: 'Postmark makes sending and receiving email
incredibly easy.'
version: 1.0.0
servers:
- url: https://api.postmarkapp.com/
tags:
- name: Messages API
paths:
/messages/outbound:
get:
operationId: searchOutboundMessages
tags:
- Messages API
summary: Postmark Outbound message search
parameters:
- name: X-Postmark-Server-Token
required: true
description: The token associated with the Server on which this request will operate.
in: header
schema:
type: string
- name: count
description: Number of messages to return per request. Max 500.
in: query
required: true
schema:
type: integer
- name: offset
description: Number of messages to skip
required: true
in: query
schema:
type: integer
- name: recipient
description: Filter by the user who was receiving the email
in: query
schema:
type: string
format: email
- name: fromemail
description: Filter by the sender email address
in: query
schema:
type: string
format: email
- name: tag
in: query
description: Filter by tag
schema:
type: string
- name: status
in: query
description: Filter by status (`queued` or `sent`)
schema:
type: string
enum:
- queued
- sent
- name: todate
in: query
description: Filter messages up to the date specified. e.g. `2014-02-01`
schema:
type: string
format: date
- name: fromdate
description: Filter messages starting from the date specified. e.g. `2014-02-01`
in: query
schema:
type: string
format: date
responses:
200:
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/OutboundSearchResponse'
422:
$ref: '#/components/responses/422'
500:
$ref: '#/components/responses/500'
/messages/outbound/{messageid}/details:
get:
operationId: getOutboundMessageDetails
tags:
- Messages API
summary: Postmark Outbound message details
parameters:
- name: X-Postmark-Server-Token
required: true
description: The token associated with the Server on which this request will operate.
in: header
schema:
type: string
- name: messageid
description: The ID of the message for which to retrieve details.
in: path
required: true
schema:
type: string
responses:
200:
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/OutboundMessageDetailsResponse'
422:
$ref: '#/components/responses/422'
500:
$ref: '#/components/responses/500'
/messages/outbound/{messageid}/dump:
get:
operationId: getOutboundMessageDump
tags:
- Messages API
summary: Postmark Outbound message dump
parameters:
- name: X-Postmark-Server-Token
required: true
description: The token associated with the Server on which this request will operate.
in: header
schema:
type: string
- name: messageid
description: The ID of the message for which to retrieve a dump.
in: path
required: true
schema:
type: string
responses:
200:
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/OutboundMessageDumpResponse'
422:
$ref: '#/components/responses/422'
500:
$ref: '#/components/responses/500'
/messages/inbound:
get:
operationId: searchInboundMessages
tags:
- Messages API
summary: Postmark Inbound message search
parameters:
- name: X-Postmark-Server-Token
required: true
description: The token associated with the Server on which this request will operate.
in: header
schema:
type: string
- name: count
in: query
required: true
description: Number of messages to return per request. Max 500.
schema:
type: integer
- name: offset
description: Number of messages to skip
required: true
in: query
schema:
type: integer
- name: recipient
description: Filter by the user who was receiving the email
in: query
schema:
type: string
format: email
- name: fromemail
description: Filter by the sender email address
in: query
schema:
type: string
format: email
- name: subject
description: Filter by email subject
in: query
schema:
type: string
- name: mailboxhash
description: Filter by mailboxhash
in: query
schema:
type: string
- name: tag
in: query
description: Filter by tag
schema:
type: string
- name: status
description: Filter by status (`blocked`, `processed`, `queued`, `failed`, `scheduled`)
in: query
schema:
type: string
enum:
- blocked
- processed
- queued
- failed
- scheduled
- name: todate
in: query
description: Filter messages up to the date specified. e.g. `2014-02-01`
schema:
type: string
format: date
- name: fromdate
in: query
description: Filter messages starting from the date specified. e.g. `2014-02-01`
schema:
type: string
format: date
responses:
200:
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/InboundSearchResponse'
422:
$ref: '#/components/responses/422'
500:
$ref: '#/components/responses/500'
/messages/inbound/{messageid}/details:
get:
operationId: getInboundMessageDetails
tags:
- Messages API
summary: Postmark Inbound message details
parameters:
- name: X-Postmark-Server-Token
required: true
description: The token associated with the Server on which this request will operate.
in: header
schema:
type: string
- name: messageid
description: The ID of the message for which to details will be retrieved.
in: path
required: true
schema:
type: string
responses:
200:
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/InboundMessageFullDetailsResponse'
422:
$ref: '#/components/responses/422'
500:
$ref: '#/components/responses/500'
/messages/inbound/{messageid}/bypass:
put:
operationId: bypassRulesForInboundMessage
tags:
- Messages API
summary: Postmark Bypass rules for a blocked inbound message
parameters:
- name: X-Postmark-Server-Token
required: true
description: The token associated with the Server on which this request will operate.
in: header
schema:
type: string
- name: messageid
description: The ID of the message which should bypass inbound rules.
in: path
required: true
schema:
type: string
responses:
200:
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/StandardPostmarkResponse'
422:
$ref: '#/components/responses/422'
500:
$ref: '#/components/responses/500'
/messages/inbound/{messageid}/retry:
put:
operationId: retryInboundMessageProcessing
tags:
- Messages API
summary: Postmark Retry a failed inbound message for processing
parameters:
- name: X-Postmark-Server-Token
required: true
description: The token associated with the Server on which this request will operate.
in: header
schema:
type: string
- name: messageid
in: path
description: The ID of the inbound message on which we should retry processing.
required: true
schema:
type: string
responses:
200:
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/StandardPostmarkResponse'
422:
$ref: '#/components/responses/422'
500:
$ref: '#/components/responses/500'
/messages/outbound/opens:
get:
operationId: searchOpensForOutboundMessages
tags:
- Messages API
summary: Postmark Opens for all messages
parameters:
- name: X-Postmark-Server-Token
required: true
description: The token associated with the Server on which this request will operate.
in: header
schema:
type: string
- name: count
in: query
description: Number of message opens to return per request. Max 500.
required: true
schema:
type: integer
- name: offset
description: Number of messages to skip
in: query
required: true
schema:
type: integer
- name: recipient
description: Filter by To, Cc, Bcc
in: query
required: false
schema:
type: string
- name: tag
description: Filter by tag
in: query
required: false
schema:
type: string
- name: client_name
description: Filter by client name, i.e. Outlook, Gmail
in: query
required: false
schema:
type: string
- name: client_company
description: Filter by company, i.e. Microsoft, Apple, Google
in: query
required: false
schema:
type: string
- name: client_family
description: Filter by client family, i.e. OS X, Chrome
in: query
required: false
schema:
type: string
- name: os_name
description: Filter by full OS name and specific version, i.e. OS X 10.9 Mavericks, Windows 7
in: query
required: false
schema:
type: string
- name: os_family
description: Filter by kind of OS used without specific version, i.e. OS X, Windows
in: query
required: false
schema:
type: string
- name: os_company
description: Filter by company which produced the OS, i.e. Apple Computer, Inc., Microsoft Corporation
in: query
required: false
schema:
type: string
- name: platform
description: Filter by platform, i.e. webmail, desktop, mobile
in: query
required: false
schema:
type: string
- name: country
description: Filter by country messages were opened in, i.e. Denmark, Russia
in: query
required: false
schema:
type: string
- name: region
description: Filter by full name of region messages were opened in, i.e. Moscow, New York
in: query
required: false
schema:
type: string
- name: city
description: Filter by full name of region messages were opened in, i.e. Moscow, New York
in: query
required: false
schema:
type: string
responses:
200:
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/MessageOpenSearchResponse'
422:
$ref: '#/components/responses/422'
500:
$ref: '#/components/responses/500'
/messages/outbound/opens/{messageid}:
get:
operationId: getOpensForSingleOutboundMessage
tags:
- Messages API
summary: Postmark Retrieve Message Opens
parameters:
- name: X-Postmark-Server-Token
required: true
description: The token associated with the Server on which this request will operate.
in: header
schema:
type: string
- name: messageid
description: The ID of the Outbound Message for which open statistics should be retrieved.
in: path
required: true
schema:
type: string
- name: count
in: query
description: Number of message opens to return per request. Max 500.
required: true
schema:
type: integer
default: 1
maximum: 500
minimum: 1
- name: offset
in: query
description: Number of messages to skip.
required: true
schema:
type: integer
default: 0
minimum: 0
responses:
200:
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/MessageOpenSearchResponse'
422:
$ref: '#/components/responses/422'
500:
$ref: '#/components/responses/500'
/messages/outbound/clicks:
get:
operationId: searchClicksForOutboundMessages
tags:
- Messages API
summary: Postmark Clicks for a all messages
parameters:
- name: X-Postmark-Server-Token
required: true
description: The token associated with the Server on which this request will operate.
in: header
schema:
type: string
- name: count
in: query
description: Number of message clicks to return per request. Max 500.
required: true
schema:
type: integer
- name: offset
description: Number of messages to skip
in: query
required: true
schema:
type: integer
- name: recipient
description: Filter by To, Cc, Bcc
in: query
required: false
schema:
type: string
- name: tag
description: Filter by tag
in: query
required: false
schema:
type: string
- name: client_name
description: Filter by client name, i.e. Outlook, Gmail
in: query
required: false
schema:
type: string
- name: client_company
description: Filter by company, i.e. Microsoft, Apple, Google
in: query
required: false
schema:
type: string
- name: client_family
description: Filter by client family, i.e. OS X, Chrome
in: query
required: false
schema:
type: string
- name: os_name
description: Filter by full OS name and specific version, i.e. OS X 10.9 Mavericks, Windows 7
in: query
required: false
schema:
type: string
- name: os_family
description: Filter by kind of OS used without specific version, i.e. OS X, Windows
in: query
required: false
schema:
type: string
- name: os_company
description: Filter by company which produced the OS, i.e. Apple Computer, Inc., Microsoft Corporation
in: query
required: false
schema:
type: string
- name: platform
description: Filter by platform, i.e. webmail, desktop, mobile
in: query
required: false
schema:
type: string
- name: country
description: Filter by country messages were opened in, i.e. Denmark, Russia
in: query
required: false
schema:
type: string
- name: region
description: Filter by full name of region messages were opened in, i.e. Moscow, New York
in: query
required: false
schema:
type: string
- name: city
description: Filter by full name of region messages were opened in, i.e. Moscow, New York
in: query
required: false
schema:
type: string
responses:
200:
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/MessageClickSearchResponse'
422:
$ref: '#/components/responses/422'
500:
$ref: '#/components/responses/500'
/messages/outbound/clicks/{messageid}:
get:
operationId: getClicksForSingleOutboundMessage
tags:
- Messages API
summary: Postmark Retrieve Message Clicks
parameters:
- name: X-Postmark-Server-Token
required: true
description: The token associated with the Server on which this request will operate.
in: header
schema:
type: string
- name: messageid
description: The ID of the Outbound Message for which click statistics should be retrieved.
in: path
required: true
schema:
type: string
- name: count
in: query
description: Number of message clicks to return per request. Max 500.
required: true
schema:
type: integer
default: 1
maximum: 500
minimum: 1
- name: offset
in: query
description: Number of messages to skip.
required: true
schema:
type: integer
default: 0
minimum: 0
responses:
200:
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/MessageClickSearchResponse'
422:
$ref: '#/components/responses/422'
500:
$ref: '#/components/responses/500'
components:
schemas:
StandardPostmarkResponse:
description: A Postmark API error.
properties:
ErrorCode:
type: integer
Message:
type: string
OutboundSearchResponse:
description: ''
properties:
TotalCount:
type: integer
Messages:
type: array
items:
$ref: '#/components/schemas/OutboundMessageDetail'
EmailNameAddressPair:
description: ''
properties:
Name:
type: string
Email:
type: string
MessageOpenSearchResponse:
properties:
TotalCount:
type: integer
Opens:
type: array
items:
$ref: '#/components/schemas/ExtendedMessageOpenEventInformation'
MessageEventDetails:
description: ''
properties:
Recipient:
type: string
Type:
type: string
ReceivedAt:
type: string
format: date-time
Details:
properties:
Summary:
type: string
BounceID:
type: string
DeliveryMessage:
type: string
DestinationServer:
type: string
DestinationIP:
type: string
MessageClickSearchResponse:
properties:
TotalCount:
type: integer
Clicks:
type: array
items:
$ref: '#/components/schemas/ExtendedMessageClickEventInformation'
ExtendedMessageOpenEventInformation:
description: ''
properties:
FirstOpen:
type: boolean
Client:
description: ''
properties:
Name:
type: string
Company:
type: string
Family:
type: string
OS:
properties:
Name:
type: string
Company:
type: string
Family:
type: string
Platform:
type: string
UserAgent:
type: string
Geo:
properties:
CountryISOCode:
type: string
Country:
type: string
RegionISOCode:
type: string
Region:
type: string
City:
type: string
Zip:
type: string
Coords:
type: string
IP:
type: string
MessageID:
type: string
ReceivedAt:
type: string
format: date-time
Tag:
type: string
Recipient:
type: string
format: email
OutboundMessageDumpResponse:
properties:
Body:
description: Raw source of message. If no dump is available this will return an empty string.
type: string
OutboundMessageDetail:
description: ''
properties:
Tag:
type: string
MessageID:
type: string
To:
type: array
items:
$ref: '#/components/schemas/EmailNameAddressPair'
Cc:
type: array
items:
$ref: '#/components/schemas/EmailNameAddressPair'
Bcc:
type: array
items:
$ref: '#/components/schemas/EmailNameAddressPair'
Recipients:
type: array
items:
type: string
ReceivedAt:
type: string
format: date-time
From:
type: string
Subject:
type: string
Attachments:
$ref: '#/components/schemas/AttachmentCollection'
Status:
type: string
TrackOpens:
type: boolean
TrackLinks:
type: string
enum:
- None
- HtmlAndText
- HtmlOnly
- TextOnly
ExtendedMessageClickEventInformation:
description: ''
properties:
ClickLocation:
type: string
Client:
description: ''
properties:
Name:
type: string
Company:
type: string
Family:
type: string
OS:
properties:
Name:
type: string
Company:
type: string
Family:
type: string
Platform:
type: string
UserAgent:
type: string
OriginalLink:
type: string
Geo:
properties:
CountryISOCode:
type: string
Country:
type: string
RegionISOCode:
type: string
Region:
type: string
City:
type: string
Zip:
type: string
Coords:
type: string
IP:
type: string
MessageID:
type: string
ReceivedAt:
type: string
format: date-time
Tag:
type: string
Recipient:
type: string
format: email
InboundMessageDetail:
description: ''
properties:
From:
type: string
FromName:
type: string
FromFull:
description: ''
properties:
Email:
type: string
Name:
type: string
To:
type: string
ToFull:
type: array
items:
$ref: '#/components/schemas/EmailNameAddressPair'
Cc:
type: string
CcFull:
type: array
items:
$ref: '#/components/schemas/EmailNameAddressPair'
ReplyTo:
type: string
OriginalRecipient:
type: string
Subject:
type: string
Date:
type: string
MailboxHash:
type: string
Tag:
type: string
Attachments:
$ref: '#/components/schemas/AttachmentCollection'
MessageID:
type: string
Status:
type: string
HeaderCollection:
type: array
items:
$ref: '#/components/schemas/MessageHeader'
Attachment:
description: An attachment for an email message.
properties:
Name:
type: string
Content:
type: string
ContentType:
type: string
ContentID:
type: string
OutboundMessageDetailsResponse:
properties:
TextBody:
type: string
HtmlBody:
type: string
Body:
type: string
Tag:
type: string
MessageID:
type: string
To:
type: array
items:
$ref: '#/components/schemas/EmailNameAddressPair'
Cc:
type: array
items:
$ref: '#/components/schemas/EmailNameAddressPair'
Bcc:
type: array
items:
$ref: '#/components/schemas/EmailNameAddressPair'
Recipients:
type: array
items:
type: string
ReceivedAt:
type: string
format: date-time
From:
type: string
Subject:
type: string
Attachments:
$ref: '#/components/schemas/AttachmentCollection'
Status:
type: string
TrackOpens:
type: boolean
TrackLinks:
type: string
enum:
- None
- HtmlAndText
- HtmlOnly
- TextOnly
MessageEvents:
type: array
items:
$ref: '#/components/schemas/MessageEventDetails'
InboundSearchResponse:
description: ''
properties:
TotalCount:
type: integer
InboundMessages:
type: array
items:
$ref: '#/components/schemas/InboundMessageDetail'
AttachmentCollection:
type: array
items:
$ref: '#/components/schemas/Attachment'
MessageHeader:
description: A single header for an email message.
properties:
Name:
description: The header's name.
type: string
Value:
description: The header's value.
type: string
InboundMessageFullDetailsResponse:
properties:
From:
type: string
FromName:
type: string
FromFull:
description: ''
properties:
Email:
type: string
Name:
type: string
To:
type: string
ToFull:
type: array
items:
$ref: '#/components/schemas/EmailNameAddressPair'
Cc:
type: string
CcFull:
type: array
items:
$ref: '#/components/schemas/EmailNameAddressPair'
ReplyTo:
type: string
OriginalRecipient:
type: string
Subject:
type: string
Date:
type: string
MailboxHash:
type: string
TextBody:
type: string
HtmlBody:
type: string
Tag:
type: string
Headers:
$ref: '#/components/schemas/HeaderCollection'
Attachments:
$ref: '#/components/schemas/AttachmentCollection'
MessageID:
type: string
BlockedReason:
type: string
Status:
type: string
x-provenance:
method: harvested
publisher: Postmark
source: https://postmarkapp.com/swagger/server.yml
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)