Mailcoach connects your newsletter marketing to a reliable email delivery provider.
Go to siteimport { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mailcoach: {
type: "app",
app: "mailcoach",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.mailcoach.$auth.domain}.mailcoach.app/api/user`,
headers: {
Authorization: `Bearer ${this.mailcoach.$auth.api_token}`,
"Accept": `application/json`,
"Content-Type": `application/json`,
},
})
},
})
Mailcoach uses API keys for authentication. When you connect your Mailcoach account, Pipedream securely stores the keys so you can easily authenticate to Mailcoach APIs in both code and no-code steps.
To retrieve your API Token,
Your domain is 1234
if your Mailcoach URL is https://1234.mailcoach.app/dashboard