Expand my Community achievements bar.

Workfront Proj API reponds Authentication Exception: Authentication Exception: {0}

Avatar

Level 1

I need help calling the Workfront Proj (Project) API V21.0. I'm working on my Sandbox (sb01). When I do the call in Postman, I get the following authentication error:

 

"error": {
        "class": "com.attask.common.AuthenticationException",
        "message": "Authentication Exception: Authentication Exception: {0}"
    }

 

~~~Notes: 

 

GET https://{{tenant}}.workfront.adobe.com/attask/api/v21.0/proj/search?status=CUR

Request Headers:
Acceptapplication/json
X-Requested-WithXMLHttpRequest
AuthorizationBearer XXXXXXXXXXXXXXXXXXXXX
User-AgentPostmanRuntime/7.49.1
Postman-Token5c2d3fdc-d08d-4b5f-96c4-81bb8c4a3e16
Host: {{domain}}.sb01.workfront.adobe.com
Accept-Encodinggzip, deflate, br
Connectionkeep-alive
 
I got the Bearer token by calling:
Request Headers
Content-Typeapplication/x-www-form-urlencoded
User-AgentPostmanRuntime/7.49.1
Accept*/*
Postman-Tokend62bb7bc-7508-4166-b389-f7bab19c0933
Hosttristategt.sb01.workfront.adobe.com
Accept-Encodinggzip, deflate, br
Connectionkeep-alive
Content-Length804
  • Request Body
    1.  client_id: "{{OAuth 2 Application ID -Machine to Machine-}}"
    2.  client_secret: "{{ClientSecret}}"
    3.  jwt_token: "{{Encoded Token-See below My JWT token}}"
    4.  grant_type: "urn:ietf:params:oauth:grant-type:jwt-bearer"
 
Using jwt.io to decode My JWT, it shows:

Decoded Header

{
"alg": "RS256",
"typ": "JWT"
}

Decoded Payload

{
"iss": "{{CustomerId}}",
"sub": "{{UserID}}",
"aud": "https://{{tenant}}.sb01.workfront.com",
"exp": 1764880489,
"iat": 1764879889,
"jti": "jwt-1764879889"
}

 

Any pointers is more than welcome!

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Reply

Avatar

Level 4

Hi @JorgeHe9 ,

 

I'd check if the call works with a user API key in Sandbox. You can get/generate one here:
/setup/customer-info

 

If that works, check the profiles you have added in the credential associated with your project in the console. Make sure SB01 is selected for the credential you are using.