Documentation
The complete Cairn reference. Every page here is generated from the thing it documents — the API’s own OpenAPI spec, the CLI’s dispatch table, and the TSDoc comments in @cairn-cms/client — so it describes the version that’s actually deployed.
API
The public content-delivery endpoints — published reads, preview sessions and schema, with cURL and JavaScript examples.
14 endpoints
CLI
Scaffold an integration and generate TypeScript types from a project’s published schema.
12 commands
Client
The @cairn-cms/client package — creating a client, reading and writing documents, images and portable text.
20 functions and methods
Client for Next.js
One preview-aware client for App Router sites — reads and image URLs switch to drafts in preview — plus the preview routes and banner.
19 functions and methods
Schema types
The field, document type and block type shapes the JSON files in cairn/schema/ are written in.
46 types
Scope
This reference covers the public delivery surface only — the endpoints a deployed site or build step calls. The Dashboard’s own internal endpoints (projects, members, billing, releases) aren’t documented here, and aren’t part of the supported API.