Neon
Serverless Postgres: projects, branches, endpoints and usage
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- API keySecretRequired
Where to find them
- In console.neon.tech: your avatar → “Account settings” → “API keys” → “Create new API key”; give it a name and copy the key: it is shown only once. It acts with your permissions in all your organizations.
- Alternative, if you are an admin: an organization key, in the organization → “Settings” → “API keys” → “Create new”, which can be limited to a single project (“Project-scoped”).
Tools (2)
Neon API request
NEON_SEND_REQUESTAuthenticated call to the Neon API (https://console.neon.tech/api/v2). Any endpoint of the API is allowed. Examples: GET /users/me, GET /users/me/organizations (with its org_id), GET /projects?org_id=…&limit=100, GET /projects/{id}, GET /projects/{id}/branches, GET /projects/{id}/branches/{branch}/databases, GET /projects/{id}/branches/{branch}/roles, GET /projects/{id}/endpoints, POST /projects/{id}/endpoints/{endpoint}/start, POST /projects/{id}/endpoints/{endpoint}/suspend, POST /projects/{id}/branches {"branch": {"name": "…"}, "endpoints": [{"type": "read_write"}]}, DELETE /projects/{id}/branches/{branch}, GET /projects/{id}/operations?limit=20, GET /projects/{id}/connection_uri?database_name=neondb&role_name=neondb_owner (returns the password), GET /consumption_history/projects?org_id=…&from=2026-10-01T00:00:00Z&to=2026-10-15T00:00:00Z&granularity=daily (paid plans). {branch} is the branch ID (br-…) and {endpoint}, the compute ID (ep-…).
Required scopes
No scopes required
Input
Neon API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically. Projects
NEON_LIST_PROJECTSProjects with region, Postgres version, storage, active compute hours in the period, last activity and organization, without the full configuration.
Required scopes
No scopes required
Input
Projects input Name Type Description organizationstringorg_id (GET /users/me/organizations lists them); usually needed with a personal key searchstringPart of the project name or ID maxintegerDefault: 100cursorstringCursor for the next page (the “next” field of the previous response)

