Question
Status 401: "Unauthorized", "message": "Oauth token is not valid"
Dear All,
I am creating a simple single page mobile app built using SAP MDK which creates a PDF document from .docx template using merge API. However, after recieing the bearer token when I make my call to
"response": {
"status": 401,
"statusText": "UNAUTHORIZED",
"text": "{ \"error\": { \"code\": \"Unauthorized\", \"message\": \"Oauth token is not valid\", \"details\": { \"error_code\": \"401013\" } } }\n".
My Code:



I have obtained the bearer token following: https://developer.adobe.com/developer-console/docs/guides/authentication/ServerToServerAuthentication/implementation/#generating-access-tokens-programmatically
But still I get the unauthorized error.
Note: The same credentials /token work from Postman and some other Low code no code tools like SAP BUILD Apps.
Best Regards,
Geet
