Skip to main content
Opik Documentation

Search documentation

Type to search this documentation.

Get metric daily data

POST/v1/private/workspaces/metricsGet metric daily data

Get metric daily data

Request body

application/json
objectWorkspaceMetricsSummaryRequest
interval_endstring · date-timerequired
interval_startstring · date-timerequired
project_idsarray of string · uuid

uniqueItems true

Show child attributes

uniqueItems true

start_before_endboolean
Example request
{
  "interval_end": "2026-06-09T00:00:00Z",
  "interval_start": "2026-06-09T00:00:00Z",
  "project_ids": [
    "00000000-0000-0000-0000-000000000000"
  ],
  "start_before_end": true
}

Responses

200Workspace metric data by daysapplication/json
objectWorkspaceMetricResponse
resultsarray of object
Show child attributes
Show array items
currentnumber · double
namestring
previousnumber · double
Example response
{
  "results": [
    {
      "current": 0,
      "name": "string",
      "previous": 0
    }
  ]
}
400Bad Requestapplication/json
objectErrorMessage
codeinteger · int32
detailsstring
messagestring
Example response
{
  "code": 0,
  "details": "string",
  "message": "string"
}
Documentation menu