Installation

Drop-in installation with zero-config defaults – adds a KQL endpoint without affecting existing routes.

Install the Plugin

Composer

The recommended way to install the plugin:

composer require johannschopplich/kirby-headless

ZIP File Download

Download the latest release or head over to the releases page to see all versions. Extract the ZIP file to your site/plugins folder.

The /api/kql endpoint needs Kirby's official KQL plugin: composer require getkirby/kql.

Default Behavior

The plugin works out of the box without additional configuration. By default:

  • KQL endpoint available at /api/kql, protected by Kirby's native API authentication (bearer token auth is opt-in)
  • Sitemap endpoint at /api/__sitemap__ and template endpoint at /api/__template__/<name>, both public until you set a headless.token
  • Existing routes and templates remain unaffected until you enable global routes

Configure bearer token or basic auth under Authentication, cross-origin requests under CORS, and preview URLs and redirects under Panel.