Unable to create app using MendixPlatformClient with PTA gives 401 error code

Created app as show in https://docs.mendix.com/apidocs-mxsdk/mxsdk/creating-your-first-script/ But while running it give bellow 401 error.     any idea why this was causing?   Thank you in Advance.
1 answers

The error clearly says its 401 Unauthroized and Invalid Token. Can you show what all request body, request header data you are sending while making this call?


Once you have your PAT(personal access token) as per this documentation, then pass that in the authorization header as mxtoken <your personal access token>