# API documentation

Portainer exposes an HTTP API that you can use to automate everything you do via the Portainer UI. You can also use Portainer as a gateway (HTTP queries against the Portainer API) to the underlying Docker/Kubernetes API.

{% hint style="info" %}
You will need an access token in order to use the Portainer API. If you have not already set up an access token for the API, we have [instructions on how to do so](https://docs.portainer.io/2.33-lts/api/access).
{% endhint %}

You can find our API documentation at SwaggerHub:

* [Business Edition (BE) 2.33.7 API Documentation](https://app.swaggerhub.com/apis/portainer/portainer-ee/2.33.7)
* [Community Edition (CE) 2.33.7 API Documentation](https://app.swaggerhub.com/apis/portainer/portainer-ce/2.33.7)

We have also provided some examples of API usage.

{% content-ref url="examples" %}
[examples](https://docs.portainer.io/2.33-lts/api/examples)
{% endcontent-ref %}
