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