New Analytics Integration - Node? JWT? API1.4 or 2.0? Documentation?
Hello all, I've kicked of the new year with the intention of building Adobe Analytics in to my Company's CMS. It's seems like it's the worst possible time to do that as adobe services are being decommissioned and new service are appearing - but without full functionality?
I want to authenticate with Adobe Analytics and return some report information and edit segments via their respective API's. I'm using Node to do this and it will all be automated - no user interaction required (so no OAuth 2.0 consent screens - needs to be server-to-server auth).
First I tried Analytics API 1.4 (because I wasn't aware of 2.0), I got to the point of creating a jwt_bearer type 'Legacy OAuth Application' via this (temporary?) portal: https://legacy-oauth.cloud.adobe.io/
Then I just got stuck because I couldn't locate any documentation that specified the auth urls for exchanging the JWT token.
First Question:
Where can I find documentation on how to generate the payload of a valid JWT token for Adobe Analytics API 1.4? I assume that it used to be on this page that no longer exists (redirects): https://marketing.adobe.com/developer
As I was frustratingly looking around for answers Adobe Analytics API 2.0 popped up - great! Problem is 2.0 doesn't currently support service accounts. I found this out via a forum thread: Re: Creating an OAuth client for a third-party integration?
Second Question:
Does Adobe Analytics API 2.0 support service accounts, if not when will it?
Furthering that, it seems that you can actually authenticate service accounts right now - but upon attempting to use this authentication on Analytics API endpoints returns this for me: "Profile not valid"
https://analytics.adobe.io/api/${Organization ID}/collections/suites?limit=10&page=0
headers: {
x-api-key: Adobe API Key,
x-proxy-company-id: Org ID,
Content-Type: 'application/json',
Accept: 'application/json',
Authorization: 'Bearer ' + access_token
}
{
error_code: '403025',
message: 'Profile is not valid'
}
EDIT:
I originally misunderstood what was meant by Global Company ID, after locating this from using the documentation here, Overview, I now receive a different response:
{
errorCode: 'invalid_token',
errorDescription: 'User associated with ims token could not be found or company not found.',
errorId: 'auth-2fc29476-xxxx-xxxx-xxxx-c11c49cc6598'
}
Third Question:
Am I receiving this error because Analytics is not ready for use with service accounts yet?
Here are some resources I've already been looking at to try and resolve without posting here ![]()
- GitHub Docs: GitHub - AdobeDocs/analytics-1.4-apis: Documentation and helpful resources for calling the Analytics 1.4 Apis
- Swagger Docs (API 1.4): Swagger UI
- Service Account Auth (API 1.4): analytics-1.4-apis/auth_service_account.md at master · AdobeDocs/analytics-1.4-apis · GitHub
- AEC Developer Docs (Mainly dead links): Developer
- Adobe I/O JWT Quickstart Guide (API 2.0): auth-methods
Final Question:
Can I actually achieve what I am attempting right now? I don't mind using 1.4 and upgrading later, I just need to get this working ASAP!

