import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
neon_api_keys: {
type: "app",
app: "neon_api_keys",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://console.neon.tech/api/v2/projects`,
headers: {
Authorization: `Bearer ${this.neon_api_keys.$auth.api_key}`,
"Accept": `application/json`,
"Content-Type": `application/json`,
},
})
},
})
Neon (API Keys) uses API keys for authentication. When you connect your Neon (API Keys) account, Pipedream securely stores the keys so you can easily authenticate to Neon (API Keys) APIs in both code and no-code steps.
Sign in and copy your API key from your Developer Settings.