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