import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mailrelay: {
type: "app",
app: "mailrelay",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.mailrelay.$auth.domain}/api/v1/package`,
headers: {
"x-auth-token": `${this.mailrelay.$auth.api_key}`,
},
})
},
})
Mailrelay uses API keys for authentication. When you connect your Mailrelay account, Pipedream securely stores the keys so you can easily authenticate to Mailrelay APIs in both code and no-code steps.