[SalesForce] 401 Unauthorized error when calling rest service in salesforce from external tool

I am trying to call a rest service(works fine in workbench) from a external tool and I am getting the following error

[{"message":"Session expired or
invalid","errorCode":"INVALID_SESSION_ID"}]

Best Answer

You have written AUthorization as Oauth in your request header. Please make that Bearer as shown below

enter image description here

Related Topic