Skip to main content
Opik Documentation

Search documentation

Type to search this documentation.

Get costs summary

POST/v1/private/workspaces/costs/summariesGet costs summary

Get costs summary

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 Metricsapplication/json
objectResult
currentnumber · double
namestring
previousnumber · double
Example response
{
  "current": 0,
  "name": "string",
  "previous": 0
}
400Bad Requestapplication/json
objectErrorMessage
codeinteger · int32
detailsstring
messagestring
Example response
{
  "code": 0,
  "details": "string",
  "message": "string"
}
Documentation menu