Skip to content

API

This page is generated from package source documentation in the Capell packages repository and the checked-in manifest. Source documentation is not distribution status. Before running a Composer command, verify that the exact package and compatible 1.x release are available through public Packagist or the authenticated marketplace account.

FieldValue
Composer packagecapell-app/api
Package slugapi
Product groupCapell Publishing
Tierfree
Bundlepublishing
Runtime contextsfrontend
Capell version^1.0
Catalogue roleextension
Release channelBeta
Source repositorycapell-app/api
Docs sourcepackages/api/docs
Manifestcapell.json

You can show your published Capell pages on a separate website or mobile app, such as one built with Next.js or Nuxt. Your editors keep working in Capell as they do now.

Your developer can ask for one page by its address, list pages by type, search page titles or fetch a directory of pages. Lists arrive twenty at a time by default, up to a hundred, and each list points to the next batch if there is one. Pages that are live today are the only ones returned, and their content is cleaned of anything unsafe on the way out. The access is read-only and adds no admin screen. Drafts stay private unless your developer uses a personal key made for previewing.

When an editor publishes, saves or deletes a page, or a page’s dates pass, Capell can send your front end a signed message. Sending starts once your developer has added the front end’s address and a secret, and the messages go out as background jobs, which your developer or host keeps running. Each message names the site and page that changed.

  • Price and availability: Check current availability and price on the Capell Marketplace listing.
  • Licence: Check the licence terms on the Capell Marketplace listing.
  • Requires: PHP ^8.4, capell-app/core ^1.0.76, capell-app/layout-builder ^1.0, laravel/sanctum ^4.0, spatie/laravel-package-tools ^1.14.1, symfony/html-sanitizer ^7.0|^8.0.
  • Install: composer require capell-app/api.
  1. Install the package: composer require capell-app/api.
  2. Run php artisan route:list and verify the package routes are registered.

ResolveApiRequestContextAction, BuildPublicPagePayloadAction, and BuildPublicLayoutPayloadAction keep request resolution, sanitization, and layout bounds outside the controller.

  • Configuration files: config/capell-api.php.
  • Install the required Capell packages at the versions in composer.json: capell-app/core ^1.0.76, capell-app/layout-builder ^1.0.
  • Review middleware, throttling, signatures, and public-output safety in routes/api.php before exposing routes.
  • Keep public Blade and cached HTML free of authoring markers, model IDs, permissions, signed editor URLs, and lazy database queries.
  • Custom write integrations must preserve invalidation for api cache tags.

Studio journal home page rendered by the Next.js starter

Page directory rendered by the Next.js starter

  • Studio journal home page rendered by the Next.js starter (frontend).
  • Page directory rendered by the Next.js starter (frontend).
  • Published article rendered by the Next.js starter (frontend).
  • JSON response returned for a published page (frontend).
  • JSON response describing a page layout and the areas it contains (frontend).
  • Page resolve forbidden JSON response (frontend).
  • Page resolve not found JSON response (frontend).
  • Required packages: capell-app/core, capell-app/layout-builder.
  • Admin navigation: no admin page or resource contribution is declared.
  • Admin/editor extensions: none declared.
  • Permissions: no package permission declarations or Shield gates detected; host access rules still apply.
  • Public routes: loads routes/api.php; registers ApiRoutesContribution.
  • Database changes: no package migrations declared.
  • Config: config/capell-api.php.
  • Settings: no package settings declared.
  • Queues or schedules: queue jobs DeliverRevalidationWebhookJob.
  • Cache tags: api.
  • Commands: none declared.
SymptomLikely causeCheckFix
Package surface is missing after installProvider or manifest is not loadedConfirm capell.json, package composer.json, and provider registrationReinstall the package, refresh Composer autoload, and clear host caches
Route returns unexpected outputRoute cache, middleware, or signed URL setup does not match the package route fileCheck the route files listed in Technical ShapeClear route cache and verify middleware before exposing public routes
Background work does not runQueue worker or declared schedule is not activeCheck the jobs and scheduled commands listed in Technical ShapeStart the queue worker or host scheduler, then run the focused command or package test
Public output leaks unexpected stateRender data, cache variation, or authoring boundary has regressedCheck public Blade, cache tags, and public-output safety testsMove data loading out of Blade and rerun the package public-output tests

No manual steps between minor versions.

Read CHANGELOG.md before upgrading.