v1

latestSwagger 2.0Apache 2.02026-07-17171644.0 KB
Authentication

Authenticate with username and password

Logs in a user with username and password and returns authentication tokens

post/auth/login

Request body

passwordstring

Password for authentication

usernamestring

Username for authentication

Example request

{
  "password": "password123",
  "username": "admin"
}

Response

Authentication tokens

access_tokenstring

JWT access token used for API authorization

expires_atstring

When the access token expires

refresh_tokenstring

JWT refresh token used to obtain new access tokens

Example response

{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "expires_at": "2025-04-25T12:00:00Z",
  "refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}