Postmark API
  1. Sending API
Postmark API
  • Bounces API
    • Get bounces
      GET
    • Get a single bounce
      GET
    • Activate a bounce
      PUT
    • Get bounce dump
      GET
    • Get delivery stats
      GET
  • Sending API
    • Send a single email
      POST
    • Send a batch of emails
      POST
    • Send a batch of email using templates.
      POST
    • Send an email using a Template
      POST
  • Messages API
    • Inbound message search
      GET
    • Bypass rules for a blocked inbound message
      PUT
    • Inbound message details
      GET
    • Retry a failed inbound message for processing
      PUT
    • Outbound message search
      GET
    • Clicks for a all messages
      GET
    • Retrieve Message Clicks
      GET
    • Opens for all messages
      GET
    • Retrieve Message Opens
      GET
    • Outbound message details
      GET
    • Outbound message dump
      GET
  • Server Configuration API
    • Get Server Configuration
      GET
    • Edit Server Configuration
      PUT
  • Stats API
    • Get outbound overview
      GET
    • Get bounce counts
      GET
    • Get click counts
      GET
    • Get browser usage by family
      GET
    • Get clicks by body location
      GET
    • Get browser plaform usage
      GET
    • Get email open counts
      GET
    • Get email client usage
      GET
    • Get email platform usage
      GET
    • Get sent counts
      GET
    • Get spam complaints
      GET
    • Get tracked email counts
      GET
  • Templates API
    • Get the Templates associated with this Server
    • Create a Template
    • Test Template Content
    • Delete a Template
    • Get a Template
    • Update a Template
  • Inbound Rules API
    • List inbound rule triggers
    • Create an inbound rule trigger
    • Delete a single trigger
  1. Sending API

Send a batch of email using templates.

POST
/email/batchWithTemplates
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '//api.postmarkapp.com//email/batchWithTemplates' \
--header 'X-Postmark-Server-Token;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "Messages": [
        {
            "Attachments": [
                {
                    "Content": "string",
                    "ContentID": "string",
                    "ContentType": "string",
                    "Name": "string"
                }
            ],
            "Bcc": "user@example.com",
            "Cc": "user@example.com",
            "From": "user@example.com",
            "Headers": [
                {
                    "Name": "string",
                    "Value": "string"
                }
            ],
            "InlineCss": true,
            "ReplyTo": "string",
            "Tag": "string",
            "TemplateAlias": "string",
            "TemplateId": 0,
            "TemplateModel": {},
            "To": "user@example.com",
            "TrackLinks": "None",
            "TrackOpens": true
        }
    ]
}'
Response Response Example
200 - Example 1
[
    {
        "ErrorCode": 0,
        "Message": "string",
        "MessageID": "string",
        "SubmittedAt": "2019-08-24T14:15:22Z",
        "To": "string"
    }
]

Request

Header Params

Body Params application/json

Examples

Responses

🟢200OK
application/json
Body

🟠422422
🔴500500
Modified at 2023-08-16 02:49:25
Previous
Send a batch of emails
Next
Send an email using a Template
Built with