/authenticate

POST /authenticate

This request returns an access token. Once the access token has expired, you should re-authenticate to request another access token. BEWARE: you cannot call this endpoint more than 180 (embedded API users: 15) times per hour, per IP and per username.

The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

Request example

POST /v2/authenticate HTTP/1.1
Host: api.lions.at
Content-Type: application/json
Content-Length: length

{
    "username": "string",
    "password": "string"
}

Response example

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{
    "access_token": "b1af028c19bd248702821b73399a784d5bc22702...",
    "expires": 1732256976,
    "name": "John Doo",
    "identifier": "nC9kRCSvejxK6ONppKNRaHV1y3k=",
    "club": 12345
}