# Get spans count on previous day for all available workspaces

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

Get spans count on previous day for all available workspaces

Base URL: `https://www.comet.com/opik/api`

Tags: `System usage`

## Authorization

This operation requires no authorization.

## Responses

| Status | Description | Media type |
| --- | --- | --- |
| `200` | SpanCountResponse resource | `application/json` |

### Example response: 200 — SpanCountResponse resource

```json
{
  "workspaces_spans_count": [
    {
      "span_count": 0,
      "workspace": "string"
    }
  ]
}
```

## Related pages

- [Activate a pairing session](./activatepairingsession.md)
- [Add blueprint to existing config](./updateagentconfig.md)
- [Add items to annotation queue](./additemstoannotationqueue.md)
- [Add span comment](./addspancomment.md)
- [Add span feedback score](./addspanfeedbackscore.md)
- [Add thread comment](./addthreadcomment.md)
- [Add trace comment](./addtracecomment.md)
- [Add trace feedback score](./addtracefeedbackscore.md)
- [Agent Configs](./tags/agent-configs.md)
- [Agent Insights](./tags/agent-insights.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
