For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Copy to LLMGithubGo to App
DocumentationIntegrationsBuilding Self-Improving AgentsSelf-hosting OpikSDK & API reference
DocumentationIntegrationsBuilding Self-Improving AgentsSelf-hosting OpikSDK & API reference
    • Overview
  • Python SDK
    • Reference
    • REST API Client
  • Typescript SDK
    • Overview
    • Opik TS
    • Prompts
    • Opik Query Language (OQL)
  • Rest API
    • Overview
        • POSTGet costs summary
        • GETGet workspace configuration
        • PUTUpsert workspace configuration
        • DELDelete workspace configuration
        • POSTGet cost daily data
        • POSTGet metric daily data
        • GETGet workspace version
        • POSTGet metrics summary
LogoLogo
Copy to LLMGithubGo to App
Rest APIAPI ReferenceWorkspaces

Get costs summary

POST
/v1/private/workspaces/costs/summaries
POST
/api/v1/private/workspaces/costs/summaries
$curl -X POST http://localhost:5173/api/v1/private/workspaces/costs/summaries \
> -H "Content-Type: application/json" \
> -d '{
> "interval_start": "2024-01-15T09:30:00Z",
> "interval_end": "2024-01-15T09:30:00Z"
>}'
1{
2 "name": "string",
3 "current": 1.1,
4 "previous": 1.1
5}
Get costs summary
Was this page helpful?
Previous

Get workspace configuration

Next
Built with

Request

This endpoint expects an object.
interval_startdatetimeRequired
interval_enddatetimeRequired
project_idslist of stringsOptional
start_before_endbooleanOptional

Response

Workspace Metrics
namestring
currentdouble
previousdouble

Errors

400
Bad Request Error