GET
/v1/databases/{databaseId}Get databaseReturns the database with the given ID.
Parameters
databaseIdstringpathrequiredResponses
object
dataobjectrequiredShow child attributes
branchIdnull | stringrequiredconnectionsarray of objectrequiredShow child attributes
Show array items
createdAtstring · date-timerequireddatabaseobjectrequiredShow child attributes
idstringrequirednamestringrequiredurlstring · urirequireddirectConnectionnull | objectDeprecated: use `endpoints.direct` instead.
Show child attributes
hoststringrequiredpassstringrequireduserstringrequiredendpointsobjectrequiredShow child attributes
accelerateobjectShow child attributes
hoststringrequiredportnumberrequireddirectobjectShow child attributes
hoststringrequiredportnumberrequiredpooledobjectShow child attributes
hoststringrequiredportnumberrequiredidstringrequiredkindstringrequirednamestringrequiredtypestringrequiredurlstring · urirequiredcreatedAtstring · date-timerequireddefaultConnectionIdnull | stringrequiredidstringrequiredisDefaultbooleanrequiredlogicalIdnull | stringrequirednamestringrequiredprojectobjectrequiredShow child attributes
idstringrequirednamestringrequiredurlstring · urirequiredregionnull | objectrequiredShow child attributes
idstringrequirednamestringrequiredsourcevaluerequiredShow child attributes
oneOf · 4 options
Option 1object
typestringrequiredOption 2object
backupIdstringrequiredID of the backup to restore from
databaseIdstringrequiredtypestringrequiredOption 3object
databaseIdstringrequiredtypestringrequiredOption 4nullnullable
statusstringrequiredtypestringrequiredurlstring · urirequired{
"data": {
"branchId": "string",
"connections": [
{
"createdAt": "2026-06-09T00:00:00Z",
"database": {
"id": "string",
"name": "string",
"url": "https://example.com"
},
"directConnection": {
"host": "string",
"pass": "string",
"user": "string"
},
"endpoints": {
"accelerate": {
"host": "string",
"port": 0
},
"direct": {
"host": "string",
"port": 0
},
"pooled": {
"host": "string",
"port": 0
}
},
"id": "string",
"kind": "accelerate",
"name": "string",
"type": "connection",
"url": "https://example.com"
}
],
"createdAt": "2026-06-09T00:00:00Z",
"defaultConnectionId": "string",
"id": "string",
"isDefault": true,
"logicalId": "string",
"name": "string",
"project": {
"id": "string",
"name": "string",
"url": "https://example.com"
},
"region": {
"id": "string",
"name": "string"
},
"source": {
"backupId": "string",
"databaseId": "string",
"type": "backup"
},
"status": "failure",
"type": "database",
"url": "https://example.com"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}