Get the project's published document types
GET/projects/{projectSlug}/schemaRequires an active preview session — either the cairn_preview cookie set by createPreviewHandler, or a preview session token sent as Authorization: Bearer <token>.
Path parameters
projectSlug* | string | The project's slug |
Responses
| 200 | This project's document types, as `cairn typegen` and the schema builder both read them |
| 401 | Authentication required |
| 403 | Origin not allowed, or not a member of this project |
| 404 | Unknown project |
Request
curl "https://api.cairn.press/projects/my-project/schema" \
-H "Authorization: Bearer $CAIRN_PREVIEW_TOKEN"Response · 200
[
{}
]