Skip to main content
GET
Get Database by ID
string
required
The ID of the database to retrieve. If the database belongs to a workspace, pass its ID in the workspace_id query parameter.
string
If the database belongs to a workspace, the workspace’s ID. Required for workspace members acting on a database they don’t own.

Response

object
The details of the database.

Error Responses

string
The error code indicating the reason for failure. Possible values:
  • UNAUTHORIZED: The user is not authenticated or lacks sufficient permissions.
  • DATABASE_NOT_FOUND: The specified database does not exist or the user lacks access.
string
A descriptive message providing additional details about the error.