---
title: "Get spans count on previous day grouped by workspace, project and user"
method: GET
path: "/v1/internal/usage/workspace-span-counts-breakdown"
tags: ["System usage"]
---

# Get spans count on previous day grouped by workspace, project and user

`GET /v1/internal/usage/workspace-span-counts-breakdown`

Get spans count on previous day grouped by workspace, project and user

## Response `200`

UsageByWorkspaceProjectUserResponse resource

- UsageByWorkspaceProjectUserResponse
  - `breakdown` WorkspaceProjectUserCount[]
    - `workspace_id` string
    - `project_id` string, uuid
    - `user` string
    - `count` integer

## Changes

- **2026-06-24** `1c1c3b8576ab` — 1 info
  - endpoint added
- **2026-05-04** `d606e84c75e4` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/comet-ml/apis/opik-rest-api/changes/v1/internal/usage/workspace-span-counts-breakdown/get.md)

---

[API](https://skmtc.dev/comet-ml/apis/opik-rest-api.md) · [All operations](https://skmtc.dev/comet-ml/apis/opik-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/comet-ml/opik-rest-api/revisions/1a1bcfd67f99/schema)
