@datafire/postmarkapp_server
v6.0.0
Published
DataFire integration for Postmark API
Readme
@datafire/postmarkapp_server
Client library for Postmark API
Installation and Usage
npm install --save @datafire/postmarkapp_serverlet postmarkapp_server = require('@datafire/postmarkapp_server').create();
.then(data => {
console.log(data);
});Description
Postmark makes sending and receiving email incredibly easy.
Actions
getBounces
Get bounces
postmarkapp_server.getBounces({
"X-Postmark-Server-Token": "",
"count": 0,
"offset": 0
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - count required
integer: Number of bounces to return per request. Max 500. - offset required
integer: Number of bounces to skip. - type
string(values: HardBounce, Transient, Unsubscribe, Subscribe, AutoResponder, AddressChange, DnsError, SpamNotification, OpenRelayTest, Unknown, SoftBounce, VirusNotification, MailFrontier Matador., BadEmailAddress, SpamComplaint, ManuallyDeactivated, Unconfirmed, Blocked, SMTPApiError, InboundError, DMARCPolicy, TemplateRenderingFailed): Filter by type of bounce - inactive
boolean: Filter by emails that were deactivated by Postmark due to the bounce. Set to true or false. If this isn't specified it will return both active and inactive. - emailFilter
string: Filter by email address - messageID
string: Filter by messageID - tag
string: Filter by tag - todate
string: Filter messages up to the date specified. e.g.2014-02-01 - fromdate
string: Filter messages starting from the date specified. e.g.2014-02-01
- X-Postmark-Server-Token required
Output
- output BounceSearchResponse
getBouncedTags
Get bounced tags
postmarkapp_server.getBouncedTags({
"X-Postmark-Server-Token": ""
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate.
- X-Postmark-Server-Token required
Output
- output
array- items
string
- items
getSingleBounce
Get a single bounce
postmarkapp_server.getSingleBounce({
"X-Postmark-Server-Token": "",
"bounceid": 0
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - bounceid required
integer: The ID of the bounce to retrieve.
- X-Postmark-Server-Token required
Output
- output BounceInfoResponse
activateBounce
Activate a bounce
postmarkapp_server.activateBounce({
"X-Postmark-Server-Token": "",
"bounceid": 0
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - bounceid required
integer: The ID of the Bounce to activate.
- X-Postmark-Server-Token required
Output
- output BounceActivationResponse
bounces.bounceid.dump.get
Get bounce dump
postmarkapp_server.bounces.bounceid.dump.get({
"X-Postmark-Server-Token": "",
"bounceid": 0
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - bounceid required
integer: The ID for the bounce dump to retrieve.
- X-Postmark-Server-Token required
Output
- output BounceDumpResponse
getDeliveryStats
Get delivery stats
postmarkapp_server.getDeliveryStats({
"X-Postmark-Server-Token": ""
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate.
- X-Postmark-Server-Token required
Output
- output DeliveryStatsResponse
sendEmail
Send a single email
postmarkapp_server.sendEmail({
"X-Postmark-Server-Token": ""
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - body SendEmailRequest
- X-Postmark-Server-Token required
Output
- output SendEmailResponse
sendEmailBatch
Send a batch of emails
postmarkapp_server.sendEmailBatch({
"X-Postmark-Server-Token": ""
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - body SendEmailBatchRequest
- X-Postmark-Server-Token required
Output
- output SendEmailBatchResponse
sendEmailBatchWithTemplates
Send a batch of email using templates.
postmarkapp_server.sendEmailBatchWithTemplates({
"X-Postmark-Server-Token": "",
"body": null
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - body required SendEmailTemplatedBatchRequest
- X-Postmark-Server-Token required
Output
- output SendEmailBatchResponse
sendEmailWithTemplate
Send an email using a Template
postmarkapp_server.sendEmailWithTemplate({
"X-Postmark-Server-Token": "",
"body": null
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - body required EmailWithTemplateRequest
- X-Postmark-Server-Token required
Output
- output SendEmailResponse
searchInboundMessages
Inbound message search
postmarkapp_server.searchInboundMessages({
"X-Postmark-Server-Token": "",
"count": 0,
"offset": 0
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - count required
integer: Number of messages to return per request. Max 500. - offset required
integer: Number of messages to skip - recipient
string: Filter by the user who was receiving the email - fromemail
string: Filter by the sender email address - subject
string: Filter by email subject - mailboxhash
string: Filter by mailboxhash - tag
string: Filter by tag - status
string(values: blocked, processed, queued, failed, scheduled): Filter by status (blocked,processed,queued,failed,scheduled) - todate
string: Filter messages up to the date specified. e.g.2014-02-01 - fromdate
string: Filter messages starting from the date specified. e.g.2014-02-01
- X-Postmark-Server-Token required
Output
- output InboundSearchResponse
bypassRulesForInboundMessage
Bypass rules for a blocked inbound message
postmarkapp_server.bypassRulesForInboundMessage({
"X-Postmark-Server-Token": "",
"messageid": ""
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - messageid required
string: The ID of the message which should bypass inbound rules.
- X-Postmark-Server-Token required
Output
- output StandardPostmarkResponse
getInboundMessageDetails
Inbound message details
postmarkapp_server.getInboundMessageDetails({
"X-Postmark-Server-Token": "",
"messageid": ""
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - messageid required
string: The ID of the message for which to details will be retrieved.
- X-Postmark-Server-Token required
Output
retryInboundMessageProcessing
Retry a failed inbound message for processing
postmarkapp_server.retryInboundMessageProcessing({
"X-Postmark-Server-Token": "",
"messageid": ""
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - messageid required
string: The ID of the inbound message on which we should retry processing.
- X-Postmark-Server-Token required
Output
- output StandardPostmarkResponse
searchOutboundMessages
Outbound message search
postmarkapp_server.searchOutboundMessages({
"X-Postmark-Server-Token": "",
"count": 0,
"offset": 0
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - count required
integer: Number of messages to return per request. Max 500. - offset required
integer: Number of messages to skip - recipient
string: Filter by the user who was receiving the email - fromemail
string: Filter by the sender email address - tag
string: Filter by tag - status
string(values: queued, sent): Filter by status (queuedorsent) - todate
string: Filter messages up to the date specified. e.g.2014-02-01 - fromdate
string: Filter messages starting from the date specified. e.g.2014-02-01
- X-Postmark-Server-Token required
Output
- output OutboundSearchResponse
searchClicksForOutboundMessages
Clicks for a all messages
postmarkapp_server.searchClicksForOutboundMessages({
"X-Postmark-Server-Token": "",
"count": 0,
"offset": 0
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - count required
integer: Number of message clicks to return per request. Max 500. - offset required
integer: Number of messages to skip - recipient
string: Filter by To, Cc, Bcc - tag
string: Filter by tag - client_name
string: Filter by client name, i.e. Outlook, Gmail - client_company
string: Filter by company, i.e. Microsoft, Apple, Google - client_family
string: Filter by client family, i.e. OS X, Chrome - os_name
string: Filter by full OS name and specific version, i.e. OS X 10.9 Mavericks, Windows 7 - os_family
string: Filter by kind of OS used without specific version, i.e. OS X, Windows - os_company
string: Filter by company which produced the OS, i.e. Apple Computer, Inc., Microsoft Corporation - platform
string: Filter by platform, i.e. webmail, desktop, mobile - country
string: Filter by country messages were opened in, i.e. Denmark, Russia - region
string: Filter by full name of region messages were opened in, i.e. Moscow, New York - city
string: Filter by full name of region messages were opened in, i.e. Moscow, New York
- X-Postmark-Server-Token required
Output
- output MessageClickSearchResponse
getClicksForSingleOutboundMessage
Retrieve Message Clicks
postmarkapp_server.getClicksForSingleOutboundMessage({
"X-Postmark-Server-Token": "",
"messageid": "",
"count": 0,
"offset": 0
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - messageid required
string: The ID of the Outbound Message for which click statistics should be retrieved. - count required
integer: Number of message clicks to return per request. Max 500. - offset required
integer: Number of messages to skip.
- X-Postmark-Server-Token required
Output
- output MessageClickSearchResponse
searchOpensForOutboundMessages
Opens for all messages
postmarkapp_server.searchOpensForOutboundMessages({
"X-Postmark-Server-Token": "",
"count": 0,
"offset": 0
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - count required
integer: Number of message opens to return per request. Max 500. - offset required
integer: Number of messages to skip - recipient
string: Filter by To, Cc, Bcc - tag
string: Filter by tag - client_name
string: Filter by client name, i.e. Outlook, Gmail - client_company
string: Filter by company, i.e. Microsoft, Apple, Google - client_family
string: Filter by client family, i.e. OS X, Chrome - os_name
string: Filter by full OS name and specific version, i.e. OS X 10.9 Mavericks, Windows 7 - os_family
string: Filter by kind of OS used without specific version, i.e. OS X, Windows - os_company
string: Filter by company which produced the OS, i.e. Apple Computer, Inc., Microsoft Corporation - platform
string: Filter by platform, i.e. webmail, desktop, mobile - country
string: Filter by country messages were opened in, i.e. Denmark, Russia - region
string: Filter by full name of region messages were opened in, i.e. Moscow, New York - city
string: Filter by full name of region messages were opened in, i.e. Moscow, New York
- X-Postmark-Server-Token required
Output
- output MessageOpenSearchResponse
getOpensForSingleOutboundMessage
Retrieve Message Opens
postmarkapp_server.getOpensForSingleOutboundMessage({
"X-Postmark-Server-Token": "",
"messageid": "",
"count": 0,
"offset": 0
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - messageid required
string: The ID of the Outbound Message for which open statistics should be retrieved. - count required
integer: Number of message opens to return per request. Max 500. - offset required
integer: Number of messages to skip.
- X-Postmark-Server-Token required
Output
- output MessageOpenSearchResponse
getOutboundMessageDetails
Outbound message details
postmarkapp_server.getOutboundMessageDetails({
"X-Postmark-Server-Token": "",
"messageid": ""
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - messageid required
string: The ID of the message for which to retrieve details.
- X-Postmark-Server-Token required
Output
getOutboundMessageDump
Outbound message dump
postmarkapp_server.getOutboundMessageDump({
"X-Postmark-Server-Token": "",
"messageid": ""
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - messageid required
string: The ID of the message for which to retrieve a dump.
- X-Postmark-Server-Token required
Output
- output OutboundMessageDumpResponse
getCurrentServerConfiguration
Get Server Configuration
postmarkapp_server.getCurrentServerConfiguration({
"X-Postmark-Server-Token": ""
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate.
- X-Postmark-Server-Token required
Output
- output ServerConfigurationResponse
editCurrentServerConfiguration
Edit Server Configuration
postmarkapp_server.editCurrentServerConfiguration({
"X-Postmark-Server-Token": ""
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - body EditServerConfigurationRequest
- X-Postmark-Server-Token required
Output
- output ServerConfigurationResponse
getOutboundOverviewStatistics
Get outbound overview
postmarkapp_server.getOutboundOverviewStatistics({
"X-Postmark-Server-Token": ""
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - tag
string: Filter by tag - fromdate
string: Filter stats starting from the date specified. e.g.2014-01-01 - todate
string: Filter stats up to the date specified. e.g.2014-02-01
- X-Postmark-Server-Token required
Output
getBounceCounts
Get bounce counts
postmarkapp_server.getBounceCounts({
"X-Postmark-Server-Token": ""
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - tag
string: Filter by tag - fromdate
string: Filter stats starting from the date specified. e.g.2014-01-01 - todate
string: Filter stats up to the date specified. e.g.2014-02-01
- X-Postmark-Server-Token required
Output
- output
object- Days
array- items
object- Date
string - HardBounce
integer - SMTPApiError
integer - SoftBounce
integer - Transient
integer
- Date
- items
- HardBounce
integer - SMTPApiError
integer - SoftBounce
integer - Transient
integer
- Days
getOutboundClickCounts
Get click counts
postmarkapp_server.getOutboundClickCounts({
"X-Postmark-Server-Token": ""
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - tag
string: Filter by tag - fromdate
string: Filter stats starting from the date specified. e.g.2014-01-01 - todate
string: Filter stats up to the date specified. e.g.2014-02-01
- X-Postmark-Server-Token required
Output
- output DynamicResponse
getOutboundClickCountsByBrowserFamily
Get browser usage by family
postmarkapp_server.getOutboundClickCountsByBrowserFamily({
"X-Postmark-Server-Token": ""
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - tag
string: Filter by tag - fromdate
string: Filter stats starting from the date specified. e.g.2014-01-01 - todate
string: Filter stats up to the date specified. e.g.2014-02-01
- X-Postmark-Server-Token required
Output
- output
object
getOutboundClickCountsByLocation
Get clicks by body location
postmarkapp_server.getOutboundClickCountsByLocation({
"X-Postmark-Server-Token": ""
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - tag
string: Filter by tag - fromdate
string: Filter stats starting from the date specified. e.g.2014-01-01 - todate
string: Filter stats up to the date specified. e.g.2014-02-01
- X-Postmark-Server-Token required
Output
- output DynamicResponse
getOutboundClickCountsByPlatform
Get browser plaform usage
postmarkapp_server.getOutboundClickCountsByPlatform({
"X-Postmark-Server-Token": ""
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - tag
string: Filter by tag - fromdate
string: Filter stats starting from the date specified. e.g.2014-01-01 - todate
string: Filter stats up to the date specified. e.g.2014-02-01
- X-Postmark-Server-Token required
Output
- output DynamicResponse
getOutboundOpenCounts
Get email open counts
postmarkapp_server.getOutboundOpenCounts({
"X-Postmark-Server-Token": ""
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - tag
string: Filter by tag - fromdate
string: Filter stats starting from the date specified. e.g.2014-01-01 - todate
string: Filter stats up to the date specified. e.g.2014-02-01
- X-Postmark-Server-Token required
Output
- output
object- Days
array- items
object- Date
string - Opens
integer - Unique
integer
- Date
- items
- Opens
integer - Unique
integer
- Days
getOutboundOpenCountsByEmailClient
Get email client usage
postmarkapp_server.getOutboundOpenCountsByEmailClient({
"X-Postmark-Server-Token": ""
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - tag
string: Filter by tag - fromdate
string: Filter stats starting from the date specified. e.g.2014-01-01 - todate
string: Filter stats up to the date specified. e.g.2014-02-01
- X-Postmark-Server-Token required
Output
- output
object- Days
array- items DynamicResponse
- Desktop
integer - Mobile
integer - Unknown
integer - WebMail
integer
- Days
getOutboundOpenCountsByPlatform
Get email platform usage
postmarkapp_server.getOutboundOpenCountsByPlatform({
"X-Postmark-Server-Token": ""
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - tag
string: Filter by tag - fromdate
string: Filter stats starting from the date specified. e.g.2014-01-01 - todate
string: Filter stats up to the date specified. e.g.2014-02-01
- X-Postmark-Server-Token required
Output
- output
object- Days
array- items
object- Date
string - Desktop
integer - Mobile
integer - Unknown
integer - WebMail
integer
- Date
- items
- Desktop
integer - Mobile
integer - Unknown
integer - WebMail
integer
- Days
getSentCounts
Get sent counts
postmarkapp_server.getSentCounts({
"X-Postmark-Server-Token": ""
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - tag
string: Filter by tag - fromdate
string: Filter stats starting from the date specified. e.g.2014-01-01 - todate
string: Filter stats up to the date specified. e.g.2014-02-01
- X-Postmark-Server-Token required
Output
- output SentCountsResponse
getSpamComplaints
Get spam complaints
postmarkapp_server.getSpamComplaints({
"X-Postmark-Server-Token": ""
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - tag
string: Filter by tag - fromdate
string: Filter stats starting from the date specified. e.g.2014-01-01 - todate
string: Filter stats up to the date specified. e.g.2014-02-01
- X-Postmark-Server-Token required
Output
- output
object- Days
array- items
object- Date
string - SpamComplaint
integer
- Date
- items
- SpamComplaint
integer
- Days
getTrackedEmailCounts
Get tracked email counts
postmarkapp_server.getTrackedEmailCounts({
"X-Postmark-Server-Token": ""
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - tag
string: Filter by tag - fromdate
string: Filter stats starting from the date specified. e.g.2014-01-01 - todate
string: Filter stats starting from the date specified. e.g.2014-01-01
- X-Postmark-Server-Token required
Output
- output
object- Days
array- items
object- Date
string - Tracked
integer
- Date
- items
- Tracked
integer
- Days
listTemplates
Get the Templates associated with this Server
postmarkapp_server.listTemplates({
"X-Postmark-Server-Token": "",
"Count": 0,
"Offset": 0
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - Count required
number: The number of Templates to return - Offset required
number: The number of Templates to "skip" before returning results.
- X-Postmark-Server-Token required
Output
- output TemplateListingResponse
templates.post
Create a Template
postmarkapp_server.templates.post({
"X-Postmark-Server-Token": "",
"body": null
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - body required CreateTemplateRequest
- X-Postmark-Server-Token required
Output
- output TemplateRecordResponse
testTemplateContent
Test Template Content
postmarkapp_server.testTemplateContent({
"X-Postmark-Server-Token": ""
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - body TemplateValidationRequest
- X-Postmark-Server-Token required
Output
- output TemplateValidationResponse
deleteTemplate
Delete a Template
postmarkapp_server.deleteTemplate({
"X-Postmark-Server-Token": "",
"templateIdOrAlias": ""
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - templateIdOrAlias required
string: The 'TemplateID' or 'Alias' value for the Template you wish to delete.
- X-Postmark-Server-Token required
Output
- output TemplateDetailResponse
getSingleTemplate
Get a Template
postmarkapp_server.getSingleTemplate({
"X-Postmark-Server-Token": "",
"templateIdOrAlias": ""
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - templateIdOrAlias required
string: The 'TemplateID' or 'Alias' value for the Template you wish to retrieve.
- X-Postmark-Server-Token required
Output
- output TemplateDetailResponse
updateTemplate
Update a Template
postmarkapp_server.updateTemplate({
"X-Postmark-Server-Token": "",
"templateIdOrAlias": "",
"body": null
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - templateIdOrAlias required
string: The 'TemplateID' or 'Alias' value for the Template you wish to update. - body required EditTemplateRequest
- X-Postmark-Server-Token required
Output
- output TemplateRecordResponse
listInboundRules
List inbound rule triggers
postmarkapp_server.listInboundRules({
"X-Postmark-Server-Token": "",
"count": 0,
"offset": 0
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - count required
integer: Number of records to return per request. - offset required
integer: Number of records to skip.
- X-Postmark-Server-Token required
Output
- output
object- InboundRules
array- items
object- ID
integer - Rule
string
- ID
- items
- TotalCount
integer
- InboundRules
createInboundRule
Create an inbound rule trigger
postmarkapp_server.createInboundRule({
"X-Postmark-Server-Token": ""
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - body CreateInboundRuleRequest
- X-Postmark-Server-Token required
Output
- output
object- ID
integer - Rule
string
- ID
deleteInboundRule
Delete a single trigger
postmarkapp_server.deleteInboundRule({
"X-Postmark-Server-Token": "",
"triggerid": 0
}, context)Input
- input
object- X-Postmark-Server-Token required
string: The token associated with the Server on which this request will operate. - triggerid required
integer: The ID of the Inbound Rule that should be deleted.
- X-Postmark-Server-Token required
Output
- output StandardPostmarkResponse
Definitions
Attachment
- Attachment
object: An attachment for an email message.- Content
string - ContentID
string - ContentType
string - Name
string
- Content
AttachmentCollection
- AttachmentCollection
array- items Attachment
BounceActivationResponse
- BounceActivationResponse
object- Bounce BounceInfoResponse
- Message
string
BounceCountElement
- BounceCountElement
object- Count
integer - Name
string - Type
string
- Count
BounceDumpResponse
- BounceDumpResponse
object- Body
string: Raw source of bounce. If no dump is available this will return an empty string.
- Body
BounceInfoResponse
- BounceInfoResponse
object- BouncedAt
string - CanActivate
boolean - Content
string - Description
string - Details
string - DumpAvailable
boolean - Email
string - ID
string - Inactive
boolean - MessageID
string - Name
string - Subject
string - Tag
string - Type
string - TypeCode
integer
- BouncedAt
BounceSearchResponse
- BounceSearchResponse
object- Bounces
array- items BounceInfoResponse
- TotalCount
integer
- Bounces
CreateInboundRuleRequest
- CreateInboundRuleRequest
object- Rule
string
- Rule
CreateTemplateRequest
- CreateTemplateRequest
object: The contents required for creating a new template.- Alias
string: The optional string identifier for referring to this Template (numbers, letters, and '.', '-', '_' characters, starts with a letter). - HtmlBody
string: The HTML template definition for this Template. - Name required
string: The friendly display name for the template. - Subject required
string: The Subject template definition for this Template. - TextBody
string: The Text template definition for this Template.
- Alias
DeliveryStatsResponse
- DeliveryStatsResponse
object- Bounces
array- items BounceCountElement
- InactiveMails
integer
- Bounces
DynamicResponse
EditServerConfigurationRequest
- EditServerConfigurationRequest
object- BounceHookUrl
string - ClickHookUrl
string: Webhook url allowing real-time notification when tracked links are clicked. - Color
string(values: purple, blue, turqoise, green, red, yellow, grey) - DeliveryHookUrl
string - InboundDomain
string - InboundHookUrl
string - InboundSpamThreshold
integer - Name
string - OpenHookUrl
string - PostFirstOpenOnly
boolean - RawEmailEnabled
boolean - SmtpApiActivated
boolean - TrackLinks
string(values: None, HtmlAndText, HtmlOnly, TextOnly) - TrackOpens
boolean
- BounceHookUrl
EditTemplateRequest
- EditTemplateRequest
object: The contents required for creating a new template.- Alias
string: The optional string identifier for referring to this Template (numbers, letters, and '.', '-', '_' characters, starts with a letter). - HtmlBody
string: The HTML template definition for this Template. - Name
string: The friendly display name for the template. - Subject
string: The Subject template definition for this Template. - TextBody
string: The Text template definition for this Template.
- Alias
EmailNameAddressPair
- EmailNameAddressPair
object- Email
string - Name
string
- Email
EmailWithTemplateRequest
- EmailWithTemplateRequest
object- Attachments AttachmentCollection
- Bcc
string - Cc
string - From required
string - Headers HeaderCollection
- InlineCss
boolean - ReplyTo
string - Tag
string - TemplateAlias required
string: Required if 'TemplateId' is not specified. - TemplateId required
integer: Required if 'TemplateAlias' is not specified. - TemplateModel required
object - To required
string - TrackLinks
string(values: None, HtmlAndText, HtmlOnly, TextOnly): Replace links in content to enable "click tracking" stats. Default is 'null', which uses the server's LinkTracking setting'. - TrackOpens
boolean: Activate open tracking for this email.
ExtendedMessageClickEventInformation
- ExtendedMessageClickEventInformation
object- ClickLocation
string - Client
object- Company
string - Family
string - Name
string
- Company
- Geo
object- City
string - Coords
string - Country
string - CountryISOCode
string - IP
string - Region
string - RegionISOCode
string - Zip
string
- City
- MessageID
string - OS
object- Company
string - Family
string - Name
string
- Company
- OriginalLink
string - Platform
string - ReceivedAt
string - Recipient
string - Tag
string - UserAgent
string
- ClickLocation
ExtendedMessageOpenEventInformation
- ExtendedMessageOpenEventInformation
object- Client
object- Company
string - Family
string - Name
string
- Company
- FirstOpen
boolean - Geo
object- City
string - Coords
string - Country
string - CountryISOCode
string - IP
string - Region
string - RegionISOCode
string - Zip
string
- City
- MessageID
string - OS
object- Company
string - Family
string - Name
string
- Company
- Platform
string - ReceivedAt
string - Recipient
string - Tag
string - UserAgent
string
- Client
HeaderCollection
- HeaderCollection
array- items MessageHeader
InboundMessageDetail
- InboundMessageDetail
object- Attachments AttachmentCollection
- Cc
string - CcFull
array- items EmailNameAddressPair
- Date
string - From
string - FromFull
object- Email
string - Name
string
- Email
- FromName
string - MailboxHash
string - MessageID
string - OriginalRecipient
string - ReplyTo
string - Status
string - Subject
string - Tag
string - To
string - ToFull
array- items EmailNameAddressPair
InboundMessageFullDetailsResponse
- InboundMessageFullDetailsResponse
object- Attachments AttachmentCollection
- BlockedReason
string - Cc
string - CcFull
array- items EmailNameAddressPair
- Date
string - From
string - FromFull
object- Email
string - Name
string
- Email
- FromName
string - Headers HeaderCollection
- HtmlBody
string - MailboxHash
string - MessageID
string - OriginalRecipient
string - ReplyTo
string - Status
string - Subject
string - Tag
string - TextBody
string - To
string - ToFull
array- items EmailNameAddressPair
InboundSearchResponse
- InboundSearchResponse
object- InboundMessages
array- items InboundMessageDetail
- TotalCount
integer
- InboundMessages
MessageClickSearchResponse
- MessageClickSearchResponse
object- Clicks
array - TotalCount
integer
- Clicks
MessageEventDetails
- MessageEventDetails
object- Details
object- BounceID
string - DeliveryMessage
string - DestinationIP
string - DestinationServer
string - Summary
string
- BounceID
- ReceivedAt
string - Recipient
string - Type
string
- Details
MessageHeader
- MessageHeader
object: A single header for an email message.- Name
string: The header's name. - Value
string: The header's value.
- Name
MessageOpenSearchResponse
- MessageOpenSearchResponse
object- Opens
array - TotalCount
integer
- Opens
OutboundMessageDetail
- OutboundMessageDetail
object- Attachments AttachmentCollection
- Bcc
array- items EmailNameAddressPair
- Cc
array- items EmailNameAddressPair
- From
string - MessageID
string - ReceivedAt
string - Recipients
array- items
string
- items
- Status
string - Subject
string - Tag
string - To
array- items EmailNameAddressPair
- TrackLinks
string(values: None, HtmlAndText, HtmlOnly, TextOnly) - TrackOpens
boolean
OutboundMessageDetailsResponse
- OutboundMessageDetailsResponse
object- Attachments AttachmentCollection
- Bcc
array- items EmailNameAddressPair
- Body
string - Cc
array- items EmailNameAddressPair
- From
string - HtmlBody
string - MessageEvents
array- items MessageEventDetails
- MessageID
string - ReceivedAt
string - Recipients
array- items
string
- items
- Status
string - Subject
string - Tag
string - TextBody
string - To
array- items EmailNameAddressPair
- TrackLinks
string(values: None, HtmlAndText, HtmlOnly, TextOnly) - TrackOpens
boolean
OutboundMessageDumpResponse
- OutboundMessageDumpResponse
object- Body
string: Raw source of message. If no dump is available this will return an empty string.
- Body
OutboundOverviewStatsResponse
- OutboundOverviewStatsResponse
object- BounceRate
integer - Bounced
integer - Opens
integer - SMTPAPIErrors
integer - Sent
integer - SpamComplaints
integer - SpamComplaintsRate
integer - TotalClicks
integer - TotalTrackedLinksSent
integer - Tracked
integer - UniqueLinksClicked
integer - UniqueOpens
integer - WithClientRecorded
integer - WithLinkTracking
integer - WithOpenTracking
integer - WithPlatformRecorded
integer
- BounceRate
OutboundSearchResponse
- OutboundSearchResponse
object- Messages
array- items OutboundMessageDetail
- TotalCount
integer
- Messages
SendEmailBatchRequest
- SendEmailBatchRequest
array- items SendEmailRequest
SendEmailBatchResponse
- SendEmailBatchResponse
array- items SendEmailResponse
SendEmailRequest
- SendEmailRequest
object- Attachments AttachmentCollection
- Bcc
string: Bcc recipient email address. Multiple addresses are comma seperated. Max 50. - Cc
string: Recipient email address. Multiple addresses are comma seperated. Max 50. - From
string: The sender email address. Must have a registered and confirmed Sender Signature. - Headers HeaderCollection
- HtmlBody
string: If no TextBody specified HTML email message - ReplyTo
string: Reply To override email address. Defaults to the Reply To set in the sender signature. - Subject
string: Email Subject - Tag
string: Email tag that allows you to categorize outgoing emails and get detailed statistics. - TextBody
string: If no HtmlBody specified Plain text email message - To
string: Recipient email address. Multiple addresses are comma seperated. Max 50. - TrackLinks
string(values: None, HtmlAndText, HtmlOnly, TextOnly): Replace links in content to enable "click tracking" stats. Default is 'null', which uses the server's LinkTracking setting'. - TrackOpens
boolean: Activate open tracking for this email.
SendEmailResponse
- SendEmailResponse
object: The standard response when a postmark message is sent- ErrorCode
integer - Message
string - MessageID
string - SubmittedAt
string - To
string
- ErrorCode
SendEmailTemplatedBatchRequest
- SendEmailTemplatedBatchRequest
object- Messages
array- items EmailWithTemplateRequest
- Messages
SentCountsResponse
- SentCountsResponse
object: The result of a get sent counts operation.- Days
array- items
object- Date
string - Sent
integer
- Date
- items
- Sent
integer
- Days
ServerConfigurationResponse
- ServerConfigurationResponse
object- ApiTokens
array- items
string
- items
- BounceHookUrl
string - ClickHookUrl
string - Color
string(values: purple, blue, turqoise, green, red, yellow, grey) - DeliveryHookUrl
string - ID
integer - InboundAddress
string - InboundDomain
string - InboundHash
string - InboundHookUrl
string - InboundSpamThreshold
integer - Name
string - OpenHookUrl
string - PostFirstOpenOnly
boolean - RawEmailEnabled
boolean - ServerLink
string - SmtpApiActivated
boolean - TrackLinks
string(values: None, HtmlAndText, HtmlOnly, TextOnly) - TrackOpens
boolean
- ApiTokens
StandardPostmarkResponse
- StandardPostmarkResponse
object: A Postmark API error.- ErrorCode
integer - Message
string
- ErrorCode
TemplateDetailResponse
- TemplateDetailResponse
object- Active
boolean: Indicates that this template may be used for sending email. - Alias
string: The user-supplied alias for this template. - AssociatedServerId
integer: The ID of the Server with which this template is associated. - HtmlBody
string: The content to use for the HtmlBody when this template is used to send email. - Name
string: The display name for the template. - Subject
string: The content to use for the Subject when this template is used to send email. - TemplateID
integer: The ID associated with the template. - TextBody
string: The content to use for the TextBody when this template is used to send email.
- Active
TemplateListingResponse
- TemplateListingResponse
object- Templates API
array: Basic information for each Template returned from the query.- items TemplateRecordResponse
- TotalCount
number: The total number of Templates API associated with this server.
- Templates API
TemplateRecordResponse
- TemplateRecordResponse
object- Active
boolean: True if this template is currently available for use. - Alias
string: The user-supplied alias for this template. - Name
string: The display name for this template. - TemplateId
number: The associated ID for this template.
- Active
TemplateValidationError
- TemplateValidationError
object- CharacterPosition
integer - Line
integer - Message
string
- CharacterPosition
TemplateValidationRequest
- TemplateValidationRequest
object- HtmlBody
string: The html body content to validate. Must be specified if Subject or - InlineCssForHtmlTestRender
boolean: When HtmlBody is specified, the test render will have style blocks - Subject
string: The subject content to validate. Must be specified if HtmlBody or - TestRenderModel
object: The model to be used when rendering test content. - TextBody
string: The text body content to validate. Must be specified if HtmlBody or
- HtmlBody
TemplateValidationResponse
- TemplateValidationResponse
object- AllContentIsValid
boolean - HtmlBody TemplateValidationResult
- Subject TemplateValidationResult
- SuggestedTemplateModel
object - TextBody TemplateValidationResult
- AllContentIsValid
TemplateValidationResult
- TemplateValidationResult
object- ContentIsValid
boolean - RenderedContent
string - ValidationErrors
array- items TemplateValidationError
- ContentIsValid
