Authentication

All API endpoints require JWT token-based authentication.

Obtain a JWT Token

Endpoint:
POST https://{baseUrl}/login

Request Example:

{
  "username": "your-username",
  "password": "your-password"
}

Response Example:

{
    "username": "your-username",
    "roles": [
        "USER"
    ],
    "access_token": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJsYWJlbnZpcm9ubWVudCIsIm5i...",
    "token_type": "Bearer",
    "expires_in": 4800
}

Use the Token

Include in the Authorization header for all further API calls:

Authorization: Bearer <access_token>