function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Elia GandolfiElia Gandolfi 

POSTMAN: Invalid session ID even with correct security token

I'm brand new to Salesforce REST API.
I need to send a GET request to query a list of records.
Everything works great in Workbench, that means my apex class is fine.

But, when I try to do the same from Postman, I keep receiving an "errorCode":"INVALID_SESSION_ID". I followed step-by-step this (http://www.youtube.com/watch?v=WdAhD6p1nKM)video and created my connected app exactly as he does.
User-added image
In Postman, I can correctly get the security token, but when sending the request I still can't authenticate.
User-added imageI'm trying all this in a Sandbox of which I'm an administrator. Can the error be due to some app permission settings I'm not aware of? 

 
Best Answer chosen by Elia Gandolfi
Khan AnasKhan Anas (Salesforce Developers) 
Hi Elia,

Greetings to you!

Please refer to the below links which might help you further with the above issue.

https://developer.salesforce.com/forums/?id=906F0000000DEvGIAW

https://stackoverflow.com/questions/56118080/salesforce-integration-invalid-session-id-using-postman

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas

All Answers

Khan AnasKhan Anas (Salesforce Developers) 
Hi Elia,

Greetings to you!

Please refer to the below links which might help you further with the above issue.

https://developer.salesforce.com/forums/?id=906F0000000DEvGIAW

https://stackoverflow.com/questions/56118080/salesforce-integration-invalid-session-id-using-postman

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
This was selected as the best answer
Elia GandolfiElia Gandolfi
Thank you Khan, your second link solved my issue.
In the end it's actually a Postman issue. I used this alternative chrome plugin and it worked great
https://chrome.google.com/webstore/detail/advanced-rest-client/hgmloofddffdnphfgcellkdfbfbjeloo?hl=en-US
Leo BarnoskiLeo Barnoski
Get lates stock of just cavalli rose gold men watch (https://finnessebay.com/).