“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. When I initially left a comment I seem to have clicked on the -Notify me when new comments are added-
    checkbox and from now on each time a comment is added I recieve four
    emails with the exact same comment. Perhaps there is an easy method you can remove
    me from that service? Thanks a lot!

  2. Hello there, There’s no doubt that your site could possibly be having web browser compatibility issues.
    Whenever I take a look at your site in Safari, it looks fine
    however when opening in IE, it’s got some overlapping issues.
    I merely wanted to provide you with a quick heads up! Besides that, great blog!

    Review my page xe88 game online (Freddy)

  3. Have you ever thought about including a little bit more than just your articles?
    I mean, what you say is valuable and everything.

    However just imagine if you added some great pictures or videos to give your posts more, “pop”!
    Your content is excellent but with pics and videos, this blog could
    certainly be one of the most beneficial in its niche.
    Wonderful blog!

    Have a look at my page :: ntc33 game

  4. Pretty nice post. I simply stumbled upon your weblog and
    wished to say that I’ve truly enjoyed surfing around your blog posts.
    After all I’ll be subscribing in your rss feed
    and I hope you write again very soon!

    Feel free to visit my webpage :: calibetapk

  5. Wonderful work! That is the type of information that are supposed to be
    shared across the net. Shame on Google for not positioning this post upper!
    Come on over and consult with my web site .
    Thanks =)

  6. My family members always say that I am wasting my time here at web, but
    I know I am getting knowledge all the time by reading such pleasant content.

  7. You’ve made some good points there. I looked on the internet for
    more information about the issue and found most people will go
    along with your views on this site.

  8. First off I would like to say awesome blog! I had a quick question in which I’d like
    to ask if you do not mind. I was curious to find out how you center yourself and clear your head prior to writing.

    I’ve had difficulty clearing my thoughts in getting my thoughts out.

    I truly do enjoy writing but it just seems like the first 10 to 15 minutes are lost simply just
    trying to figure out how to begin. Any ideas or hints? Many
    thanks!

  9. You are so cool! I do not suppose I have read through a single thing like that before.
    So wonderful to find another person with original thoughts on this subject.
    Really.. thank you for starting this up. This website
    is something that’s needed on the internet, someone with a bit of originality!

  10. Howdy would you mind letting me know which hosting company you’re working with?
    I’ve loaded your blog in 3 completely different browsers and I must say this blog loads a lot faster then most.
    Can you suggest a good internet hosting provider at a honest price?
    Thanks a lot, I appreciate it!

    Here is my web page … love138 Download android

  11. I have to thank you for the efforts you’ve put in writing this
    website. I am hoping to see the same high-grade
    blog posts by you later on as well. In fact, your
    creative writing abilities has inspired me to get my own website now 😉

    Here is my web-site; live22 apk ios

  12. Hi there! This post couldn’t be written any better!
    Reading this post reminds me of my good old room mate!
    He always kept chatting about this. I will forward
    this post to him. Fairly certain he will have a good read.
    Thank you for sharing!

  13. Heya i’m for the first time here. I found this board and I find It truly useful
    & it helped me out a lot. I hope to give something back and aid others
    like you aided me.

  14. Howdy! I understand this is somewhat off-topic but I needed to ask.
    Does operating a well-established website like yours require a
    lot of work? I’m completely new to operating a blog however
    I do write in my journal everyday. I’d like to start a blog so I will be able
    to share my own experience and thoughts online.

    Please let me know if you have any kind of recommendations or tips for brand new aspiring blog owners.
    Thankyou!

  15. Everyone loves what you guys are up too. Such clever work and reporting!
    Keep up the great works guys I’ve added you guys to my own blogroll.

  16. Unquestionably consider that that you said. Your favourite
    reason appeared to be at the internet the simplest factor to have in mind of.
    I say to you, I certainly get annoyed even as folks think about
    worries that they just don’t know about. You managed to
    hit the nail upon the highest as well as outlined out the entire thing
    with no need side-effects , other folks can take a signal.

    Will likely be again to get more. Thank you

  17. Hello there! This is my first comment here so I just
    wanted to give a quick shout out and tell you I genuinely enjoy reading
    through your articles. Can you recommend any other
    blogs/websites/forums that go over the same
    subjects? Thanks for your time!

    Here is my blog post; home ace333 download (Bridgette)

  18. Hey there! I realize this is somewhat off-topic but I
    needed to ask. Does building a well-established website such as yours take a lot of work?
    I am brand new to operating a blog but I do write in my journal every day.
    I’d like to start a blog so I can easily share my personal experience and
    feelings online. Please let me know if you have any recommendations or tips for
    brand new aspiring bloggers. Thankyou!

Comments are closed.