“This session is not valid for use with the REST API” while making query

DESCRIPTION

This error you must be getting while making query developer console OR query using api. It’s because of fact that you don’t have permission to access org using API.

SOLUTION

If Issue is taking place in developer console

Quick way to fix it to give permission “Use any API client” using profile or permission set.

NOTE: If you do not find “Use any API client” then try to enable the permission “API Enabled”.

If you are using connected App

This is happening because of connected app is not configured correctly.

On ‘API (Enable OAuth Settings)‘ panel, move ‘Access and manage your data (api)‘ option from left to right of Selected OAuth Scopes field and then save the setting.

TIP: Wait for few minute and then try. It should work.

712 thoughts on ““This session is not valid for use with the REST API” while making query”

  1. Hey would you mind sharing which blog platform you’re working
    with? I’m planning to start my own blog soon but I’m having a tough time making a decision between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your design and style seems
    different then most blogs and I’m looking for something unique.
    P.S Apologies for getting off-topic but I had to ask!
    0mniartist asmr

  2. Great blog here! Also your website loads up very fast!
    What host are you using? Can I get your affiliate link to your host?
    I wish my website loaded up as fast as yours lol

  3. I’m extremely impressed with your writing abilities and also with the
    format in your blog. Is that this a paid theme or did you modify it your self?
    Either way keep up the nice high quality writing, it’s uncommon to look a nice blog like this one nowadays..

  4. I’d like to thank you for the efforts you’ve put in writing this blog.

    I’m hoping to view the same high-grade content from you later on as well.
    In fact, your creative writing abilities has motivated me to get
    my very own website now 😉 0mniartist asmr

  5. We’re a group of volunteers and starting a new
    scheme in our community. Your site provided us with
    valuable information to work on. You have done a formidable job and our entire community will
    be grateful to you.

  6. It’s nearly impossible to find knowledgeable people on this topic,
    however, you sound like you know what you’re talking about!
    Thanks

  7. Hi everybody, here every person is sharing such knowledge, thus it’s nice to read this
    website, and I used to pay a quick visit this blog all
    the time.

  8. Hi just wanted to give you a quick heads up and let you know a
    few of the images aren’t loading properly.
    I’m not sure why but I think its a linking issue. I’ve tried it in two
    different internet browsers and both show the same outcome.
    0mniartist asmr

  9. I together with my guys happened to be reading through the
    great secrets and techniques found on your web site and so suddenly came
    up with a horrible suspicion I never expressed respect to the site owner for them.
    Most of the boys came certainly passionate to study them and have now in truth been taking advantage
    of them. Thanks for really being well accommodating and then for picking out some perfect subject
    matter millions of individuals are really eager
    to know about. My personal sincere regret for not expressing
    appreciation to sooner.

    Also visit my homepage – http://www.ravenhawksmagickalmysticalplaces.com

Comments are closed.