# Velora CMS for developers

Velora CMS hosts a publication's content: articles, pages, sections, writers and entities (the riders, teams, products or places a site covers). Velora writes and publishes the content. Your front end reads what is published from the **delivery API** and renders it.

These docs cover everything a front end needs. Each rule is stated in full here, so you can build from these pages alone.

## How a front end works with Velora

1. **Velora decides every address.** Your front end never builds a URL for content. It asks [`/resolve`](https://developers.velora.build/routing.md) what lives at the requested path and renders that, redirects, or answers 404. Links use the `path` that every answer carries.
2. **Every read is cached until Velora says it changed.** When content changes, Velora sends a signed webhook naming exactly the requests whose answers changed. Your front end drops those and keeps everything else. See [Caching and the revalidate webhook](https://developers.velora.build/caching.md).
3. **Drafts open through signed preview links**, which your front end checks before it shows anything. See [Previews](https://developers.velora.build/previews.md).
4. **Article bodies are structured.** They arrive as Portable Text, with HTML and markdown as alternatives, and with typed blocks you can extend with your own. See [Article bodies and blocks](https://developers.velora.build/bodies.md).

## Start here

| Page | What it covers |
| --- | --- |
| [Connect](https://developers.velora.build/connect.md) | The delivery URL, read key and webhook secret, and how to call the API |
| [Routing](https://developers.velora.build/routing.md) | `/resolve`, redirects, 404s, listing pages, and addresses kept for your front end |
| [Caching](https://developers.velora.build/caching.md) | Naming each read, the revalidate webhook and its signature |
| [Previews](https://developers.velora.build/previews.md) | Signed preview links and the preview read |
| [Content](https://developers.velora.build/content.md) | The site, front page, listings, paging, articles, details and entities |
| [Article bodies and blocks](https://developers.velora.build/bodies.md) | Portable Text, preset and site blocks, `/velora/blocks.json`, images |
| [Sitemaps, feeds and llms.txt](https://developers.velora.build/feeds.md) | What to serve for search engines, feed readers and AI agents |
| [Deploy order](https://developers.velora.build/deploy.md) | What to do in Velora and what to deploy, in which order |
| [API reference](https://developers.velora.build/reference.md) | Every route and type, generated from the API |

## A first request

```bash
curl -H "Authorization: Bearer $VELORA_READ_KEY" \
  "https://delivery.velora.build/$SITE_ID/resolve?path=/"
```

## For AI agents

- Every page here is markdown at its address plus `.md`, for example [`/routing.md`](https://developers.velora.build/routing.md). The overview is `/index.md`.
- [`/llms.txt`](https://developers.velora.build/llms.txt) lists every page with what it covers. [`/llms-full.txt`](https://developers.velora.build/llms-full.txt) is every page in one file.
- [`/openapi.json`](https://developers.velora.build/openapi.json) is the delivery API alone, with `https://delivery.velora.build` as its server. It is generated from the API's routes on every publish. Generate your client's types from it.
