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