“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. Hello there! This article couldn’t be written any better!
    Looking at this post reminds me of my previous roommate!

    He always kept talking about this. I will send this post to him.
    Fairly certain he will have a very good read. Thanks for sharing!

  2. First of all I want to say terrific blog! I had a quick question that I’d like to ask if
    you do not mind. I was interested to find out how you center yourself and clear your thoughts
    before writing. I’ve had a hard time clearing my thoughts in getting my ideas out there.
    I truly do enjoy writing but it just seems like the first 10 to 15 minutes are wasted
    simply just trying to figure out how to begin. Any ideas
    or tips? Kudos!

  3. Wow that was unusual. I just wrote an incredibly long comment but after I clicked submit my comment didn’t show up.
    Grrrr… well I’m not writing all that over again. Anyways, just wanted to say superb
    blog!

  4. Have you ever thought about writing an ebook
    or guest authoring on other websites? I have a blog based upon on the same
    information you discuss and would love to have you share some stories/information. I know my audience would appreciate
    your work. If you are even remotely interested, feel free to shoot me
    an email.

  5. Please let me know if you’re looking for a author for your weblog.
    You have some really good articles and I believe
    I would be a good asset. If you ever want to take some of the load
    off, I’d love to write some content for your blog in exchange for a
    link back to mine. Please shoot me an e-mail if interested.

    Thank you!

  6. Everything is very open with a precise clarification of the issues.

    It was really informative. Your site is very useful.
    Many thanks for sharing!

  7. Hmm it appears like your site ate my first comment (it was extremely long) so I guess I’ll just sum it up what I had written and
    say, I’m thoroughly enjoying your blog. I as
    well am an aspiring blog blogger but I’m still
    new to the whole thing. Do you have any recommendations
    for beginner blog writers? I’d definitely appreciate
    it.

  8. Lisa Payne on Four out of 5 celebrities Instant transport and very well packed thank
    your self Floating Shelf Selfmade Rustic Striking shelf Dwelling – Dining – Toilet – ***FREE British isles Delivery***

  9. I loved as much as you’ll receive carried out right here.
    The sketch is tasteful, your authored subject matter stylish.
    nonetheless, you command get bought an impatience over that you
    wish be delivering the following. unwell unquestionably come more
    formerly again since exactly the same nearly a lot often inside case
    you shield this increase.

  10. Unquestionably imagine that which you said.
    Your favorite justification appeared to be on the
    web the easiest thing to remember of. I say to you,
    I definitely get irked even as people think about worries that they plainly don’t recognize about.
    You managed to hit the nail upon the highest and outlined out
    the entire thing with no need side-effects , folks can take a signal.
    Will likely be back to get more. Thanks

  11. Hello! I simply wish to give you a huge
    thumbs up for your great information you’ve got here on this post.
    I will be returning to your website for more soon.

  12. 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 waste your intelligence on just posting videos to your weblog when you could be giving us
    something informative to read?

  13. I’m truly enjoying the design and layout of your blog.
    It’s a very easy on the eyes which makes it much more enjoyable for me to come here and visit more often. Did you hire out
    a designer to create your theme? Great work! asmr 0mniartist

  14. For latest news you have to pay a visit web and on world-wide-web I
    found this web page as a most excellent website
    for hottest updates.

  15. Incredible! This blog looks exactly like my old one!
    It’s on a totally different topic but it has pretty much the same layout and design. Excellent choice of colors!

  16. I am sure this paragraph has touched all the internet visitors, its really
    really fastidious paragraph on building up new weblog.

  17. Hello! I’m at work surfing around your blog from my
    new apple iphone! Just wanted to say I love reading through your blog and look forward to all your posts!

    Carry on the great work!

Comments are closed.