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_id
values by listing the API keys for your Neon account. See Get a list of API keys. Only thekey_id
is 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_id
value by listing the projects for your Neon account. See Get a list of projects.branch_id
: Retrieve abranch_id
value by listing the project's branches. See Get a list of branches.operation_id
: Retrieve anoperation_id
value by listing operations for the project. See Get a list of operations.database_name
: Retrieve adatabase_name
value by listing the databases for a branch. See Get a list of databases.role_name
: Retrieve arole_name
value by listing the roles for a branch. See Get a list of roles.endpoint_id
: Retrieve anendpoint_id
value by listing your project's compute endpoints. See Get a list of compute endpoints.