Adobe Analytics v2.0 - OAuth2.0 Integration - Profile Not Valid Error (403025)
We have successfully created OAuth 2.0 project type and were able to retrieve an OAuth2.0 access token using below approaches
- Using OAuth 2.0 Playground - Steps from https://adobeioruntime.net/api/v1/web/io-solutions/adobe-oauth-playground/oauth.html
- Using OAuth 2.0 in POSTMAN - Steps from https://github.com/AdobeDocs/analytics-2.0-apis/blob/master/oauth-postman.md
- Using OAuth 2.0 REST APIs from React JS code as documented at https://www.adobe.io/developer-console/docs/guides/authentication/OAuth/
Using all the three approaches, we are able to get back OAuth 2.0 access token.
However, when using any of the above token to call adobe analytics v2.0 REST api, we encounter 403025 Profile Not Valid Error. We have tried making the API request from React JS code and POSTMAN/curl resulting in same error.
Pasting a sample request that’s failing with headers -
- For the header x-api-key, we are sending client ID that was used to generate OAuth access token.
- For the header x-proxy-global-company-id, we are sending value of Global Company ID retrieved as documented in https://github.com/AdobeDocs/analytics-2.0-apis/blob/master/oauth-postman.md
$ curl --request POST 'https://analytics.adobe.io/api/reports' \
> --header 'Content-Type: application/json' \
> --header 'x-api-key: <<CLIENT ID>> \
> --header 'x-proxy-global-company-id: <<GLOBAL COMPANY ID>>' \
> --header 'Authorization: Bearer <<ACCESS TOKEN>>' \
> --data-raw '{ <<POST BODY>> }'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3056 0 58 100 2998 49 2568 0:00:01 0:00:01 --:--:-- 2618
{"error_code":"403025", "message":"Profile is not valid"}
Can you please guide us on what could be the possible reasons for receiving above error and possible remediation?
