Developer Tools · Databases & Storage

Neon

Postgres, on a serverless platform designed to help you build reliable and scalable applications faster

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Accept project transfer request

    Accepts a pending transfer request and irreversibly moves the Neon project to the authenticated account or specified organization. This consumes the request and changes project ownership. Confirm the destination before calling, and do not retry an ambiguous failure because the transfer may already have completed.

  • Create API key

    Creates a new personal API key for the authenticated Neon user account. Use this action to generate API keys for programmatic access to Neon services, such as CI/CD pipelines, backend integrations, or development environments. Each key should have a descriptive name to help identify its purpose. IMPORTANT: The returned 'key' value is shown only once - store it securely immediately after creation. To manage organization-level API keys, use the organization API key endpoints instead.

  • Create API Key for Organization

    Creates a new API key for the specified organization in Neon. The API key is used for authenticating and authorizing access to the Neon API. The `key_name` parameter allows for easy identification and management of multiple API keys within the organization. IMPORTANT: The actual API key value is returned only once in the response and cannot be retrieved later. Store it securely immediately after creation. Organization API keys provide admin-level access to all organization resources, including projects, members, and settings. Only organization admins can create these keys.

  • Create Auth Provider SDK Keys

    Tool to generate SDK or API keys for authentication providers. Use when setting up authentication for a Neon project with providers like Stack Auth, Better Auth, or for testing with mock provider.

  • Create project permission

    Grants the specified email address access to a Neon project. Use this to add a new project collaborator. It creates a project permission; it does not modify an existing permission or select a permission level.

  • Set VPC endpoint restriction

    Sets or updates a VPC endpoint restriction for a Neon project. When a VPC endpoint restriction is set, the project only accepts connections from the specified VPC endpoint, providing network-level security isolation. This is useful for Private Networking scenarios where you want to restrict database access to only connections coming through a specific AWS VPC endpoint. The VPC endpoint must first be assigned to the parent organization (using the organization-level VPC endpoint API) before it can be used as a project restriction. The operation is idempotent - repeated calls with the same parameters will not create additional changes. Note: This is a paid feature requiring a Neon Business or Enterprise plan.

  • Assign or Update VPC Endpoint

    Assigns an existing AWS VPC endpoint to a Neon organization, or updates the label of that assignment. Azure regions are unsupported. The endpoint must already exist in AWS and Private Networking requires an eligible Neon plan.

  • Delete api key by id

    Deletes a specific API key from the Neon platform. This endpoint should be used when you need to revoke access for a particular API key, such as when an employee leaves the organization or when you suspect the key has been compromised. The operation is irreversible, so use it with caution. Once deleted, any applications or services using this API key will lose access to Neon's API. This endpoint helps maintain the security of your Neon account by allowing you to manage and control API key access effectively.

  • Delete branch auth domains

    Deletes domains from the redirect_uri whitelist for a specific branch's authentication configuration. Use when you need to revoke access for specific domains in your Neon authentication setup.

  • Delete organization api key

    Deletes a specific API key associated with an organization in the Neon platform. This endpoint is used to revoke access for a particular API key, enhancing security by removing unused or compromised keys. It should be used when an API key is no longer needed, when rotating keys for security purposes, or when an API key may have been exposed. Once deleted, the API key cannot be recovered, and any systems using this key will lose access to the Neon API. Ensure you have a backup or replacement key in place before deletion to avoid service interruptions.

  • Delete organization member

    Removes a specific member from a Neon organization. This action permanently revokes the member's access to all organization resources. Use this when an employee leaves the company, changes roles, or their access needs to be revoked. Important notes: - This action cannot be undone; re-adding requires a new invitation - You cannot delete the last admin member of an organization - The member_id must be a valid UUID (not the user's email) - Requires admin permissions on the organization Use fetch_organization_members_by_id first to get valid member IDs.

  • Delete project permission

    Revokes project access for the user associated with a permission ID. Obtain the permission ID by listing project access. Returns the revoked permission directly, including its grant and revocation timestamps.

  • Delete vpc endpoint by project id

    Removes a VPC endpoint restriction from a Neon project. It does not delete or unassign the VPC endpoint from its organization. Connections through that VPC endpoint are no longer permitted by this project-level restriction.

  • Finalize branch restore

    Finalizes the restore operation for a branch created from a snapshot. This updates the branch to function as the original branch it replaced by: reassigning computes from the original branch (which restarts them), renaming the restored branch to the original's name, and renaming the original branch. Only applies to branches created using the restoreSnapshot endpoint.

  • Reset role password for branch

    Resets the password for a PostgreSQL role on a specific Neon branch and generates a new password. Use this when credentials need to be rotated for security purposes (e.g., employee offboarding, suspected compromise, or routine security practices). The response includes the new password - store it securely as it cannot be retrieved later. The new password becomes active once the triggered 'apply_config' operation completes; the old password remains valid until then. Note: This is a destructive operation that invalidates the current password.

  • Restart project endpoint

    Restarts a Neon compute endpoint (Postgres instance) within a project. The restart operation suspends and then starts the compute endpoint, which is useful for: - Applying configuration changes - Clearing cached data or connections - Troubleshooting connection or performance issues - Recovering from error states The operation triggers two sequential actions: 'suspend_compute' followed by 'start_compute'. During restart, the endpoint will be briefly unavailable. The response includes the updated endpoint details and the operations triggered. Note: If the endpoint is in a 'locked' state (HTTP 423) due to an ongoing operation, wait for it to complete before retrying. If the endpoint is 'idle', it will be started directly without suspension.

  • Restore project branch

    Restores a branch from another point in its own or another branch's history, replacing the target branch's current data and creating a branch for the restored state. This is destructive: never run it autonomously; always ask the user for confirmation first. Use preserve_under_name to retain the target's current state; it is required for self-restores and targets with child branches, whose children are moved to the preserved branch.

  • Restore snapshot to new branch

    Restores a snapshot by creating a new preview branch. By default, the original branch and its computes are unchanged so the restored data can be inspected. When finalize_restore is true, the restore is finalized immediately: the new branch replaces the target branch and associated computes move to it. This replacement is destructive and should be confirmed with the user. This endpoint is currently in Beta.

  • Set branch as default

    Sets a specified branch as the default branch for a given project in Neon. This endpoint allows users to designate a particular branch as the primary or main branch for a project, which can be useful for organizing workflows and setting default behaviors. The operation is performed using a POST request, indicating that it modifies the state of the project. Use this endpoint when you need to change the default branch of a project, such as after creating a new branch or deciding to switch the main development focus. It's important to note that this action may affect how other operations interact with the project, as many systems use the default branch as a reference point for various functionalities.

  • Start branch anonymization

    Starts the Beta anonymization process on an anonymized branch in the `initialized`, `error`, or `anonymized` state. This applies the branch's masking rules and irreversibly changes its database values. Verify the branch and rules before calling. Do not retry an ambiguous failure because the first anonymization run may already have started.

Page 1 / 2Next