Adobe Target Admin API error code:403003, API key is invalid
I am trying to use the Adobe Target Admin API and I have encountered the following error while using any of the admin API request:
{
"error_code": "403003",
"message": "Api Key is invalid"
}
Note: The API key that I am using in any admin API request is same as the API key I used to generate JWT and access token using JWT.
Steps followed:
Step 1: Integration of Target API with public certificate in Adobe I/O console - Successful
Step 2: Generate JWT signed with private key - Successful
Step 3: Exchange JWT with access token - Successful
Step 4: Use the access token generated in Step-3 in an admin API request - Unsuccessful (Error Message - "Api key is Invalid")
Is it because of the fourth parameter in JWT payload from API Integration is different from that provided in sample code of Adobe I/O Authentication document? i.e.
Parameter in Sample code: 'https://ims-na1.adobelogin.com/s/ent_smartcontent_sdk': true
Parameter in JWT payload from API: "https://ims-na1.adobelogin.com/s/example_sdk": true,
JWT Payload:
{
"exp": 1524821003,
"iss": "....@AdobeOrg",
"sub": "....@techacct.adobe.com",
"https://ims-na1.adobelogin.com/s/example_sdk": true,
"aud": "https://ims-na1.adobelogin.com/c/....."
}