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