PhotoShop API Error | Community
Skip to main content
September 30, 2022
Question

PhotoShop API Error

  • September 30, 2022
  • 1 reply
  • 1191 views

Hello


I have created project for Adobe Photoshop API (Trial)

 

I have JWT token 

I am able to generate Bearer AccessToken properly. Following is the code :

var client = new RestClient("https://image.adobe.io/lrService/edit");
var request = new RestRequest(Method.POST);
request.AddHeader("cache-control", "no-cache");
request.AddHeader("Authorization", bearertoken);
request.AddHeader("x-api-key", ApiKey);
request.AddHeader("Content-Type", "application/json");
request.Parameters.Clear();

string data = "{\"inputs\": {\"source\": {\"href\": \"unedited/image.jpg\",\"storage\": \"external\"}},\"options\": {\"Whites\": 80},\"outputs\": [{\"href\": \"edited/image.jpg\",\"type\": \"image/jpeg\",\"storage\": \"external\"}]}";

request.AddParameter("application/json", data, ParameterType.RequestBody);

string responseFromServer = "";
IRestResponse response = client.Execute(request);
responseFromServer = response.Content;


I am getting response as :
{"error_code":"401013","message":"Oauth token is not valid"}


Please help me out with this error, how I can resolve it please advise.

 

thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

erinferinferinf
Adobe Employee
Adobe Employee
January 11, 2023

Hi!

 

Were you able to resolve this? 

 

The team behind this API opened a new forum board here: https://community.adobe.com/t5/photoshop-developers/ct-p/ct-photoshop-developers?page=1&sort=latest_replies&filter=all&lang=all&tabid=bugs