Skip to content

API Documentation

Dokku Pro exposes all of it's functionality behind a restful API using the json-api specification. The OpenAPI spec is exposed via swagger integration for ease of development.

A copy of the OpenAPI specification is available here.


Dokku uses Token-based Authentication to exchange user credentials for an expiring JWT token. The JWT token can then be used to access any internal Dokku api endpoints.

The following is an example of authenticating via curl:


curl --silent \
     -u "${username}:${password}" \
     -H "Content-Type: application/json" \
     -d '{"data": {"type": "tokens"}}' \
     --output token.json \

# the jwt token is in the response
cat token.json | jq -r ''

The JWT token is then used for Bearer authentication to other API endpoints:

jwt_token="$(cat token.json | jq -r '')"

curl -H 'Authorization: Bearer ${jwt_token}' \
     -H "Content-Type: application/json" \