Mailersend is a great tool for building email marketing campaigns. With Mailersend, you can easily create beautiful email newsletters, manage your subscribers, and track the performance of your campaigns.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mailersend: {
type: "app",
app: "mailersend",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.mailersend.com/v1/domains`,
headers: {
Authorization: `Bearer ${this.mailersend.$auth.api_token}`,
},
})
},
})
Mailersend uses API keys for authentication. When you connect your Mailersend account, Pipedream securely stores the keys so you can easily authenticate to Mailersend APIs in both code and no-code steps.
API tokens are generated for sending domains and can have different permissions to limit which areas of your account they may be used to access. See docs.