Create a client.
The token for the server that you wish to interact with.
Optional
configOptions: ConfigurationOptions to customize the behavior of the this client.
Activate email address that was deactivated due to a Bounce.
The ID of the Bounce for which you wish to activate the associated email.
Optional
callback: Callback<BounceActivationResponse>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Archive a message stream on the associated server.
Optional
callback: Callback<MessageStreamArchiveResponse>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Cause an Inbound Message to bypass filtering rules defined on this Client's associated Server.
The ID of the Inbound Message for which you wish to bypass the filtering rules.
Optional
callback: Callback<DefaultResponse>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Create an Inbound Rule Trigger.
Configuration options to be used when creating this Trigger.
Optional
callback: Callback<InboundRule>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Create a message stream on the associated server.
Configuration options to be used when creating message stream on the server.
Optional
callback: Callback<MessageStream>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Add email addresses to a suppressions list on a message stream on a server.
Select message stream
Suppressions you wish to add.
Optional
callback: Callback<SuppressionStatuses>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Create a new template on the associated server.
Configuration options to be used to create the Template.
Optional
callback: Callback<Template>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Create a Webhook on the associated server.
Configuration options to be used when creating Webhook trigger.
Optional
callback: Callback<Webhook>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Delete an Inbound Rule Trigger.
The ID of the Inbound Rule Trigger you wish to delete.
Optional
callback: Callback<DefaultResponse>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Delete email addresses from a suppressions list on a message stream on a server.
Select message stream
Suppressions you wish to delete.
Optional
callback: Callback<SuppressionStatuses>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Delete a template associated with this server.
ID or template alias you wish to delete.
Optional
callback: Callback<DefaultResponse>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Delete an existing Webhook.
The ID of the Webhook you wish to delete.
Optional
callback: Callback<DefaultResponse>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Update message stream on the associated server.
Id of the webhook you wish to update.
Webhook options you wish to update.
Optional
callback: Callback<MessageStream>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Modify the Server associated with this Client.
The options you wish to modify.
Optional
callback: Callback<Server>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Update a template on the associated server.
Id or alias of the template you wish to update.
Template options you wish to update.
Optional
callback: Callback<Template>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Update Webhook on the associated server.
Id of the webhook you wish to update.
Webhook options you wish to update.
Optional
callback: Callback<Webhook>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Get statistiscs on emails that bounced after being sent from the Server associated with this Client.
Optional filtering parameters.
Optional
callback: Callback<BounceCounts>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Get a Bounce Dump for a specific Bounce.
The ID of the Bounce for which you wish to retrieve Bounce Dump.
Optional
callback: Callback<BounceDump>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Get a batch of bounces.
Optional filtering parameters.
Optional
callback: Callback<Bounces>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Get browser family statistics for tracked links for messages sent from the Server associated with this Client.
Optional filtering parameters.
Optional
callback: Callback<BrowserUsageCounts>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Get total clicks statistics for tracked links for messages sent from the Server associated with this Client.
Optional filtering parameters.
Optional
callback: Callback<ClickCounts>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Get click location (in HTML or Text body of the email) statistics for tracked links for messages sent from the Server associated with this Client.
Optional filtering parameters.
Optional
callback: Callback<ClickLocationCounts>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Get browser platform statistics for tracked links for messages sent from the Server associated with this Client.
Optional filtering parameters.
Optional
callback: Callback<ClickPlatformUsageCounts>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Get bounce statistic information for the associated Server.
Optional
callback: Callback<DeliveryStatistics>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Get statistics on which Email Clients were used to open messages sent from the Server associated with this Client.
Optional filtering parameters.
Optional
callback: Callback<EmailClientUsageCounts>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Get Open statistics for messages sent from the Server associated with this Client.
Optional filtering parameters.
Optional
callback: Callback<OpenCounts>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Get Email Client Platform statistics for messages sent from the Server associated with this Client.
Optional filtering parameters.
Optional
callback: Callback<EmailPlaformUsageCounts>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Get Read Time statistics for messages sent from the Server associated with this Client.
Optional filtering parameters.
Optional
callback: Callback<EmailReadTimesCounts>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Get details for a specific Inbound Message.
The ID of the Inbound Message you wish to retrieve.
Optional
callback: Callback<InboundMessageDetails>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Get a batch of Inbound Messages.
Optional filtering parameters.
Optional
callback: Callback<InboundMessages>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Get a list of Inbound Rule Triggers.
Optional filtering parameters.
Optional
callback: Callback<InboundRules>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Get the Clicks for Outbound Messages.
Optional filtering parameters.
Optional
callback: Callback<OutboundMessageClicks>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Get Click information for a single Outbound Message.
The MessageID for which clicks should be retrieved.
Optional filtering parameters.
Optional
callback: Callback<OutboundMessageClicks>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Get the Opens for Outbound Messages.
Optional filtering parameters.
Optional
callback: Callback<OutboundMessageOpens>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Get details of Opens for specific Outbound Message.
Message ID of the message for which you wish to retrieve Opens.
Optional
callback: Callback<OutboundMessageOpens>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Get details for a specific message stream on a server.
The ID of the message stream you wish to retrieve.
Optional
callback: Callback<MessageStream>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Get the list of message streams on a server.
Optional
callback: Callback<MessageStreams>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Get details for a specific Outbound Message.
The ID of the OutboundMessage you wish to retrieve.
Optional
callback: Callback<OutboundMessageDetails>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Get details for a specific Outbound Message.
The ID of the OutboundMessage you wish to retrieve.
Optional
callback: Callback<OutboundMessageDump>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Get a batch of Outbound Messages.
Optional filtering parameters.
Optional
callback: Callback<OutboundMessages>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Get overview statistics on Outbound Messages sent from the Server associated with this Client.
Optional filtering parameters.
Optional
callback: Callback<OutboundStatistics>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Get statistics on email sent from the Server associated with this Client.
Optional filtering parameters.
Optional
callback: Callback<SentCounts>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Get SPAM complaint statistics for email sent from the Server associated with this Client.
Optional filtering parameters.
Optional
callback: Callback<SpamCounts>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Get the list of suppressions for a message stream on a server.
Select message stream
Optional
callback: Callback<Suppressions>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Get the list of templates associated with this server.
Optional filtering options.
Optional
callback: Callback<Templates>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Get email tracking statistics for messages sent from the Server associated with this Client.
Optional filtering parameters.
Optional
callback: Callback<TrackedEmailCounts>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Get the list of Webhooks for specific server.
Optional filtering parameters
Optional
callback: Callback<Webhooks>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Request that Postmark retry POSTing to the Inbound Hook for the specified message.
The ID of the Inbound Message for which you wish to retry the inbound hook.
Optional
callback: Callback<DefaultResponse>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Send a single email message.
Email message to send.
Optional
callback: Callback<MessageSendingResponse>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Send a batch of email messages.
An array of messages to send.
Optional
callback: Callback<MessageSendingResponse[]>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Send a batch of template email messages.
An array of templated messages you wish to send using this Client.
Optional
callback: Callback<MessageSendingResponse[]>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Send a message using a template.
Message you wish to send.
Optional
callback: Callback<MessageSendingResponse>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Unarchive a message stream on the associated server.
Optional
callback: Callback<MessageStreamUnarchiveResponse>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Validate template markup to verify that it will be parsed. Also provides a recommended template model to be used when sending using the specified template content.
The template content you wish to validate.
Optional
callback: Callback<TemplateValidation>If the callback is provided, it will be passed to the resulting promise as a continuation.
A promise that will complete when the API responds (or an error occurs).
Server client class that can be used to interact with an individual Postmark Server.