import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mails_so: {
type: "app",
app: "mails_so",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.mails.so/v1/validate`,
headers: {
"x-mails-api-key": `${this.mails_so.$auth.api_key}`,
},
params: {
email: `john.smith@example.com`,
},
})
},
})
Send an email address to be validated by the API. See the documentation
mails.so uses API keys for authentication. When you connect your mails.so account, Pipedream securely stores the keys so you can easily authenticate to mails.so APIs in both code and no-code steps.