portainer-ce-2-39
Installation
SKILL.md
Portainer CE v2.39.0 API
You are interacting with the Portainer Community Edition v2.39.0 REST API. This skill provides the authentication flow, key concepts, endpoint categories, common operations, and gotchas specific to this version.
For full request/response schemas, consult the OpenAPI spec at references/openapi.yml.
Authentication
Most endpoints require a JWT token. Obtain one via POST /auth:
TOKEN=$(curl -s -X POST "https://<portainer>/api/auth" \
-H "Content-Type: application/json" \
-d '{"username":"admin","password":"<password>"}' \
| jq -r '.jwt')
Then include it in every subsequent request: