import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
exa: {
type: "app",
app: "exa",
}
},
async run({steps, $}) {
const data = {
"query": `Tell me about Pipedream — what makes it great?`,
}
return await axios($, {
method: "post",
url: `https://api.exa.ai/search`,
headers: {
"x-api-key": `${this.exa.$auth.api_key}`,
},
data,
})
},
})
Exa uses API keys for authentication. When you connect your Exa account, Pipedream securely stores the keys so you can easily authenticate to Exa APIs in both code and no-code steps.