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