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