GET
/projects/{project_id}/branches/{branch_id}/databasesList databasesRetrieves a list of databases for the specified branch. A branch can have multiple databases. For related information, see Manage databases.
Parameters
project_idstringpathrequiredThe Neon project ID
branch_idstringpathrequiredThe branch ID
Responses
objectDatabasesResponse
databasesarray of objectrequiredDatabases on the branch. Each includes `id`, `name`, `owner_name`, and `created_at`.
Show child attributes
Show array items
branch_idstringrequiredThe ID of the branch this database belongs to.
created_atstring · date-timerequiredA timestamp indicating when the database was created
idinteger · int64requiredThe database ID
namestringrequiredThe database name
owner_namestringrequiredThe name of role that owns the database
updated_atstring · date-timerequiredA timestamp indicating when the database was last updated
{
"databases": [
{
"branch_id": "br-aged-salad-637688",
"created_at": "2022-11-30T18:25:15Z",
"id": 834686,
"name": "main",
"owner_name": "casey",
"updated_at": "2022-11-30T18:25:15Z"
},
{
"branch_id": "br-aged-salad-637688",
"created_at": "2022-10-30T17:14:13Z",
"id": 834686,
"name": "mydb",
"owner_name": "casey",
"updated_at": "2022-10-30T17:14:13Z"
}
]
}objectGeneralError
codestringrequiredmessagestringrequiredError message
request_idstringUnique identifier for the request, useful for debugging. You can set this value manually by including an `X-Request-ID` header in the request. If not provided, the value will be generated automatically.
{
"code": "",
"message": "string",
"request_id": "string"
}