API
Package docs status
Section titled “Package docs status”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.
| Field | Value |
|---|---|
| Composer package | capell-app/api |
| Package slug | api |
| Product group | Capell Publishing |
| Tier | free |
| Bundle | publishing |
| Runtime contexts | frontend |
| Capell version | ^1.0 |
| Catalogue role | extension |
| Release channel | Beta |
| Source repository | capell-app/api |
| Docs source | packages/api/docs |
| Manifest | capell.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.
Quick Start
Section titled “Quick Start”- Install the package:
composer require capell-app/api. - Run
php artisan route:listand verify the package routes are registered.
For Developers
Section titled “For Developers”ResolveApiRequestContextAction, BuildPublicPagePayloadAction, and BuildPublicLayoutPayloadAction keep request resolution, sanitization, and layout bounds outside the controller.
Configure
Section titled “Configure”- Configuration files:
config/capell-api.php.
Limits And Pitfalls
Section titled “Limits And Pitfalls”- 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.phpbefore 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
apicache tags.
Screens And Workflow
Section titled “Screens And Workflow”

- 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).
Install Impact
Section titled “Install Impact”- 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; registersApiRoutesContribution. - 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.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Likely cause | Check | Fix |
|---|---|---|---|
| Package surface is missing after install | Provider or manifest is not loaded | Confirm capell.json, package composer.json, and provider registration | Reinstall the package, refresh Composer autoload, and clear host caches |
| Route returns unexpected output | Route cache, middleware, or signed URL setup does not match the package route file | Check the route files listed in Technical Shape | Clear route cache and verify middleware before exposing public routes |
| Background work does not run | Queue worker or declared schedule is not active | Check the jobs and scheduled commands listed in Technical Shape | Start the queue worker or host scheduler, then run the focused command or package test |
| Public output leaks unexpected state | Render data, cache variation, or authoring boundary has regressed | Check public Blade, cache tags, and public-output safety tests | Move data loading out of Blade and rerun the package public-output tests |
Upgrading
Section titled “Upgrading”No manual steps between minor versions.
Read CHANGELOG.md before upgrading.
Next Steps
Section titled “Next Steps”- Package docs
- Overview
- Configuration files:
config/capell-api.php. - Troubleshooting
- Developer reference
- Marketplace assets
- Capell content language plan
- Capell documentation design system
- Capell and package ERD notes
- Related packages: Layout Builder.