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:
  • AUTH_TOKEN_MISSING, API_KEY_INVALID, SESSION_REVOKED: The Authorization header is missing, the API key is invalid, or the dashboard session was revoked (401).
  • API_KEY_IP_DENIED, API_KEY_SCOPE_DENIED: The API key is used from an IP outside its allowlist, or it lacks the scope the route requires (403).
  • ACCESS_DENIED: You are a workspace member without the permission for this action, or you did not send the workspace_id (403).
  • FORBIDDEN: The user does not have permission to access the database.
  • DATABASE_NOT_FOUND: The specified database was not found.
string
A descriptive message providing additional details about the error.
Last modified on November 24, 2026