You can completely disable the API for the frontend.
return [ 'api' => false ];
You can set a custom slug. The default slug is
return [ 'api' => [ 'slug' => 'rest' ] ];
All endpoints are now available at
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 ] ];
Check out the API extension reference to learn more about adding custom API endpoints, models, collections or more. Instead of using a plugin, you can add them to your config options in the same manner.