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