All API endpoints require JWT token-based authentication.
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
}
Include in the Authorization header for all further API calls:
Authorization: Bearer <access_token>