# API reference

Every read is a `GET` to `https://delivery.velora.build/{site_id}/...` with the Site's read key, as `Authorization: Bearer <key>` or `?key=<key>` ([Connect](https://developers.velora.build/connect.md)). Paths below start at the Site id. Every route answers `404` with `{"error": "NOT_FOUND", "detail": "Not found"}` when the Site, the key or the thing asked for does not exist, so the three cannot be told apart.

This page is written from the OpenAPI document at [https://developers.velora.build/openapi.json](https://developers.velora.build/openapi.json), which is generated from the routes themselves. Use it to generate types.

## Routes

| Route | What it answers |
| --- | --- |
| [`/site`](#get-site) | Everything that renders around the content: name, address, settings, navigation, sections, entity types and the article details a site keeps |
| [`/home`](#get-home) | The front page's sections, in the order the Site set |
| [`/articles`](#get-articles) | Live articles, newest first |
| [`/articles/{slug}`](#get-articles-slug) | One live article |
| [`/changes`](#get-changes) | What changed for readers after `cursor`, oldest first: for a search index, a cache or an agent keeping a copy in step |
| [`/preview/{article_id}`](#get-preview-article-id) | A draft, rendered without writing anything, through a link that expires (`exp`) |
| [`/categories`](#get-categories) | Every section, in the Site's order |
| [`/categories/{slug}`](#get-categories-slug) | A section and a page of its articles |
| [`/tags`](#get-tags) | Tags on live articles, most used first |
| [`/authors`](#get-authors) | The Site's writers |
| [`/authors/{slug}`](#get-authors-slug) | A writer and a page of their articles |
| [`/entities/{type_slug}`](#get-entities-type-slug) | The type's entities with a page, or with `via` and `to` every one whose `via` detail links to the entity `to` names, with a page or not |
| [`/entities/{type_slug}/{slug}`](#get-entities-type-slug-slug) | One entity: its details, bio, a page of the articles about it, and the entities linking to it |
| [`/pages/{slug}`](#get-pages-slug) | A static page, such as About |
| [`/resolve`](#get-resolve) | What lives at a path: an article, a page, a category, an entity type index or an entity, with the slug its own endpoint takes and the content itself (a listing's `page` of `limit`); or a redirect from an old address; or nothing |
| [`/sitemap`](#get-sitemap) | The Site's addresses for a sitemap, with when each last changed where known |
| [`/llms.txt`](#get-llms-txt) | The publication as an `llms.txt` index (llmstxt.org): what it is, its sections and topics, and its latest articles with links to their markdown. A front end serves it at its own `/llms.txt` |
| [`/search`](#get-search) | Live articles matching `q` (words, "quoted phrases", -excluded), best first |
| [`/many`](#get-many) | Several reads in one call |

<a id="get-site"></a>

### GET /site

Everything that renders around the content: name, address, settings,
navigation, sections, entity types and the article details a site keeps.

Returns [SiteView](#siteview) (`application/json`).

<a id="get-home"></a>

### GET /home

The front page's sections, in the order the Site set.

Returns [HomeView](#homeview) (`application/json`).

<a id="get-articles"></a>

### GET /articles

Live articles, newest first. Filters: `category`, `tag`, `author` (slugs),
`type`, an entity as `entity_type` plus `entity` (its type's slug and
its own), and an article detail as `detail` plus `value` (`/site`'s
`article_details`: `detail=Sponsored&value=true`; a link detail takes the
linked entity's slug). `category`, `tag` and `type` take several, comma
separated (`type=news,race`), and match any of them. An article must match
every filter, or any of category, tag and type with `match=any`
(`category=tech&type=consumer&match=any`).

`cursor` reads on from a listing's `next_cursor` instead of a numbered
page, as far back as the archive goes: "load more", or every article in
turn. An ISO time instead starts at the articles published before it
(`cursor=2019-06-01T00:00:00Z`). A read with a cursor is never kept or
cached.

| Parameter | In | Type | Notes |
| --- | --- | --- | --- |
| `page` | query | integer | default `1`, min 1, max 500 |
| `limit` | query | integer | default `12`, min 1, max 50 |
| `category` | query | string |  |
| `tag` | query | string |  |
| `author` | query | string |  |
| `type` | query | string |  |
| `entity_type` | query | string |  |
| `entity` | query | string |  |
| `detail` | query | string |  |
| `value` | query | string |  |
| `match` | query | `"all"` or `"any"` | default `"all"` |
| `cursor` | query | string | max length 100 |

Returns [ArticlePage](#articlepage) (`application/json`).

<a id="get-articles-slug"></a>

### GET /articles/{slug}

One live article. `?format=markdown` adds the body as markdown.

| Parameter | In | Type | Notes |
| --- | --- | --- | --- |
| `slug` | path | string | required |
| `format` | query | string |  |

Returns [ArticleDetail](#articledetail) (`application/json`).

<a id="get-changes"></a>

### GET /changes

What changed for readers after `cursor`, oldest first: for a search
index, a cache or an agent keeping a copy in step. Start with no cursor (or
an ISO time) and pass back `next_cursor`. Never cached.

| Parameter | In | Type | Notes |
| --- | --- | --- | --- |
| `cursor` | query | string | default `"1970-01-01T00:00:00Z"` |
| `limit` | query | integer | default `100`, min 1, max 500 |

Returns [ChangesView](#changesview) (`application/json`).

<a id="get-preview-article-id"></a>

### GET /preview/{article_id}

A draft, rendered without writing anything, through a link that expires
(`exp`). Never cached.

| Parameter | In | Type | Notes |
| --- | --- | --- | --- |
| `article_id` | path | string (uuid) | required |
| `sig` | query | string | default `""` |
| `exp` | query | integer | default `0` |

Returns [ArticleDetail](#articledetail) (`application/json`).

<a id="get-categories"></a>

### GET /categories

Every section, in the Site's order.

Returns list of [CategoryView](#categoryview) (`application/json`).

<a id="get-categories-slug"></a>

### GET /categories/{slug}

A section and a page of its articles.

| Parameter | In | Type | Notes |
| --- | --- | --- | --- |
| `slug` | path | string | required |
| `page` | query | integer | default `1`, min 1, max 500 |
| `limit` | query | integer | default `12`, min 1, max 50 |

Returns [CategoryPage](#categorypage) (`application/json`).

<a id="get-tags"></a>

### GET /tags

Tags on live articles, most used first.

| Parameter | In | Type | Notes |
| --- | --- | --- | --- |
| `limit` | query | integer | default `100`, min 1, max 500 |

Returns list of [TagCountView](#tagcountview) (`application/json`).

<a id="get-authors"></a>

### GET /authors

The Site's writers.

Returns list of [AuthorView](#authorview) (`application/json`).

<a id="get-authors-slug"></a>

### GET /authors/{slug}

A writer and a page of their articles.

| Parameter | In | Type | Notes |
| --- | --- | --- | --- |
| `slug` | path | string | required |
| `page` | query | integer | default `1`, min 1, max 500 |
| `limit` | query | integer | default `12`, min 1, max 50 |

Returns [AuthorPage](#authorpage) (`application/json`).

<a id="get-entities-type-slug"></a>

### GET /entities/{type_slug}

The type's entities with a page, or with `via` and `to` every one whose
`via` detail links to the entity `to` names, with a page or not.

| Parameter | In | Type | Notes |
| --- | --- | --- | --- |
| `type_slug` | path | string | required |
| `page` | query | integer | default `1`, min 1, max 500 |
| `limit` | query | integer | default `48`, min 1, max 100 |
| `via` | query | string | max length 60; A link detail of the type |
| `to` | query | string | max length 200; The linked entity's slug |

Returns [EntityTypePage](#entitytypepage) (`application/json`).

<a id="get-entities-type-slug-slug"></a>

### GET /entities/{type_slug}/{slug}

One entity: its details, bio, a page of the articles about it, and
the entities linking to it.

| Parameter | In | Type | Notes |
| --- | --- | --- | --- |
| `type_slug` | path | string | required |
| `slug` | path | string | required |
| `page` | query | integer | default `1`, min 1, max 500 |
| `limit` | query | integer | default `12`, min 1, max 50 |

Returns [EntityDetail](#entitydetail) (`application/json`).

<a id="get-pages-slug"></a>

### GET /pages/{slug}

A static page, such as About.

| Parameter | In | Type | Notes |
| --- | --- | --- | --- |
| `slug` | path | string | required |

Returns [PageView](#pageview) (`application/json`).

<a id="get-resolve"></a>

### GET /resolve

What lives at a path: an article, a page, a category, an entity type
index or an entity, with the slug its own endpoint takes and the content
itself (a listing's `page` of `limit`); or a redirect from an old address;
or nothing. Front ends serve every path from this one call.

| Parameter | In | Type | Notes |
| --- | --- | --- | --- |
| `path` | query | string | required |
| `page` | query | integer | default `1`, min 1, max 500 |
| `limit` | query | integer | default `12`, min 1, max 50 |

Returns [ResolvedPath](#resolvedpath) (`application/json`).

<a id="get-sitemap"></a>

### GET /sitemap

The Site's addresses for a sitemap, with when each last changed where known.

Returns [Sitemap](#sitemap) (`application/json`).

<a id="get-llms-txt"></a>

### GET /llms.txt

The publication as an `llms.txt` index (llmstxt.org): what it is, its
sections and topics, and its latest articles with links to their markdown.
A front end serves it at its own `/llms.txt`.

Returns string (`text/markdown`).

<a id="get-search"></a>

### GET /search

Live articles matching `q` (words, "quoted phrases", -excluded), best first.

| Parameter | In | Type | Notes |
| --- | --- | --- | --- |
| `q` | query | string | required; min length 2, max length 200 |
| `page` | query | integer | default `1`, min 1, max 500 |
| `limit` | query | integer | default `12`, min 1, max 50 |

Returns [ArticlePage](#articlepage) (`application/json`).

<a id="get-many"></a>

### GET /many

Several reads in one call. Each `r` is a request as its own endpoint
takes it, from the Site on (`r=/articles?category=news&limit=3`), and is
answered exactly as that endpoint answers it, in the order asked. The
answer is kept until a change touches any of them.

| Parameter | In | Type | Notes |
| --- | --- | --- | --- |
| `r` | query | list of string | required; at least 1, at most 10 |

Returns [BatchView](#batchview) (`application/json`).

## Types

<a id="articlecard"></a>

### ArticleCard

| Field | Type | Notes |
| --- | --- | --- |
| `id` | string (uuid) |  |
| `slug` | string |  |
| `path` | string |  |
| `title` | string |  |
| `excerpt` | string or null |  |
| `eyebrow` | string or null |  |
| `cover` | [RenderedImage](#renderedimage) or null |  |
| `published_at` | string (date-time) or null |  |
| `updated_at` | string (date-time) or null |  |
| `reading_minutes` | integer | default `1` |
| `article_type` | string or null |  |
| `category` | [CategoryRef](#categoryref) or null |  |
| `authors` | list of [AuthorRef](#authorref) |  |
| `tags` | list of [TagRef](#tagref) |  |
| `details` | map of name to string or integer or number or boolean or [LinkedEntity](#linkedentity) or list of [LinkedEntity](#linkedentity) |  |

<a id="articledetail"></a>

### ArticleDetail

| Field | Type | Notes |
| --- | --- | --- |
| `id` | string (uuid) |  |
| `slug` | string |  |
| `path` | string |  |
| `title` | string |  |
| `excerpt` | string or null |  |
| `eyebrow` | string or null |  |
| `cover` | [RenderedImage](#renderedimage) or null |  |
| `published_at` | string (date-time) or null |  |
| `updated_at` | string (date-time) or null |  |
| `reading_minutes` | integer | default `1` |
| `article_type` | string or null |  |
| `category` | [CategoryRef](#categoryref) or null |  |
| `authors` | list of [AuthorView](#authorview) |  |
| `tags` | list of [TagRef](#tagref) |  |
| `details` | map of name to string or integer or number or boolean or [LinkedEntity](#linkedentity) or list of [LinkedEntity](#linkedentity) |  |
| `body` | list of [TextBlock](#textblock) or [ImageBlock](#imageblock) or [TableBlock](#tableblock) or [CodeBlock](#codeblock) or [BreakBlock](#breakblock) or [EmbedBlock](#embedblock) or [GalleryBlock](#galleryblock) or [QuoteBlock](#quoteblock) or [CalloutBlock](#calloutblock) or [GraphicBlock](#graphicblock) or [CustomBlock](#customblock) |  |
| `html` | string | default `""` |
| `markdown` | string or null |  |
| `word_count` | integer | default `0` |
| `seo` | [ArticleSeo](#articleseo) |  |
| `entities` | list of [EntityRef](#entityref) |  |
| `corrections` | list of [Correction](#correction) |  |
| `related` | list of [ArticleCard](#articlecard) |  |

<a id="articlepage"></a>

### ArticlePage

A page of article cards.

| Field | Type | Notes |
| --- | --- | --- |
| `items` | list of [ArticleCard](#articlecard) |  |
| `page` | integer |  |
| `pages` | integer |  |
| `total` | integer |  |
| `next_cursor` | string or null | Where the next page starts, or null on the last: pass it as `cursor` to `/articles` with the same filters and `limit` (a category's, tag's, author's or entity's listing is `/articles` filtered by it). Pages read this way cost the same at any depth and go on past page 500. Always null from `/search`, which pages by number. |

<a id="articleseo"></a>

### ArticleSeo

| Field | Type | Notes |
| --- | --- | --- |
| `title` | string |  |
| `description` | string or null |  |
| `image_url` | string or null |  |
| `canonical_path` | string |  |

<a id="authorpage"></a>

### AuthorPage

| Field | Type | Notes |
| --- | --- | --- |
| `author` | [AuthorView](#authorview) |  |
| `articles` | [ArticlePage](#articlepage) |  |

<a id="authorref"></a>

### AuthorRef

| Field | Type | Notes |
| --- | --- | --- |
| `slug` | string |  |
| `name` | string |  |
| `path` | string |  |
| `avatar` | [RenderedImage](#renderedimage) or null |  |
| `title` | string or null |  |

<a id="authorview"></a>

### AuthorView

An author in full: on their own page, the author list and an
article's byline.

| Field | Type | Notes |
| --- | --- | --- |
| `slug` | string |  |
| `name` | string |  |
| `path` | string |  |
| `avatar` | [RenderedImage](#renderedimage) or null |  |
| `title` | string or null |  |
| `bio` | string or null |  |
| `social` | map of name to string |  |
| `articles` | integer or null |  |

<a id="batchitem"></a>

### BatchItem

| Field | Type | Notes |
| --- | --- | --- |
| `request` | string |  |
| `status` | integer |  |
| `body` | any |  |

<a id="batchview"></a>

### BatchView

Several reads in one call, answered in the order they were asked.

| Field | Type | Notes |
| --- | --- | --- |
| `results` | list of [BatchItem](#batchitem) |  |

<a id="breakblock"></a>

### BreakBlock

| Field | Type | Notes |
| --- | --- | --- |
| `_key` | string |  |
| `_type` | `"break"` |  |

<a id="calloutblock"></a>

### CalloutBlock

| Field | Type | Notes |
| --- | --- | --- |
| `_key` | string |  |
| `_type` | `"callout"` |  |
| `title` | string or null |  |
| `text` | string |  |

<a id="categorypage"></a>

### CategoryPage

| Field | Type | Notes |
| --- | --- | --- |
| `category` | [CategoryView](#categoryview) |  |
| `articles` | [ArticlePage](#articlepage) |  |

<a id="categoryparent"></a>

### CategoryParent

The top-level category one sits inside, for a breadcrumb.

| Field | Type | Notes |
| --- | --- | --- |
| `slug` | string |  |
| `name` | string |  |
| `path` | string |  |

<a id="categoryref"></a>

### CategoryRef

| Field | Type | Notes |
| --- | --- | --- |
| `slug` | string |  |
| `name` | string |  |
| `path` | string |  |
| `parent` | [CategoryParent](#categoryparent) or null |  |

<a id="categoryview"></a>

### CategoryView

| Field | Type | Notes |
| --- | --- | --- |
| `slug` | string |  |
| `name` | string |  |
| `path` | string |  |
| `description` | string or null |  |
| `parent` | [CategoryParent](#categoryparent) or null |  |

<a id="changeview"></a>

### ChangeView

One entry whose reader-facing state changed: `live` (published or
updated) or `removed` (taken down). Poll by passing back the answer's
`next_cursor` as it is: it holds the article id too, so changes sharing a
`changed_at` are not skipped.

| Field | Type | Notes |
| --- | --- | --- |
| `id` | string (uuid) |  |
| `slug` | string |  |
| `path` | string |  |
| `state` | `"live"` or `"removed"` |  |
| `published_at` | string (date-time) or null |  |
| `changed_at` | string (date-time) |  |

<a id="changesview"></a>

### ChangesView

| Field | Type | Notes |
| --- | --- | --- |
| `items` | list of [ChangeView](#changeview) |  |
| `next_cursor` | string |  |

<a id="codeblock"></a>

### CodeBlock

| Field | Type | Notes |
| --- | --- | --- |
| `_key` | string |  |
| `_type` | `"code"` |  |
| `code` | string |  |
| `language` | string or null |  |

<a id="correction"></a>

### Correction

A dated note on a published article, shown to readers.

| Field | Type | Notes |
| --- | --- | --- |
| `at` | string (date-time) |  |
| `note` | string | min length 1, max length 1000 |

<a id="customblock"></a>

### CustomBlock

One of the Site's own blocks: `_type` is its name, and the fields its
definition names sit beside it.

| Field | Type | Notes |
| --- | --- | --- |
| `_key` | string |  |
| `_type` | string |  |
| *(any other)* | any | the block's own fields |

<a id="deliveryerror"></a>

### DeliveryError

Every error: `NOT_FOUND`, `VALIDATION_ERROR`, `ORIGIN_UNAVAILABLE`, ...

| Field | Type | Notes |
| --- | --- | --- |
| `error` | string |  |
| `detail` | string |  |

<a id="detailview"></a>

### DetailView

One detail every entity of a type (or every article) has, so a front
end knows the shape of its values before it reads one.

| Field | Type | Notes |
| --- | --- | --- |
| `key` | string |  |
| `kind` | string |  |
| `links_to` | string or null |  |
| `many` | boolean | default `false` |
| `options` | list of string |  |

<a id="embedblock"></a>

### EmbedBlock

A post or video from another service, by its public URL.

| Field | Type | Notes |
| --- | --- | --- |
| `_key` | string |  |
| `_type` | `"embed"` |  |
| `provider` | `"twitter"` or `"instagram"` or `"youtube"` or `"tiktok"` or `"bluesky"` or `"threads"` or `"facebook"` or `"linkedin"` or `"vimeo"` or `"strava"` or `"other"` |  |
| `url` | string |  |
| `caption` | string or null |  |

<a id="entitycard"></a>

### EntityCard

| Field | Type | Notes |
| --- | --- | --- |
| `id` | string (uuid) |  |
| `slug` | string |  |
| `name` | string |  |
| `summary` | string or null |  |
| `image` | [RenderedImage](#renderedimage) or null |  |
| `articles` | integer | default `0` |
| `fields` | map of name to string or integer or number or boolean or [LinkedEntity](#linkedentity) or list of [LinkedEntity](#linkedentity) |  |
| `path` | string or null |  |

<a id="entitydetail"></a>

### EntityDetail

| Field | Type | Notes |
| --- | --- | --- |
| `id` | string (uuid) |  |
| `slug` | string |  |
| `name` | string |  |
| `summary` | string or null |  |
| `image` | [RenderedImage](#renderedimage) or null |  |
| `articles` | integer | default `0` |
| `fields` | map of name to string or integer or number or boolean or [LinkedEntity](#linkedentity) or list of [LinkedEntity](#linkedentity) |  |
| `path` | string |  |
| `type` | [EntityTypeView](#entitytypeview) |  |
| `bio_html` | string | default `""` |
| `bio` | list of [TextBlock](#textblock) or [ImageBlock](#imageblock) or [TableBlock](#tableblock) or [CodeBlock](#codeblock) or [BreakBlock](#breakblock) or [EmbedBlock](#embedblock) or [GalleryBlock](#galleryblock) or [QuoteBlock](#quoteblock) or [CalloutBlock](#calloutblock) or [GraphicBlock](#graphicblock) or [CustomBlock](#customblock) |  |
| `articles_page` | [ArticlePage](#articlepage) |  |
| `seo` | [EntitySeo](#entityseo) |  |
| `linked_from` | list of [LinkedGroupView](#linkedgroupview) |  |

<a id="entityref"></a>

### EntityRef

| Field | Type | Notes |
| --- | --- | --- |
| `slug` | string |  |
| `name` | string |  |
| `path` | string |  |
| `type_slug` | string |  |
| `type_name` | string |  |
| `image` | [RenderedImage](#renderedimage) or null |  |

<a id="entityseo"></a>

### EntitySeo

| Field | Type | Notes |
| --- | --- | --- |
| `index` | boolean |  |
| `canonical_path` | string |  |

<a id="entitytypepage"></a>

### EntityTypePage

| Field | Type | Notes |
| --- | --- | --- |
| `type` | [EntityTypeView](#entitytypeview) |  |
| `items` | list of [EntityCard](#entitycard) |  |
| `page` | integer |  |
| `pages` | integer |  |
| `total` | integer |  |

<a id="entitytypeview"></a>

### EntityTypeView

| Field | Type | Notes |
| --- | --- | --- |
| `id` | string (uuid) |  |
| `slug` | string |  |
| `name` | string |  |
| `singular_name` | string |  |
| `kind` | string |  |
| `path` | string |  |
| `details` | list of [DetailView](#detailview) |  |

<a id="galleryblock"></a>

### GalleryBlock

| Field | Type | Notes |
| --- | --- | --- |
| `_key` | string |  |
| `_type` | `"gallery"` |  |
| `title` | string or null |  |
| `images` | list of [ImageBlock](#imageblock) |  |

<a id="graphicblock"></a>

### GraphicBlock

An interactive graphic: `markup` (and `script`) to draw it, `image` for
anywhere that cannot run it.

| Field | Type | Notes |
| --- | --- | --- |
| `_key` | string |  |
| `_type` | `"graphic"` |  |
| `id` | string |  |
| `title` | string |  |
| `alt` | string |  |
| `caption` | string or null |  |
| `image` | [RenderedImage](#renderedimage) or null |  |
| `markup` | string |  |
| `script` | string or null |  |

<a id="homesection"></a>

### HomeSection

| Field | Type | Notes |
| --- | --- | --- |
| `kind` | `"articles"` or `"entity_type"` |  |
| `key` | string or null |  |
| `title` | string or null |  |
| `path` | string or null |  |
| `articles` | list of [ArticleCard](#articlecard) |  |
| `entities` | list of [EntityCard](#entitycard) |  |

<a id="homeview"></a>

### HomeView

| Field | Type | Notes |
| --- | --- | --- |
| `sections` | list of [HomeSection](#homesection) |  |

<a id="imageblock"></a>

### ImageBlock

An image in a body or a gallery: an image with a place and a link.

| Field | Type | Notes |
| --- | --- | --- |
| `_key` | string |  |
| `url` | string |  |
| `alt` | string | default `""` |
| `caption` | string or null |  |
| `credit` | string or null |  |
| `width` | integer or null |  |
| `height` | integer or null |  |
| `focalPoint` | [ImageFocalPoint](#imagefocalpoint) or null |  |
| `placeholder` | string or null |  |
| `_type` | `"image"` |  |
| `link` | string or null |  |

<a id="imagefocalpoint"></a>

### ImageFocalPoint

0-1 from the left and the top of the image.

| Field | Type | Notes |
| --- | --- | --- |
| `x` | number |  |
| `y` | number |  |

<a id="linkmark"></a>

### LinkMark

| Field | Type | Notes |
| --- | --- | --- |
| `_key` | string |  |
| `_type` | `"link"` |  |
| `href` | string |  |

<a id="linkedentity"></a>

### LinkedEntity

An entity a detail links to.

| Field | Type | Notes |
| --- | --- | --- |
| `id` | string (uuid) |  |
| `slug` | string |  |
| `name` | string |  |
| `type_slug` | string |  |
| `path` | string or null |  |

<a id="linkedgroupview"></a>

### LinkedGroupView

The entities of one type linking to an entity through one of their
details: a team's riders, by Team.

| Field | Type | Notes |
| --- | --- | --- |
| `type_slug` | string |  |
| `type_name` | string |  |
| `detail` | string |  |
| `total` | integer |  |
| `items` | list of [EntityCard](#entitycard) |  |

<a id="navitem"></a>

### NavItem

| Field | Type | Notes |
| --- | --- | --- |
| `label` | string | min length 1, max length 60 |
| `url` | string | min length 1, max length 500 |

<a id="navigation"></a>

### Navigation

| Field | Type | Notes |
| --- | --- | --- |
| `primary` | list of [NavItem](#navitem) | optional; at most 12 |
| `footer` | list of [NavItem](#navitem) | optional; at most 24 |

<a id="pageview"></a>

### PageView

| Field | Type | Notes |
| --- | --- | --- |
| `slug` | string |  |
| `path` | string |  |
| `title` | string |  |
| `body` | list of [TextBlock](#textblock) or [ImageBlock](#imageblock) or [TableBlock](#tableblock) or [CodeBlock](#codeblock) or [BreakBlock](#breakblock) or [EmbedBlock](#embedblock) or [GalleryBlock](#galleryblock) or [QuoteBlock](#quoteblock) or [CalloutBlock](#calloutblock) or [GraphicBlock](#graphicblock) or [CustomBlock](#customblock) |  |
| `html` | string | default `""` |
| `seo_title` | string or null |  |
| `seo_description` | string or null |  |
| `updated_at` | string (date-time) or null |  |

<a id="quoteblock"></a>

### QuoteBlock

| Field | Type | Notes |
| --- | --- | --- |
| `_key` | string |  |
| `_type` | `"quote"` |  |
| `text` | string |  |
| `credit` | string or null |  |

<a id="renderedimage"></a>

### RenderedImage

An image as readers get it: a cover, a product's picture, a graphic's,
an author's or an entity's.

| Field | Type | Notes |
| --- | --- | --- |
| `url` | string |  |
| `alt` | string | default `""` |
| `caption` | string or null |  |
| `credit` | string or null |  |
| `width` | integer or null |  |
| `height` | integer or null |  |
| `focalPoint` | [ImageFocalPoint](#imagefocalpoint) or null |  |
| `placeholder` | string or null |  |

<a id="resolvedpath"></a>

### ResolvedPath

What lives at a path. ``slug`` (and ``type_slug`` for an entity) is
what its own endpoint takes: `/articles/{slug}`, `/pages/{slug}`,
`/categories/{slug}`, `/entities/{type_slug}` or
`/entities/{type_slug}/{slug}`. A redirect says where to (``to``).

| Field | Type | Notes |
| --- | --- | --- |
| `kind` | `"article"` or `"page"` or `"category"` or `"entity_type"` or `"entity"` or `"redirect"` or `"not_found"` |  |
| `path` | string |  |
| `to` | string or null |  |
| `slug` | string or null |  |
| `type_slug` | string or null |  |
| `article` | [ArticleDetail](#articledetail) or null |  |
| `page` | [PageView](#pageview) or null |  |
| `category` | [CategoryPage](#categorypage) or null |  |
| `entity_type` | [EntityTypePage](#entitytypepage) or null |  |
| `entity` | [EntityDetail](#entitydetail) or null |  |

<a id="seodefaults"></a>

### SeoDefaults

| Field | Type | Notes |
| --- | --- | --- |
| `title_suffix` | string or null | optional; max length 80 |
| `description` | string or null | optional; max length 300 |

<a id="sitesettings"></a>

### SiteSettings

What renders around the content: name, logo, links, defaults.

| Field | Type | Notes |
| --- | --- | --- |
| `title` | string or null | optional; max length 120 |
| `description` | string or null | optional; max length 500 |
| `logo_url` | string or null | optional |
| `default_share_image_url` | string or null | optional |
| `social` | map of name to string | optional |
| `seo` | [SeoDefaults](#seodefaults) | optional |
| `time_zone` | string or null | optional |

<a id="siteview"></a>

### SiteView

Everything that renders around the content: one call per page load,
cached like the rest.

| Field | Type | Notes |
| --- | --- | --- |
| `name` | string |  |
| `url` | string or null |  |
| `language` | string |  |
| `settings` | [SiteSettings](#sitesettings) |  |
| `navigation` | [Navigation](#navigation) |  |
| `categories` | list of [CategoryView](#categoryview) |  |
| `entity_types` | list of [EntityTypeView](#entitytypeview) |  |
| `article_details` | list of [DetailView](#detailview) |  |

<a id="sitemap"></a>

### Sitemap

| Field | Type | Notes |
| --- | --- | --- |
| `items` | list of [SitemapItem](#sitemapitem) |  |

<a id="sitemapitem"></a>

### SitemapItem

| Field | Type | Notes |
| --- | --- | --- |
| `path` | string |  |
| `updated_at` | string (date-time) or null |  |

<a id="span"></a>

### Span

| Field | Type | Notes |
| --- | --- | --- |
| `_key` | string |  |
| `_type` | `"span"` |  |
| `text` | string |  |
| `marks` | list of string |  |

<a id="tableblock"></a>

### TableBlock

Any table: a markdown table in the body, or a data, results or stage
table a writer filled in. `cells` line up with `columns`.

| Field | Type | Notes |
| --- | --- | --- |
| `_key` | string |  |
| `_type` | `"table"` |  |
| `title` | string or null |  |
| `subtitle` | string or null |  |
| `columns` | list of string |  |
| `rows` | list of [TableRow](#tablerow) |  |

<a id="tablerow"></a>

### TableRow

| Field | Type | Notes |
| --- | --- | --- |
| `_key` | string |  |
| `cells` | list of string |  |

<a id="tagcountview"></a>

### TagCountView

| Field | Type | Notes |
| --- | --- | --- |
| `slug` | string |  |
| `name` | string |  |
| `articles` | integer |  |

<a id="tagref"></a>

### TagRef

A label on an article. Tags filter listings but have no page.

| Field | Type | Notes |
| --- | --- | --- |
| `slug` | string |  |
| `name` | string |  |

<a id="textblock"></a>

### TextBlock

A paragraph, heading, quote or list item (`listItem`, `level`).

| Field | Type | Notes |
| --- | --- | --- |
| `_key` | string |  |
| `_type` | `"block"` |  |
| `style` | `"normal"` or `"h2"` or `"h3"` or `"h4"` or `"h5"` or `"h6"` or `"blockquote"` | default `"normal"` |
| `listItem` | `"bullet"` or `"number"` | optional |
| `level` | integer | optional |
| `markDefs` | list of [LinkMark](#linkmark) |  |
| `children` | list of [Span](#span) |  |
