The Public JSON Surface and Content Catalogue
What the visitor-facing surface can read, which three parameters it honours, why this JSON answers the source-language copy, and the questions it explicitly does not answer.
The HTML page a visitor sees is rendered by the theme, but the same data has a read-only JSON surface as well — theme authors, mobile clients, internal scripts, and integrators who want to plug their own site into an internal system all read that one. This page lists what is publicly readable, by which rules it answers, and which questions it explicitly does not answer.
Two routes for content. GET /api/v1/content is the list and GET /api/v1/content/{slug} is the detail; both return only what is visible to visitors (unpublished items, items in the trash, and anything whose scheduled moment has not arrived are simply not in the answer). The public list understands exactly three parameters: page number, page size, and a committed search keyword. Two numbers must be read separately: how many rows this page returned, and how many exist site-wide — the latter is the real total rather than the length of this page, and computing pagination from the total is what stops "next page" from greying out permanently when a page happens to fill exactly. Filtering by type, by category, or by a published-date range lives on the console list endpoint (it requires permission) and is absent from the public surface; to pull a batch by content type, use the per-facet search addresses (/api/v1/search/docs, /news, /products). Passing a parameter the public surface does not know does not raise an error — it is ignored. That is worth writing down here, because it is precisely the shape of "looks filtered, actually wasn't".
This JSON answers the source-language copy. Measured behaviour: /api/v1/content/<slug> takes no language parameter and does not accept ?locale=, and Accept-Language does not change its answer either (this is a hard constraint: language is decided only by the address, and no side door for header-negotiated language may be opened). The per-language version is produced by the page the server renders, from its address — /de/<slug> is the German page, and behind it Go resolves the language and the snapshot watermark from the address. So "build a multilingual front end on this JSON" today means either fetching the prefixed page per language yourself, or keeping the translations on your own side; do not expect this one address to pick a language for you. This is a real boundary, not an unfinished feature: stating it is cheaper than inventing a fake ?locale= parameter.
Structure and site-level data each have their own. Navigation is read by location (/api/v1/navigation/{location}), taxonomy vocabularies by type (/api/v1/taxonomy/{key}/public), the enabled-language list is one route, and site search has a whole-site entry plus per-content-type facets. A form's public definition (which fields, which one is required) is its own route, while visitor submission is a write endpoint.
Only two write endpoints are public. Form submission and lead creation. Their failure answers are fixed: an internal error returns one stable sentence plus a stable error code, and never puts table names, column names or driver text into a response every crawler can read. On some other endpoints this used to be true; after closing it, the check became "rename the table and submit again, then look for structure leaking into the response".
Caching and the price it brings. Public pages are public, max-age=60, must-revalidate: within that minute the browser answers itself and no request is made. So assertions like "operations just edited the body — did a visitor see the new version?" must bypass the cache, or you are testing the browser cache rather than the server. Conversely, an article edit takes effect for visitors immediately (the visibility watermark advances inside the write request), and what needs an explicit "publish" click is site-level configuration — navigation, taxonomy, banners and announcements, theme version.
Several things it explicitly does not answer. Custom content fields are currently not per-language (they are stored on the main row, and the translation table has only the three columns title/body/summary), so a custom field on a foreign-language page is always in the source language; the view count is not in the page digest (it is a reading that changes over time, and putting it in the cache key means every refresh misses — trading a statistics number for the detail page's availability); and the whole class of console endpoints, audit, backups and credentials is not on this surface at all.
One more thing that is easy to overlook: public reads are bounded too. Loading a page fetches the widget script once, so the read-only budget is per source address and must still have an upper limit — "reads = no rate limit" becomes an immediate problem in an office sharing one egress IP. Going over returns 429 plus a retry-after time; it does not block the source address.