Providers / Neon

Databases

Neon API keys and credentials

What every Neon credential a founder holds does, whether it expires, and what tends to break. Each fact links to Neon's own docs.

Last checked 2026-11-06 · neon.com

At a glance

CredentialExpiryPermissions
API key (personal, organization, or project-scoped)Doesn't expireCan be scoped
Neon Auth API key (beta SDK)You chooseNot documented
Postgres role passwordNot documentedNot documented
Neon Console loginNot documented–

Each credential

API key (personal, organization, or project-scoped)

Docs state keys remain valid until revoked and do not expire or rotate on a schedule; rotation is manual. Scope is by level only: personal (the user's access across org projects), organization (all projects, admins only), or single project (admins only, Editor access on that project, cannot delete the project or manage its access). Key value is shown once at creation. Revoke in Console (Account settings > API keys), with `neon api-keys revoke <key-id>`, or DELETE /api/v2/api_keys/{key_id}; revocation is immediate and permanent.

Neon docs

Neon Auth API key (beta SDK)

Separate from the core Neon API. The SDK type reference shows an optional expiresAt field and an isValid() check (not expired and not revoked). Default and maximum durations were not found.

Neon docs

Postgres role password

Reset from Console (role menu > Reset password), CLI (`neon roles reset-password <role>`), the API reset endpoint, or SQL (ALTER ROLE ... WITH PASSWORD). Resets apply per branch; reset the role on each branch where it is used. The old password stops working on the next connection, so connection strings must be updated. Docs do not say whether passwords expire automatically or can be scheduled.

Neon docs

Neon Console login

Console sign-in. Not an API credential. Session policy not researched.

What usually goes wrong

Renewals and billing

Not researched.

What Neon's docs don't say

We couldn't confirm these from official docs, so don't rely on them either way:

Rotating or replacing a Neon key

The steps are the same for most providers: make the new key, deploy it everywhere the old one is used, check it works, then revoke the old one. Our guides walk through it:

Sources

Related providers

Keep track of every Neon key

StackHangar stores your Neon keys in an encrypted vault, grouped by the product they belong to, warns you before they expire, and walks you through rotating them. We can't read your secrets.