GOAL: Use Insomnia REST Client to get data from Salesforce (REST API), in order to implement a server to server solution where I get data (programmatically) from Salesforce without interactively login.
What I have done:
- configure an App in Salesforce to get a
client_id
andclient_secret
- Reset security token to use with the username password.
password
=PASSWORD
+SECURITY TOKEN
, see below
I am able to get an access_token
with 200 OK
Then I use the access_token
above to get data by setting Authorization
bearer as a header. It fails with Session expired or invalid
401 Unauthorized
Any pointers on what I am doing wrong? or on how to use Insomnia REST client?