We use salesforce in our website. I'm new to it, and still can't find a way to calls REST api to our own account without going long way of visiting oauth login page, granting access etc(oauth flow).

For example with twitter I just need consumer_key and consumer_secret to update status in my own account.

Is there same way to work with salesforce?

2 Answers 2


You either have to use one of the oAuth flows: https://developer.salesforce.com/page/Digging_Deeper_into_OAuth_2.0_on_Force.com

One of which is the username / password flow where you could use an integration user.

Or develop your own custom RESTRESOURCE


Which you can design to not required any authentication. However, this way requires you do design the rest api yourself.

  • used username/password flow, did not find another solution
    – sfasker
    Commented Aug 5, 2014 at 15:00

You can use the JWT Bearer Flow, which will give you the power to interact with SFDC in a headless (without browser) environment.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .