How to retrieve Neon API path parameter values
Some Neon API endpoints require specifying path parameter values, which you can find in the Neon Console or by listing objects with a Neon API call.
The following list describes how to retrieve commonly required path parameter values using the Neon API. Look for the required value in the response body after issuing the API call.
key_id: Retrieve Neon APIkey_idvalues by listing the API keys for your Neon account. See Get a list of API keys. Only thekey_idis returned, not the 64-bit API key token, which is only visible when initially created. If you've lost an API token, you have to create a new one. See Create an API key.project_id: Retrieve aproject_idvalue by listing the projects for your Neon account. See Get a list of projects.branch_id: Retrieve abranch_idvalue by listing the project's branches. See Get a list of branches.operation_id: Retrieve anoperation_idvalue by listing operations for the project. See Get a list of operations.database_name: Retrieve adatabase_namevalue by listing the databases for a branch. See Get a list of databases.role_name: Retrieve arole_namevalue by listing the roles for a branch. See Get a list of roles.endpoint_id: Retrieve anendpoint_idvalue by listing your project's compute endpoints. See Get a list of compute endpoints.