The API can be extended with plugins. Containers can expose unix sockets that the API will reverse proxy into and make available for clients. See the API docs for the default API extensions or check the example plugin in the super repository.
A list of curated plugins is available here
Read more about how plugins are configured in the API overview.