Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,200 of 9,200 pages
About the help in other languages
All help pages

Headless with the REST API

What it means for a business to use Exponential as the content back end of an app or a separate front end - what stays in Exponential, what your developers build, the REST API's capabilities and limits, preview…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/businesses/mobile-and-headless/headless-with-the-rest-api.md

On this page

Headless with the REST API

This page is for managers and product owners who plan an app or a separate front end that shows content managed in Exponential. "Headless" means Exponential keeps the content, editing and permissions, while another program does the presentation. This page explains what that division means for your team and your budget, what the API can and cannot do today, and what to put in a brief for developers. The technical guide is Headless Exponential.

Contents

  1. What stays in Exponential, and what you build
  2. Which API for which job
  3. What the REST API does
  4. Things to plan early
  5. What does not exist (yet)
  6. Briefing developers or an agency

What stays in Exponential, and what you build

From Headless Exponential:

Kept in ExponentialBuilt by your front end
Content classes, editing, versions, translations, workflowsPage templates, menus, the page frame
Roles and policies, checked on every API callRouting and URL handling
The administration and the layouts editor for editorsRendering of layouts
Search, media storage, image aliasesClient-side state and caching

Your editors' work does not change: they publish in the administration as before. What you add is a second program that has to be designed, built, hosted and maintained.

Which API for which job

APIForRead
REST v1 and v2 (ezprestapi)Reading nodes, children and fields; creating and removing content; OAuth for appsREST API v1 and v2 for businesses
expservicesThe administration's functions as services, with discovery and tokensRemote services
ezjscore server functionsSmall JSON endpoints your own developers writeJSON endpoints with ezjscore

For an app that shows your content, the REST API is the usual choice.

What the REST API does

From REST API v1 and v2 for applications:

  • Reads a node, its children (in pages, with offset and limit), the number of children, and fields, by node or object id, at v1 and v2.
  • Creates and removes content at v2 only.
  • Gives a rich text field's value as plain text. OutputFormat=xhtml adds the node rendered by templates, which gives markup only once a developer has written the rest view templates for it.
  • Gives an image field as the path of its original file only, without the resized versions (aliases). The app asks for alias addresses through the remote services (expimage::url, expimage::urls); define aliases for the sizes your app needs.
  • Checks the user's policies on every read and write, whatever credential was used.
  • Requires authentication by default; public front ends use "a read-only integration user" whose key stays on your server.

Things to plan early

TopicWhy it mattersSource
PreviewEditors preview with the site's templates; a headless front end "needs its own preview", a protected route that reads drafts. "Plan this early; it is the part teams forget."Preview and drafts
Caching and purgingThe REST framework has an answer cache; the front end or a CDN caches too, and must be told when content is published, for example by a workflow event that calls your purge hookCaching and performance
Links inside contentLinks in rich text point to site addresses; the front end maps them to its own routesRich text, images and links
CredentialsWhich key or token the app uses, and who can revoke itApps and API keys
SEOContent inside an app is not indexed; a website still carries search visibilityMobile strategy

Tip

"Start hybrid unless there is a reason not to": keep the website in Exponential's templates and add the app on the API. Preview, layouts and SEO stay simple for the site (Hybrid: templates and API together).

What does not exist (yet)

Stated honestly, from the sources:

  • The REST route listAtom answers 500 at v1 and v2; use the list route or the site's RSS export instead (8. Known issue: listAtom).
  • The REST API updates content only with ezprestapi 1.2.9 and Exponential 6.0.15 (each update is a new version). The kernel's GraphQL API can update too, with its mutation updateContent; it is off until it is switched on (The GraphQL API).
  • The documentation describes no push-notification service; notifications to a phone are your app's own back end.
  • Layouts are rendered by the site's templates; a headless front end renders them itself.

Briefing developers or an agency

Include in the brief:

  • To do: Which content the app reads (classes, folders, languages) and whether it writes anything.
  • To do: Which credential it uses, held where, rotated how (Apps and API keys).
  • To do: The integration user's role: read only, limited to the folders the app needs.
  • To do: How editors preview content in the app before publishing.
  • To do: How the app learns that content changed (polling with limits, or a purge hook on publish).
  • To do: Image sizes the app needs, so matching aliases are defined, and how the app fetches their addresses.
  • To do: What the app shows when the API does not answer (App backend reliability).
  • To do: That every request goes over HTTPS (rest.ini [Authentication] RequireHTTPS can refuse plain HTTP).

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x