API

Portainer exposes an HTTP API that you can use to automate everything you do via the Portainer UI.

Documentation

The API documentation is available on Swaggerhub and you can also find some examples here.