Skip to main content
LuminRabbit
Inspiring
August 18, 2023
Answered

Adobe Photoshop API {"error_code":"401013","message":"Oauth token is not valid"}

  • August 18, 2023
  • 1 reply
  • 1250 views
I have OAuth Server-to-server setup for the Adobe Photoshop API. When I initialize the call to the endpoint https://image.adobe.io/pie/psdService/photoshopActions I get a 200 response (_links self href) with the job id at the end.
{
  "_links": {
    "self": {
      "href": "https://image.adobe.io/pie/psdService/status/b6b387d1-3368-447d-9fb6-5ee3c5539183"
    }
  }
}
The problem is when I paste this into another browser window I keep getting:
{"error_code":"401013","message":"Oauth token is not valid"} 
In my photoshop developer console I see the quota used is also registering the calls made. 
If my the api call is being made and the response (200) is working as above why do I continue to
get "Oauth token is not valid"?
I'm using OAuth server-to-server 
 The endpoint POST Im calling is the Execute Photoshop Actions.
Any help would be greatly appreciated! 
This topic has been closed for replies.
Correct answer LuminRabbit

The error you are receiving is because that link expects proper authorization. You should be making a GET request with the proper Authorization headers (same one you used to make the POST call). Once the job is completed you will receive a new link to the output in the response to your GET request. See here for more details about the status endpoint https://developer.adobe.com/photoshop/photoshop-api-docs/api/#tag/Photoshop/operation/pitsstatus

1 reply

LuminRabbit
LuminRabbitAuthorCorrect answer
Inspiring
August 20, 2023

The error you are receiving is because that link expects proper authorization. You should be making a GET request with the proper Authorization headers (same one you used to make the POST call). Once the job is completed you will receive a new link to the output in the response to your GET request. See here for more details about the status endpoint https://developer.adobe.com/photoshop/photoshop-api-docs/api/#tag/Photoshop/operation/pitsstatus