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). 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, which is generated from the routes themselves. Use it to generate types.
Routes
| Route |
What it answers |
/site |
Everything that renders around the content: name, address, settings, navigation, sections, entity types and the article details a site keeps |
/home |
The front page's sections, in the order the Site set |
/articles |
Live articles, newest first |
/articles/{slug} |
One live article |
/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} |
A draft, rendered without writing anything, through a link that expires (exp) |
/categories |
Every section, in the Site's order |
/categories/{slug} |
A section and a page of its articles |
/tags |
Tags on live articles, most used first |
/authors |
The Site's writers |
/authors/{slug} |
A writer and a page of their articles |
/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} |
One entity: its details, bio, a page of the articles about it, and the entities linking to it |
/pages/{slug} |
A static page, such as About |
/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 |
Every address on the Site, with when it last changed |
/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 |
Live articles matching q (words, "quoted phrases", -excluded), best first |
/many |
Several reads in one call |
GET /site
Everything that renders around the content: name, address, settings,
navigation, sections, entity types and the article details a site keeps.
Returns SiteView (application/json).
GET /home
The front page's sections, in the order the Site set.
Returns HomeView (application/json).
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 |
|
Returns ArticlePage (application/json).
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 (application/json).
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 (application/json).
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 (application/json).
GET /categories
Every section, in the Site's order.
Returns list of CategoryView (application/json).
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 (application/json).
Tags on live articles, most used first.
| Parameter |
In |
Type |
Notes |
limit |
query |
integer |
default 100, min 1, max 500 |
Returns list of TagCountView (application/json).
GET /authors
The Site's writers.
Returns list of AuthorView (application/json).
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 (application/json).
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 |
A link detail of the type |
to |
query |
string |
The linked entity's slug |
Returns EntityTypePage (application/json).
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 (application/json).
GET /pages/{slug}
A static page, such as About.
| Parameter |
In |
Type |
Notes |
slug |
path |
string |
required |
Returns PageView (application/json).
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 (application/json).
GET /sitemap
Every address on the Site, with when it last changed.
Returns Sitemap (application/json).
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/plain).
GET /search
Live articles matching q (words, "quoted phrases", -excluded), best first.
| Parameter |
In |
Type |
Notes |
q |
query |
string |
required; max length 200 |
page |
query |
integer |
default 1, min 1, max 500 |
limit |
query |
integer |
default 12, min 1, max 50 |
Returns ArticlePage (application/json).
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 |
Returns BatchView (application/json).
Types
ArticleCard
| Field |
Type |
Notes |
id |
string (uuid) |
|
slug |
string |
|
path |
string |
|
title |
string |
|
excerpt |
string or null |
|
eyebrow |
string or null |
|
cover |
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 or null |
|
authors |
list of AuthorRef |
|
tags |
list of TagRef |
|
details |
map of name to string or integer or number or boolean or LinkedEntity or list of LinkedEntity |
|
ArticleDetail
ArticlePage
A page of article cards.
| Field |
Type |
Notes |
items |
list of 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. |
ArticleSeo
| Field |
Type |
Notes |
title |
string |
|
description |
string or null |
|
image_url |
string or null |
|
canonical_path |
string |
|
AuthorPage
AuthorRef
| Field |
Type |
Notes |
slug |
string |
|
name |
string |
|
path |
string |
|
avatar |
RenderedImage or null |
|
title |
string or null |
|
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 or null |
|
title |
string or null |
|
bio |
string or null |
|
social |
map of name to string |
|
articles |
integer or null |
|
BatchItem
| Field |
Type |
Notes |
request |
string |
|
status |
integer |
|
body |
any |
|
BatchView
Several reads in one call, answered in the order they were asked.
BreakBlock
| Field |
Type |
Notes |
_key |
string |
|
_type |
"break" |
|
CalloutBlock
| Field |
Type |
Notes |
_key |
string |
|
_type |
"callout" |
|
title |
string or null |
|
text |
string |
|
CategoryPage
CategoryParent
The top-level category one sits inside, for a breadcrumb.
| Field |
Type |
Notes |
slug |
string |
|
name |
string |
|
path |
string |
|
CategoryRef
| Field |
Type |
Notes |
slug |
string |
|
name |
string |
|
path |
string |
|
parent |
CategoryParent or null |
|
CategoryView
| Field |
Type |
Notes |
slug |
string |
|
name |
string |
|
path |
string |
|
description |
string or null |
|
parent |
CategoryParent or null |
|
ChangeView
One entry whose reader-facing state changed: live (published or
updated) or removed (taken down). Poll with the last changed_at seen.
| 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) |
|
ChangesView
| Field |
Type |
Notes |
items |
list of ChangeView |
|
next_cursor |
string |
|
CodeBlock
| Field |
Type |
Notes |
_key |
string |
|
_type |
"code" |
|
code |
string |
|
language |
string or null |
|
Correction
A dated note on a published article, shown to readers.
| Field |
Type |
Notes |
at |
string (date-time) |
|
note |
string |
max length 1000 |
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 |
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 |
|
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 |
|
EntityCard
| Field |
Type |
Notes |
id |
string (uuid) |
|
slug |
string |
|
name |
string |
|
summary |
string or null |
|
image |
RenderedImage or null |
|
articles |
integer |
default 0 |
fields |
map of name to string or integer or number or boolean or LinkedEntity or list of LinkedEntity |
|
path |
string or null |
|
EntityDetail
EntityRef
| Field |
Type |
Notes |
slug |
string |
|
name |
string |
|
path |
string |
|
type_slug |
string |
|
type_name |
string |
|
image |
RenderedImage or null |
|
EntitySeo
| Field |
Type |
Notes |
index |
boolean |
|
canonical_path |
string |
|
EntityTypePage
EntityTypeView
| Field |
Type |
Notes |
id |
string (uuid) |
|
slug |
string |
|
name |
string |
|
singular_name |
string |
|
kind |
string |
|
path |
string |
|
details |
list of DetailView |
|
GalleryBlock
| Field |
Type |
Notes |
_key |
string |
|
_type |
"gallery" |
|
title |
string or null |
|
images |
list of ImageBlock |
|
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 or null |
|
markup |
string |
|
script |
string or null |
|
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 |
|
entities |
list of EntityCard |
|
HomeView
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 or null |
|
placeholder |
string or null |
|
_type |
"image" |
|
link |
string or null |
|
ImageFocalPoint
0-1 from the left and the top of the image.
| Field |
Type |
Notes |
x |
number |
|
y |
number |
|
LinkMark
| Field |
Type |
Notes |
_key |
string |
|
_type |
"link" |
|
href |
string |
|
LinkedEntity
An entity a detail links to.
| Field |
Type |
Notes |
id |
string (uuid) |
|
slug |
string |
|
name |
string |
|
type_slug |
string |
|
path |
string or null |
|
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 |
|
NavItem
| Field |
Type |
Notes |
label |
string |
max length 60 |
url |
string |
max length 500 |
Navigation
| Field |
Type |
Notes |
primary |
list of NavItem |
optional |
footer |
list of NavItem |
optional |
PageView
QuoteBlock
| Field |
Type |
Notes |
_key |
string |
|
_type |
"quote" |
|
text |
string |
|
credit |
string or null |
|
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 or null |
|
placeholder |
string or null |
|
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 or null |
|
page |
PageView or null |
|
category |
CategoryPage or null |
|
entity_type |
EntityTypePage or null |
|
entity |
EntityDetail or null |
|
SeoDefaults
| Field |
Type |
Notes |
title_suffix |
string or null |
optional |
description |
string or null |
optional |
SiteSettings
What renders around the content: name, logo, links, defaults.
| Field |
Type |
Notes |
title |
string or null |
optional |
description |
string or null |
optional |
logo_url |
string or null |
optional |
default_share_image_url |
string or null |
optional |
social |
map of name to string |
optional |
seo |
SeoDefaults |
optional |
time_zone |
string or null |
optional |
SiteView
Everything that renders around the content: one call per page load,
cached like the rest.
Sitemap
SitemapItem
| Field |
Type |
Notes |
path |
string |
|
updated_at |
string (date-time) or null |
|
Span
| Field |
Type |
Notes |
_key |
string |
|
_type |
"span" |
|
text |
string |
|
marks |
list of string |
|
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
| Field |
Type |
Notes |
_key |
string |
|
cells |
list of string |
|
TagCountView
| Field |
Type |
Notes |
slug |
string |
|
name |
string |
|
articles |
integer |
|
TagRef
A label on an article. Tags filter listings but have no page.
| Field |
Type |
Notes |
slug |
string |
|
name |
string |
|
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 |
|
children |
list of Span |
|