---
title: "Get Report Domains"
method: GET
path: "/api/v1/report-domains"
tags: ["Chat"]
---

# Get Report Domains

`GET /api/v1/report-domains`

## Request

- Base URL: `https://backend.caspr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://backend.caspr.ai/api/v1/report-domains`
- Auth: OAuth 2
  - Password
  - Token URL: `token`

Return a summary of report domains for the authenticated user.

Only domains that contain at least one non-draft report are included.
Results are sorted by ``item_count`` descending.

**Response fields per domain:**
- ``domain_name``: Internal slug (e.g. ``"due_diligence"``)
- ``category_name``: Human-readable label (e.g. ``"Due Diligence"``)
- ``item_count``: Number of non-draft reports in that domain

Authentication Required: Yes (JWT token)

## Response `200`

Successful Response

- ReportDomainsResponse: Response for GET /report-domains.
  - `success` boolean
  - `domains` ReportDomainItem[]: Domains that have at least one non-draft report, sorted by item count desc
    - `domain_name` string, required: Internal domain slug, e.g. 'due_diligence'
    - `category_name` string, required: Human-readable label, e.g. 'Due Diligence'
    - `item_count` integer, required: Number of non-draft reports in this domain

## Other responses

- `401`: Unauthorized
- `500`: Internal Server Error

---

[API](https://skmtc.dev/caspr/apis/casper-api.md) - [All operations](https://skmtc.dev/caspr/apis/casper-api/llms.txt) - [OpenAPI document](https://skmtc.dev/caspr/apis/casper-api/revisions/f9765e3aa00c?raw)
