import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
crossmint: {
type: "app",
app: "crossmint",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.crossmint.$auth.environment}.crossmint.com/api/v1-alpha1/projects/${this.crossmint.$auth.project_id}/usage`,
headers: {
"x-api-key": `${this.crossmint.$auth.api_key}`,
},
params: {
dimension: `monthly_active_wallets`,
startDate: `2025-01-01`,
},
})
},
})
Crossmint uses API keys for authentication. When you connect your Crossmint account, Pipedream securely stores the keys so you can easily authenticate to Crossmint APIs in both code and no-code steps.