Rest API V1 calls failing with oAuth access token
I am using oAuth2 to generate the access token and use v1 rest api calls with them.
curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer <access token>" -H "client-id:<client-id>" 'https://api.stage.lithium.com/community/v1/arrival/boards/nested?restapi.response_format=json'
Response:
{"response":{"status":"error","error":{"code":302,"message":"User authentication failed."}}}
However, using just the client-id in headers makes the API call successful.
curl -X GET -H "Content-Type: application/json" -H "client-id: <client-id>" 'https://api.stage.lithium.com/community/v1/arrival/boards/nested?restapi.response_format=json'
The above provides success response.
The calls with access token were working some time back, but don't work anymore. Have tried generating new tokens, but still get the same response with all API calls.
The documentation https://community.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=commv1&page=apicall also says that only client-id is needed in the header. Is this a recent change in the API or am I missing something?
Thanks in advance.