What Is the Postmark API?
The Postmark API enables developers to easily integrate programmatic emailing into their applications. With the API, developers can create, send, and track transactional emails that are designed to enhance user experience and user engagement. The API also provides developers with access to powerful analytics and insights, such as open/click rates, spam complaints, bounces, and unsubscribes.
The Postmark API allows developers to easily incorporate automated email notifications into their applications. Some examples of what you can build using the API are:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
postmark: {
type: "app",
app: "postmark",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.postmarkapp.com/server`,
headers: {
"X-Postmark-Server-Token": `${this.postmark.$auth.api_key}`,
"Accept": `application/json`,
},
})
},
})
Emit new event when an email is opened by a recipient (See docs here)
Emit new event when an email is received by the Postmark server (See docs here)
Send a single email with Postmark using a template (See docs here)
Postmark uses API keys for authentication. When you connect your Postmark account, Pipedream securely stores the keys so you can easily authenticate to Postmark APIs in both code and no-code steps.