cURL
curl --request POST \ --url https://str.keroshospitality.com/api/v1/auth/token \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "clientId": "keros", "secret": "password" } '
{ "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "expires_in": 86400, "refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." }
Authenticate with username/password and receive JWT tokens
JWT Authorization header using the Bearer scheme. Example: "Authorization: Bearer {token}"
LoginRequest defines the authentication request payload
ClientID is the unique identifier for the client
"keros"
Secret is the client's password or secret key
"password"
Login successful
TokenResponse defines the authentication response payload
JWT token for authentication
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
Number of seconds until the access token expires
86400
Token used to obtain new access tokens