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