Skip to main content
Participant
March 28, 2023
Question

Problems with Authorization

  • March 28, 2023
  • 1 reply
  • 572 views

I am trying to use the photoshop API, I read the docs of the authorization and it says the way to connect with this api is the OAUTH token, but when created a project i dont show the option to conect it the Oauth, only the JWT, but when I tryed to  use the POSTMAN with the JWT, it says that OAUTH token is not valid.

Some know where I can find this oauth or if i am doing some thing wrong


This topic has been closed for replies.

1 reply

Community Manager
March 28, 2023

Sorry to hear about the issues you are facing. Do you mind sharing a link to the docs your using and if possible the payload you are sending to authenticate?

We recommend follwing the instructions here to get you going https://developer.adobe.com/photoshop/photoshop-api-docs/getting-started/

 

Participant
March 28, 2023

I tryed  again, I run the getting started code, and it worked perfectly, but  when I used the coda sample 

, but with my api key and me token it returns the erro "

{"error_code":"401013","message":"Oauth token is not valid"}"
curl -X POST \
  https://image.adobe.io/pie/psdService/documentManifest \
  -H "Authorization: Bearer $token"  \
  -H "x-api-key: $apiKey" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": [
    {
      "href":"<YOUR_PRESIGNED_URL>",
      "storage":"<storage>"
    }
  ]
}'