Reference

Guide

api

Set options for Kirby's REST API

You can completely disable the API for the frontend or set a custom slug. The default slug is api.

Disable the API

return [
  'api' => false
];

Change the API slug

return [
  'api' => [
    'slug' => 'rest'
  ]
];

Allow insecure requests

By default authentication via basic auth is only permitted when https is enabled. In rare cases (e.g. during local development), it might be necessary to allow basic auth even when https is not enabled.

return [
  'api' => [
    'allowInsecure' => 'true'
  ]
];