Skip to main content
GET
Get Database Metrics by ID
string
required
The ID of the database to retrieve metrics for. 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

array
An array of metric objects for the database over the last 24 hours.

Error Responses

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