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