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