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