API Documentation

Reports API

Retrieve your auto‑generated intelligence reports and manually authored documents.

Getting Started

Base URL

https://app.caelrith.com/api/v1/reports

Authentication

Same as other APIs – include your API key in the x-api-key header.

curl -H "x-api-key: YOUR_KEY" \
  "https://app.caelrith.com/api/v1/reports"

Rate Limits

The Reports API is available on all plans, but daily call quotas apply based on your workspace tier.

Endpoints

GET/

List Reports

Paginated list of reports. Use ?id=... to fetch a single report directly.

ParameterTypeRequiredDescription
pageintegerNoPage number (default 1).
limitintegerNoResults per page (1–100, default 50).
statusstringNoFilter by status: DRAFT, REVIEW, FINAL, ARCHIVED, GENERATING.
collectionIdstring (UUID)NoFilter reports belonging to a specific collection/folder.
searchstringNoFree‑text search in report title and content.
sortBystringNoSort field: createdAt, updatedAt, title (default updatedAt).
sortDirstringNoSort direction: asc or desc (default desc).
idstring (UUID)NoIf provided, returns a single report by its DB ID (ignores pagination params).

Example Request

curl -H "x-api-key: YOUR_KEY" \
  "https://app.caelrith.com/api/v1/reports/?status=GENERATING&limit=5"

Example Response

{
  "data": [
    {
      "id": "cuid-1",
      "title": "Intelligence Report (Jul 4, 2026 10:30 PM)",
      "status": "FINAL",
      "createdAt": "2026-07-04T22:30:00.000Z",
      "updatedAt": "2026-07-04T22:35:00.000Z",
      "collectionId": null,
      "creationMethod": "AI_ONE_OFF"
    }
  ],
  "meta": {
    "page": 1,
    "limit": 50,
    "totalItems": 3,
    "totalPages": 1,
    "hasMore": false
  }
}
GET/:reportId

Get Single Report

Returns the full report object, including content, author details, and collection info.

ParameterTypeRequiredDescription
reportIdstring (UUID)YesThe database ID of the report (from path).

Example Request

curl -H "x-api-key: YOUR_KEY" \
  "https://app.caelrith.com/api/v1/reports/cuid-1"