Managed secret providers
Neon
Connect Neon to Alter Vault for secure API access
Overview
Section titled “Overview”Use Neon credentials to make authenticated API calls through Alter Vault without exposing API keys in code.
| Property | Value |
|---|---|
| Provider ID | neon |
| Category | Database |
| Credential Type | API Key |
Step 1: Get Credentials
Section titled “Step 1: Get Credentials”Log in to the Neon Console
Log in to the Neon Console.
Open API keys
Go to Account settings > API keys — or Organization settings for an org/project-scoped key.
Create a key
Click Create new API key and name it.
Copy the key
Copy the key (starts with napi_) — it is only shown once.
Step 2: Add to Alter Vault
Section titled “Step 2: Add to Alter Vault”Open the Developer Portal
Go to portal.alterauth.com and navigate to the application.
Add Neon
Go to Managed Secrets > Add Provider > Neon.
Enter credentials
Paste your API Key into the credential field.
Save
Click Save. You’ll receive a grant_id to use with the SDK.
Using in Code
Section titled “Using in Code”response = await alter_app.request( HttpMethod.GET, "https://console.neon.tech/api/v2/projects", grant_id="YOUR_GRANT_ID",)- The Neon API manages projects, branches, computes, databases, and roles — ideal for provisioning an isolated Postgres branch per agent or per session.
- Running SQL uses the Postgres protocol or Neon’s serverless driver against the branch’s connection string, not this API key.