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