Skip to main content
Neon Postgres Docs

Search documentation

Type to search this documentation.

On this pageOverview

Neon API

The Neon API is the management API for Neon. Use it to provision, configure, and manage resources such as projects, branches, databases, roles, functions, and object storage.

See the Neon API reference for details, and Manage API keys to create and use API keys.

Version
v2
Base URL
https://console.neon.tech/api/v2

API Key3 operations

These methods allow you to create and manage API keys for your Neon account. For related information, see Manage API keys.

Operation2 operations

These methods allow you to view operation details for your Neon project. For related information, see Operations.

Project24 operations

These methods allow you to create and manage Neon projects. For related information, see Manage projects.

Branch28 operations

These methods allow you to create and manage branches in your Neon project. For related information, see Manage branches.

POSTCreate anonymized branch/projects/{project_id}/branch_anonymizedGETList branches/projects/{project_id}/branchesPOSTCreate branch/projects/{project_id}/branchesGETRetrieve number of branches/projects/{project_id}/branches/countDELETEDelete branch/projects/{project_id}/branches/{branch_id}GETRetrieve branch details/projects/{project_id}/branches/{branch_id}PATCHUpdate branch/projects/{project_id}/branches/{branch_id}POSTStart anonymization/projects/{project_id}/branches/{branch_id}/anonymizeGETRetrieve anonymized branch status/projects/{project_id}/branches/{branch_id}/anonymized_statusGETCompare database schema/projects/{project_id}/branches/{branch_id}/compare_schemaGETList databases/projects/{project_id}/branches/{branch_id}/databasesPOSTCreate database/projects/{project_id}/branches/{branch_id}/databasesDELETEDelete database/projects/{project_id}/branches/{branch_id}/databases/{database_name}GETRetrieve database details/projects/{project_id}/branches/{branch_id}/databases/{database_name}PATCHUpdate database/projects/{project_id}/branches/{branch_id}/databases/{database_name}GETList branch endpoints/projects/{project_id}/branches/{branch_id}/endpointsPOSTFinalize branch restore from snapshot/projects/{project_id}/branches/{branch_id}/finalize_restoreGETRetrieve masking rules/projects/{project_id}/branches/{branch_id}/masking_rulesPATCHUpdate masking rules/projects/{project_id}/branches/{branch_id}/masking_rulesPOSTRestore branch to a historical state/projects/{project_id}/branches/{branch_id}/restoreGETList roles/projects/{project_id}/branches/{branch_id}/rolesPOSTCreate role/projects/{project_id}/branches/{branch_id}/rolesDELETEDelete role/projects/{project_id}/branches/{branch_id}/roles/{role_name}GETRetrieve role details/projects/{project_id}/branches/{branch_id}/roles/{role_name}POSTReset role password/projects/{project_id}/branches/{branch_id}/roles/{role_name}/reset_passwordGETRetrieve role password/projects/{project_id}/branches/{branch_id}/roles/{role_name}/reveal_passwordGETRetrieve database schema/projects/{project_id}/branches/{branch_id}/schemaPOSTSet branch as default/projects/{project_id}/branches/{branch_id}/set_as_default

Endpoint8 operations

These methods allow you to create and manage compute endpoints in your Neon project. For related information, see Manage compute endpoints.

Snapshot7 operations

These methods allow you to create and manage snapshots.

Region1 operation

These methods allow you to inspect Neon regions.

Users4 operations

These methods allow you to manage your Neon user account.

Consumption3 operations

These methods allow you to view consumption details for your Neon account.

Organizations19 operations

These methods allow you to manage your Neon organizations.

GETRetrieve organization details/organizations/{org_id}GETList organization API keys/organizations/{org_id}/api_keysPOSTCreate organization API key/organizations/{org_id}/api_keysDELETERevoke organization API key/organizations/{org_id}/api_keys/{key_id}DELETERemove organization spending limit/organizations/{org_id}/billing/spending_limitGETRetrieve organization spending limit/organizations/{org_id}/billing/spending_limitPUTSet organization spending limit/organizations/{org_id}/billing/spending_limitGETList organization invitations/organizations/{org_id}/invitationsPOSTCreate organization invitations/organizations/{org_id}/invitationsGETList organization members/organizations/{org_id}/membersDELETERemove organization member/organizations/{org_id}/members/{member_id}GETRetrieve organization member details/organizations/{org_id}/members/{member_id}PATCHUpdate role for organization member/organizations/{org_id}/members/{member_id}GETList VPC endpoints/organizations/{org_id}/vpc/region/{region_id}/vpc_endpointsDELETEDelete VPC endpoint/organizations/{org_id}/vpc/region/{region_id}/vpc_endpoints/{vpc_endpoint_id}GETRetrieve VPC endpoint details/organizations/{org_id}/vpc/region/{region_id}/vpc_endpoints/{vpc_endpoint_id}POSTAssign or update VPC endpoint/organizations/{org_id}/vpc/region/{region_id}/vpc_endpoints/{vpc_endpoint_id}GETList VPC endpoints across all regions/organizations/{org_id}/vpc/vpc_endpointsPOSTTransfer projects between organizations/organizations/{source_org_id}/projects/transfer

Auth28 operations

These methods allow you to create and manage Neon Auth projects.

DELETEDisable Neon Auth for the branch/projects/{project_id}/branches/{branch_id}/authGETRetrieve Neon Auth details for the branch/projects/{project_id}/branches/{branch_id}/authPOSTEnable Neon Auth for the branch/projects/{project_id}/branches/{branch_id}/authGETRetrieve localhost allow setting/projects/{project_id}/branches/{branch_id}/auth/allow_localhostPATCHUpdate localhost allow setting/projects/{project_id}/branches/{branch_id}/auth/allow_localhostDELETEDelete domain from redirect_uri whitelist/projects/{project_id}/branches/{branch_id}/auth/domainsGETList domains in redirect_uri whitelist/projects/{project_id}/branches/{branch_id}/auth/domainsPOSTAdd domain to redirect_uri whitelist/projects/{project_id}/branches/{branch_id}/auth/domainsGETRetrieve email and password configuration/projects/{project_id}/branches/{branch_id}/auth/email_and_passwordPATCHUpdate email and password configuration/projects/{project_id}/branches/{branch_id}/auth/email_and_passwordGETRetrieve email provider configuration/projects/{project_id}/branches/{branch_id}/auth/email_providerPATCHUpdate email provider configuration/projects/{project_id}/branches/{branch_id}/auth/email_providerPOSTSend test email using the saved email provider/projects/{project_id}/branches/{branch_id}/auth/email_provider/testGETList OAuth providers for the branch/projects/{project_id}/branches/{branch_id}/auth/oauth_providersPOSTAdd an OAuth provider/projects/{project_id}/branches/{branch_id}/auth/oauth_providersDELETEDelete OAuth provider/projects/{project_id}/branches/{branch_id}/auth/oauth_providers/{oauth_provider_id}PATCHUpdate OAuth provider/projects/{project_id}/branches/{branch_id}/auth/oauth_providers/{oauth_provider_id}GETRetrieve Neon Auth plugin configurations/projects/{project_id}/branches/{branch_id}/auth/pluginsPATCHUpdate magic link plugin configuration/projects/{project_id}/branches/{branch_id}/auth/plugins/magic-linkPATCHUpdate organization plugin configuration/projects/{project_id}/branches/{branch_id}/auth/plugins/organizationGETRetrieve phone number plugin configuration/projects/{project_id}/branches/{branch_id}/auth/plugins/phone-numberPATCHUpdate phone number plugin configuration/projects/{project_id}/branches/{branch_id}/auth/plugins/phone-numberPOSTSend test email/projects/{project_id}/branches/{branch_id}/auth/send_test_emailPOSTCreate new auth user/projects/{project_id}/branches/{branch_id}/auth/usersDELETEDelete auth user/projects/{project_id}/branches/{branch_id}/auth/users/{auth_user_id}PUTUpdate auth user role/projects/{project_id}/branches/{branch_id}/auth/users/{auth_user_id}/roleGETRetrieve Neon Auth webhook configuration/projects/{project_id}/branches/{branch_id}/auth/webhooksPUTUpdate Neon Auth webhook configuration/projects/{project_id}/branches/{branch_id}/auth/webhooks

Auth (legacy)16 operations

These methods allow you to create and manage Neon Auth projects. Deprecated. See routes with the Auth tag instead.

Storage1 operation

These methods allow you to inspect branchable object storage state for Neon branches.

Buckets8 operations

These methods allow you to create and manage branchable object storage buckets and their objects.

Functions13 operations

These methods allow you to create and manage functions on your Neon branches.

AI Gateway1 operation

These methods allow you to inspect the AI Gateway endpoint for your Neon branches.

Logs3 operations

These methods allow you to query logs emitted by services running on your Neon branches.

Credentials5 operations

These methods allow you to issue and manage scoped credentials on your Neon branches.

DataAPI4 operations

Documentation menu