# Check whether a project has spans

**GET** `/v1/private/spans/exists`

Returns whether the project has at least one span matching the given scope. Cheap existence probe (LIMIT 1) used to drive empty-state decisions without scanning or aggregating the whole project.

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

Tags: `Spans`

## Authorization

This operation requires no authorization.

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `project_id` | `string` (uuid) | No | — |
| `project_name` | `string` | No | — |
| `source` | `string` | No | — |

## Responses

| Status | Description | Media type |
| --- | --- | --- |
| `200` | Span existence | `application/json` |

### Example response: 200 — Span existence

```json
{
  "exists": true
}
```

## 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.
