OAuth2 Authentication

OAuth2 is a protocol that gives an API client limited data access. OAuth2 relies on authentication inputs to generate new temporary access.
To generate an access token, simply call the "/token" route by sending the following payload:

{
    "clientId": "id",
    "clientSecret": "secret"
}

If the access data is correct, an answer like this will be returned:

{
    "expires_in": 3600,
    "access_token": "token"
}

The access token expires after an hour that has been generated. To use the token just send the key "Authorization" in the header with the value "Bearer + token"