Skip to content

API

Authentication

To authenticate, first create an API key via php artisan create:apikey, then use the returned token as the authentication bearer, e.g. as the field <token> in Authentication: Bearer <token>.

Executing commands in containers

If you're using a container you need to use execute the command inside of the container. For example, if you're using Docker you must prefix the command with docker exec and specify the container name. Here's an example where we assume that the container is control-center:

docker exec -it --user www-data control-center COMMAND [ARGUMENTS...]

API v1

Interactive reference for the Control Center API v1.