GET
/projects/{project_id}/branches/{branch_id}/databases/{database_name}Retrieve database detailsRetrieves information about the specified database. For related information, see Manage databases.
Parameters
project_idstringpathrequiredThe Neon project ID
branch_idstringpathrequiredThe branch ID
database_namestringpathrequiredThe database name
Responses
objectDatabaseResponse
databaseobjectrequiredShow child attributes
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
{
"database": {
"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"
}
}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"
}