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