Exchanges an authorization code or refresh token for an access token
curl --request POST \
--url https://api.light.inc/oauth/token \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'client_id=<string>' \
--data 'client_secret=<string>' \
--data 'grant_type=<string>' \
--data 'code=<string>' \
--data 'redirect_uri=<string>' \
--data 'refresh_token=<string>'{
"access_token": "<string>",
"expires_in": 123,
"token_type": "<string>",
"refresh_token": "<string>"
}Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.
curl --request POST \
--url https://api.light.inc/oauth/token \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'client_id=<string>' \
--data 'client_secret=<string>' \
--data 'grant_type=<string>' \
--data 'code=<string>' \
--data 'redirect_uri=<string>' \
--data 'refresh_token=<string>'{
"access_token": "<string>",
"expires_in": 123,
"token_type": "<string>",
"refresh_token": "<string>"
}