“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. Having read this I believed it was very enlightening.
    I appreciate you taking the time and effort to put this informative article together.
    I once again find myself spending a significant amount
    of time both reading and commenting. But so what, it was
    still worthwhile!

    Also visit my webpage; joker123Com; 918kiss-m.com,

  2. Heya i’m for the first time here. I found this board and
    I in finding It truly helpful & it helped me out a lot.
    I am hoping to provide something back and aid others like you helped me.

    my homepage apl playboy2

  3. Pretty nice post. I just stumbled upon your blog and wished to
    say that I have really enjoyed browsing your blog posts.
    After all I will be subscribing to your feed and I hope
    you write again very soon!

    Feel free to visit my blog post … 918kaya slot

  4. Howdy! I know this is kinda off topic nevertheless I’d figured I’d ask.
    Would you be interested in trading links or maybe guest authoring a blog
    article or vice-versa? My blog goes over a lot of the
    same subjects as yours and I feel we could greatly benefit from each other.
    If you’re interested feel free to send me an e-mail. I look forward
    to hearing from you! Superb blog by the way!

    My webpage: puccy888; 918kiss-m.com,

  5. Excellent post however , I was wanting to know if you could write a litte more on this topic?
    I’d be very grateful if you could elaborate a little bit more.
    Bless you!

    Feel free to surf to my web blog – epicwin ios

  6. Admiring the time and effort you put into your site
    and in depth information you offer. It’s good to come across a blog every once in a while that isn’t the same outdated rehashed information. Excellent read!
    I’ve bookmarked your site and I’m including
    your RSS feeds to my Google account.

    Here is my web site … greatwall99 online

  7. Write more, thats all I have to say. Literally, it seems as though you relied on the video to
    make your point. You obviously know what youre talking about, why throw away your
    intelligence on just posting videos to your site when you could
    be giving us something enlightening to read?

    Here is my website – lpe88 download android

Comments are closed.