REST API - Login

To make use of the REST API, a valid JWT access token must be provided with every request.
You can request a JWT access token with the login endpoint.

Endpoint

/login

Headers

A valid Authorization in the request is needed along with the version number to authenticate and authorize the request.
Replace CREDENTIALS with a valid Base64 encoding of username and password joined by a single colon ':' [username:password].

Authorization: Basic CREDENTIALS
Api-Version: 3.0
Content-Type: application/json

Login Request

Method: GET
Response: 200 OK

Login Response

The response format is a JSON body with http code 200 OK.
If an error occurred an Error response will be generated.

Field Type Comment
AccessToken string Access token to be used with subsequent requests
TokenType string Type of the token
ExpiresIn int Time in seconds when the token expires
{
    "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.neH25HJhbfGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9BpVXNlciIsImV4cCI6MTYz.Mjc2NzU2NywiaXhdhdshberfd",
    "tokenType": "Bearer",
    "expiresIn": 600
}