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 cost daily data

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

Get metric daily data

Next
Built with

Request

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

Response

Workspace cost data by days
resultslist of objects

Errors

400
Bad Request Error