Profile Requirements

To deliver a message to a recipient over Postmark, Courier must be provided the recipient's email address. This value should be included in the recipient profile as email.

// Recipient Profile
{
  "email": "[email protected]"
}

Override

You can use a provider override to replace what we send to Postmark's Email API. For example, you can add an attachment to your request:

{
  "event": "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
  "recipient": "abc123",
  "profile": {
    "email": "[email protected]",
  },
  "override": {
    "postmark": {
      "body": {
        "Attachments": [
          {
            "Name": "readme.txt",
            "Content": "dGVzdCBjb250ZW50",
            "ContentType": "text/plain"
          }
        ]
      }
    }
  }
}

The override.postmark can be used to replace what we send to Postmark's Email API. Note: the override does not replace the entire object, only the elements that you define in the body of the override. You can see all the available options by visiting the Postmark API docs.


Did this page help you?