In short
This is the HTTP API of the Core, generated from its route files. It is for developers who build
Sites, Modules or Add-ons and need to know which route answers what and what access it checks.
How it fits
A Site calls the Core from its own server and forwards browser traffic through same-origin proxy routes. The
Core serves /api/v1/* for server-to-server calls, /api/site/* for Site administration and the CMS,
/api/operator and /api/setup for the operator pages, and routes under /api/v1/addons and
/api/v1/hooks that dispatch to Add-ons. The reference lists every route with its access rule.
What matters
Generated, not written. The reference is produced from the route files. It lists method, address and
access, but not request or response shapes. The source is linked per route.
Access is named per route. internal token is the Site token with internal scope. API token accepts a
public or internal token. session is the visitor's Site session with the access policy the guard passes.
A route with no access entry performs its own checks or none, so read its source.
Add-on routes are dispatched. Routes under /api/v1/addons and /api/v1/hooks take their access from
the Add-on dispatcher, per route.
Areas and roles are defined elsewhere. Which roles reach which Area is set in the server's authorization
document.
Example
GET /api/v1/site reads the Site, with the internal token.
GET /api/v1/site/page reads a Page, with the internal token or a CMS preview session.
GET /api/v1/site/nav reads navigation, with the internal token or a CMS preview session.
GET /api/v1/locales lists locales, with a public or internal token.
GET /api/v1/tr reads translations, with a public or internal token.
POST /api/v1/addons/jobs starts one declared Add-on job now, with the internal token.