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