v13

latestOpenAPI 3.0.0zlibraw.githubusercontent.com2026-08-01265409652.5 KB
auth

Authenticate

Access policy: public Use this environment(endpoint) to authenticate against Portainer using a username and password.

post/auth

Request body

Passwordstring required

Password

Usernamestring required

Username

Example request

{
  "Password": "mypassword",
  "Username": "admin"
}

Response

Success

jwtstring

JWT token used to authenticate against the API

Example response

{
  "jwt": "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzAB"
}