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