# Find retention rules

**GET** `/v1/private/retention/rules`

List retention rules for the caller's workspace. Defaults to active only.

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

Tags: `Retention Rules`

## Authorization

This operation requires no authorization.

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `page` | `integer` (int32) | No | — |
| `size` | `integer` (int32) | No | — |
| `include_inactive` | `boolean` | No | — |

## Responses

| Status | Description | Media type |
| --- | --- | --- |
| `200` | Retention rules page | `application/json` |

### Example response: 200 — Retention rules page

```json
{
  "content": [
    {
      "apply_to_past": true,
      "catch_up_cursor": "00000000-0000-0000-0000-000000000000",
      "catch_up_done": true,
      "created_at": "2026-06-09T00:00:00Z",
      "created_by": "string",
      "enabled": true,
      "id": "00000000-0000-0000-0000-000000000000",
      "last_updated_at": "2026-06-09T00:00:00Z",
      "last_updated_by": "string",
      "level": "organization",
      "project_id": "00000000-0000-0000-0000-000000000000",
      "retention": "base_60d",
      "workspace_id": "string"
    }
  ],
  "page": 0,
  "size": 0,
  "total": 0
}
```

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