import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
serenity_ai_hub: {
type: "app",
app: "serenity_ai_hub",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.serenitystar.ai/api/v2/Account`,
headers: {
"content-type": `application/json-patch+json`,
"x-api-key": `${this.serenity_ai_hub.$auth.api_key}`,
},
})
},
})
Serenity* AI Hub uses API keys for authentication. When you connect your Serenity* AI Hub account, Pipedream securely stores the keys so you can easily authenticate to Serenity* AI Hub APIs in both code and no-code steps.