Delivery API
The Delivery API gives a frontend the published content of a site.
- The base address is
https://<cms>/delivery/v1/<site>/<environment>/. - Authentication is
Authorization: Bearer <token>. See Tokens.
Calls
| Call | What it gives |
|---|---|
GET /delivery/v1/hosts |
Every host that this frontend serves, with its site and environment. This call is not under a site. |
GET manifest |
version, site.version, and forms. Per entry: id, type, version, parent, sort, published_on, and addresses per language. Where they apply, also list_addresses, tag_addresses, related_version, children_version and display_version. children_version is "" without live children. The manifest is cheap, so poll it. |
GET site |
Everything of the site in one answer. See Site. |
GET entries/<id> |
One live entry in all its languages, resolved. See Entries. It gives 404 when the entry is not live. |
GET list/<entry id>?… |
Records of a module for an overview, with paging, sorting and facets. See Lists and modules. |
GET files, GET files/<id> |
Every file that may leave, or one file. See Files and images. |
GET files/<id>/original, …/webp/<width>, …/avif/<width>, …/og |
The bytes of a file. |
GET fonts/<file id> |
A font file. |
GET forms/<id>, POST forms/<id>/submit |
See Forms. |
GET search?q=&lang=&offset=&limit= |
See Search. |
GET data/<service>/<part> |
Data that an integration brought, such as exchange rates, with fetched_at and max_age. |
GET /delivery/v1/shortcodes |
The definitions of the shortcodes. This call is not under a site. |
POST reports |
See Reports. |
The CMS also gives JSON-LD that is ready to use. See Structured data.
Answers
- Every answer is JSON, with an
ETag.If-None-Matchgives a304. - The error codes are:
401without a good token;403for anything that the token does not read. What does not exist gets the same answer;405;429, withRetry-After.
?format=portableadds Portable Text next to every HTML text.
Try it
Every site has an API explorer, under Settings → API explorer. It shows these answers, per environment.
Also called: API reference, REST endpoints, content API, headless API.
Last changed