Skip to main content
LuminRabbit
Inspiring
August 18, 2023
解決済み

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

  • August 18, 2023
  • 返信数 1.
  • 1262 ビュー
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! 
このトピックへの返信は締め切られました。
解決に役立った回答 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

LuminRabbit
LuminRabbit作成者解決!
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