Headless CMS · Structured content API
Publish a block,
not a page.
Most systems publish a page. In Flatnode a page is a container, and every block inside it carries its own version, schedule and publication state. Fix one paragraph and promote only that paragraph.
Content models are JSON Schema. Editor forms are generated from them. Everything is delivered over a REST API where every identifier is a UUID.
The free tier covers one project, 25 schemas and 15,000 API requests a month. All the numbers.
Components
A content type is a JSON Schema
Declare the fields and their constraints; the editor form is generated from the schema. Nobody builds a form, and the same schema validates every write through the API.
Slots
A page is a component with a slot in it
A Page
declares a slot. Hero, text and teaser are separate components mounted into
it. The page never had to know what a Hero is.
Workflow
Every block versions on its own
draft → submit → approve → promote, on each block rather than on the page. A block can be scheduled, withdrawn or rolled back on its own.
Schemas
The editor is whatever the schema says it is
Save a schema as a draft, test it, publish it. Rich field types — images, links, library queries, repeatable arrays — are schema shapes the editor knows how to render, not plugins you install.
- Schemas are versioned. Existing content stays on whatever version it was created under, even after a newer one is published. A schema change never retroactively rewrites live content.
-
Components compose.
$refone schema from another, nest slots inside slots, and reuse the same block definition on every page that wants it. -
Validation is the schema.
The same document that draws the form rejects a bad
POSTwith a 422 naming the field.
Libraries
A field can ask a collection a question
A Library is a filterable collection of entries that share one schema — press releases, events, products. The fields you declare filterable are indexed, so listing and filtering stays a query rather than a walk over every entry in the project.
A component field can bind to a library and carry its own query, authored where the block sits: the same component on another page asks a different question. Filter inputs are typed from the fields the library declares — a year field gets min/max, strings get "contains".
Entries are ordinary content: the same submit / approve / promote / withdraw endpoints work on them unchanged.
Composition & workflow
Move a block without losing its history
Cut a block and every slot position on the page turns into a paste target. The block keeps its identity, its version history and its publication state — it is a move, not a delete and recreate.
Scheduling has the same granularity: reveal and conceal times sit on the block, so a banner can appear on its own date while the rest of the page stays exactly as it was.
The lifecycle of one block
- draft
- pending approval
- approved
- promoted
- live
The review gate is optional — a draft can be promoted straight away. No version is ever destroyed: discarded, rejected and withdrawn are end states, and a new version is how you try again. What renders is the newest promoted version that is also inside its schedule window.
Search
One box over everything in a project
Documents, content blocks, component schemas, assets, asset folders and libraries all come back from a single query, grouped by type. Indexed per project and served over the same API the editor uses.
Built for finding one thing quickly rather than for powering a site's own search: indexing is near-real-time rather than synchronous (about a second), results cap at 20 hits, and a query never crosses projects.
Translations
A page nobody has finished translating still works
A translation is another version of a block with a language on it, not a second page tree to keep in step with the first. Ask a page for German and every block answers in German where a German version exists and in the default language where it does not — and each one tells you which of the two you actually got, so a fallback is never mistaken for a translation.
Because it is a version, each language has its own draft and its own publication state. German can be live while the English rewrite is still a draft. Starting a translation copies the block you are looking at as a draft, so nothing on the live site moves until someone promotes it.
Declare a project's languages and its default, and the rest follows. Declare none and nothing changes: a single-language project behaves exactly as it did before, down to the bytes on the wire.
Delivery
Plain REST, and every identifier is a UUID
Content comes back as JSON in the shape you modelled it. Each block
carries a
_uuid
— the stable address you read, update and publish it by — and a
_component
naming the schema it was built from. One identifier scheme throughout,
in URLs and request bodies alike, so a client never translates between
two kinds of id.
-
Tokens carry scoped abilities.
file.read,content.publish, or a bare verb across every resource. A read-only CDN token cannot write anything. - Webhooks instead of polling. Signed, thin payloads that carry identifiers rather than content, retried on failure, and switched off automatically if an endpoint stays broken.
-
Quota headers on every response.
X-Quota-Remainingtells a client where it stands without a separate call. -
Ask for a language with the read.
?locale=deon the same URL, and every block comes back carrying the language it resolved to — a real translation and a fallback are told apart in the payload, not guessed at.
Write
curl -X POST "$API/content" \ -H "Authorization: Bearer $TOKEN" \ -d '{ "DocumentId": "1f1daf90-f21e-…", "ComponentId": "1f1daf91-5d0f-…", "position": "first", "data": "Hello, World!" }'
Promote, then read
curl -X POST "$API/content/{uuid}/promote" curl "$API/document/{uuid}" { "_uuid": "1f1daf91-5f91-…", "_type": "component", "_component": "1f1daf91-5d0f-…", "_value": "Hello, World!", "_document": { "title": "My Document", "slug": "my-document" } }
New content is a draft. Until something promotes it, the document comes back with no body — draft means draft, not hidden by a flag.
Also in the box
Assets with variants
Uploads to 64 MB, typed by their contents rather than by their filename. A field references a file and the variant it wants, so every consumer renders the same crop instead of deriving its own.
On-the-fly rendering
/render?w=800&format=webp, computed once per distinct size and answered with a one-year immutable
cache header.
Asset folders
A folder tree over the media library. Moving or deleting a folder never moves or deletes the assets filed under it.
Document references
A link to another page stores its uuid, not a URL. Rename or move that page and the link still resolves.
Teams and projects
Content, schemas, assets and search are scoped per project. Deleting a project is reversible for 14 days.
Usage you can see
Project → Settings → Plan & usage lists every limit next to its current count, including the running monthly request total.
Limits
What it doesn't do yet
Flatnode is pre-1.0. It runs real sites, and this is what you would otherwise meet in week two. The API docs carry the same list.
- Public assets need a CDN, or a build step
- Every route needs a bearer token, downloads included — that is what keeps an unpublished asset unpublished. So you either put a CDN in front of the API with a fixed read-only header, which Cloudflare, Bunny and CloudFront all support natively, or you pull the assets during a static build and serve them from your own host. What you cannot do is hand a browser an anonymous image URL.
- JSON Schema, but a subset of it
-
allOf,oneOfandnotare refused outright, and a uniontypearray saves but fails when the content is read.anyOf,if/then/else,patternPropertiesandconston a property do work. Wider coverage is the next piece of schema work on the list. - Roles say what, not where
-
A project defines its own roles, each granting named abilities —
file.read,content.publish. An API token carries the same vocabulary. What a role cannot carry is a where: “may edit press releases but not the homepage” is not expressible yet. The nearest thing is per-node: a block or a page can be handed to one role, which then maintains it while everybody else reads it. - Search finds things, it does not serve readers
- 20 hits, no pagination, no cross-project query, and no relevance tuning. It is there to get an editor to the right block quickly. A site search for your own visitors is a job for a search service fed by the webhooks.
- The standalone validation endpoint is a lint, not a dry run
-
It checks the properties you send — not
required, notadditionalProperties, not nested array constraints. Passing there is not a promise thatPOST /contentwill accept the same body. Good for checking a form before submitting it; not a substitute for the real write. - No client libraries, and the API still moves
- Plain REST and bearer tokens, so any HTTP client works — but there are no official SDKs and no GraphQL. Response shapes have changed between releases (every identifier became a UUID in 0.2) and can change again before 1.0. Breaking changes are called out in the docs.
What a free account gives you
Every account is on the free tier today; larger tiers come later. A limit only ever stops you adding more — nothing you have already built is locked, throttled or taken away when you reach one.
- 1
- project
- 25
- content schemas
- 1
- editor account
- 60
- delivery requests a minute
- 15,000
- delivery requests a month
Editing doesn't spend that budget: requests the CMS's own editor makes on your behalf don't count against the monthly quota, so the whole allowance goes to the sites and apps reading your content.
Model a page, then read it back as JSON
Create an account, define a schema, compose a page from blocks and fetch it over the API. The docs open with a five-step quick start that does exactly that, in curl.