Authentication API
To interact with the SentinelOS API, you must obtain a JWT token and include it in the Authorization: Bearer header for all subsequent requests.
POST
/api/login Authenticates an administrator and returns a JWT token.
Cuerpo de la Petición
{
"username": "admin",
"password": "your_secure_password"
} Response (200 OK)
{
"token": "eyJhbG...",
"expires_in": 3600
}