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/packages
Source pathpackages/api
Docs sourcepackages/api/docs
Manifestcapell.json

API is an Available, No schema impact Capell package in the Capell Publishing product group. It ships as capell-app/api and extends these surfaces: frontend.

API adds versioned public JSON endpoints for resolving published Capell pages and bounded Layout Builder graphs.

The package adds no admin screen. Headless clients can resolve a published page and request its sanitized public layout payload through the documented API routes.

Status details:

  • Status: Available
  • Tier: free
  • Bundle: publishing
  • Composer package: capell-app/api
  • Namespace: Capell\Api
  • Theme key: not applicable

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

For teams: A separate frontend can consume published Capell content without receiving draft, admin, or authoring state.

Screenshot contract: docs/screenshots.json.

Illustrative successful page resolve json response preview Illustrative successful page resolve json response preview Page resolve layout graph JSON response Page resolve layout graph JSON response
  • Illustrative successful page resolve json response preview (frontend, required evidence).
  • Page resolve layout graph JSON response (frontend, required evidence).
  • Page resolve forbidden JSON response (frontend, supplementary evidence).
  • Page resolve not found JSON response (frontend, supplementary evidence).
  • Capell\Api\Providers\ApiServiceProvider
  • packages/api/config/capell-api.php
  • packages/api/routes/api.php
  • BuildPublicLayoutPayloadAction
  • BuildPublicPagePayloadAction
  • ResolveApiRequestContextAction
  • ValidatePublicLayoutPayloadBoundsAction
  • PublicPagePayloadOptionsData
  • ResolveApiRequestContextData
  • health-check: Capell\Api\Health\ApiHealthCheck
  • route: Capell\Api\Manifest\ApiRoutesContribution
  • Capell\Api\Health\ApiHealthCheck
  • api
  • api:pages

This package has no schema impact. It extends Capell through health-check contributions and route contributions instead of declaring package-owned tables.

  • 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: none declared.
  • Cache tags: api, api:pages.
  • Commands: none declared.
  • Keep required Capell packages on compatible v4 releases: capell-app/core, capell-app/layout-builder.
  • Review package configuration before production-like verification: config/capell-api.php.
  • 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, api:pages cache tags.
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
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
  1. Install the package: composer require capell-app/api.
  2. Open /api/capell/v1/pages/resolve?url=/&include=layout&containers=main and confirm the public output renders without admin state.