GET /token

Exchanges an authorization code for an access token.

Resource URL

https://eu.connect-prod.blacklinesafety.com/1/token?grant_type=authorization_code&code=:auth_code&client_id=:client_id&client_secret=:client_secret

Parameters

auth_code required The authorization code from the authorize response.
client_id required Your Connect API client id.
client_secret required Your Connect API client secret.

Example Request

GET https://eu.connect-prod.blacklinesafety.com/1/token?grant_type=authorization_code&code=abcdefg1234567&client_id=abcd&client_secret=1234
{
    "access_token": "a1b2c3d4e5f6g7",
    "token_type": "bearer"
}

You can now use your access_token to request protected resources like device information.