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