“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. Today, I went to the beachfront with my kids. I found a sea shell and gave it
    to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She placed the shell to her ear
    and screamed. There was a hermit crab inside and it pinched her ear.
    She never wants to go back! LoL I know this is entirely
    off topic but I had to tell someone!

    My web-site: Sky1388 demo Id

  2. Search Engine Optimization sounds difficult to most. Keep trying
    new methods of selling until you’ve found what works the major.

    The posts include things like at least two links to expense.

  3. Having read this I thought it was very informative.
    I appreciate you spending some time and energy to put this content together.
    I once again find myself personally spending a significant
    amount of time both reading and leaving comments. But so
    what, it was still worthwhile!

    Take a look at my blog: sky1388 malaysia (918kiss-m.com)

  4. Definitely believe that which you said. Your favorite
    reason seemed to be on the web the easiest thing to be aware
    of. I say to you, I certainly get irked while people think about worries
    that they plainly don’t know about. You managed to hit the nail upon the top as well
    as defined out the whole thing without having side effect , people could take a signal.
    Will probably be back to get more. Thanks 0mniartist asmr

  5. I think this is among the most significant info for me. And i’m glad reading your article.
    But want to remark on few general things, The website style is great, the articles is really great :
    D. Good job, cheers asmr 0mniartist

  6. It is perfect time to make some plans for the future and it’s time to be happy.

    I’ve learn this put up and if I may just I desire to recommend you some fascinating things or suggestions.
    Maybe you could write next articles relating to this article.
    I wish to read even more things approximately it! asmr 0mniartist

  7. I am extremely inspired together with your writing talents as well as with the layout on your weblog.
    Is that this a paid topic or did you customize it yourself?

    Anyway keep up the nice high quality writing, it is uncommon to peer a great blog like this one
    these days.. asmr 0mniartist

  8. Hi, i think that i saw you visited my blog so i got here to go back the favor?.I’m attempting to to find issues to improve my site!I assume
    its ok to use a few of your ideas!!

  9. I like the valuable info you provide to your articles.
    I’ll bookmark your weblog and test again here regularly.

    I’m rather sure I’ll be informed many new stuff right here!
    Good luck for the next! 0mniartist asmr

  10. Definitely consider that which you stated. Your favorite reason appeared to be at the net the
    easiest factor to remember of. I say to you,
    I certainly get annoyed even as other people think about issues that they just don’t understand about.
    You controlled to hit the nail upon the highest and defined
    out the entire thing with no need side-effects , other people can take a signal.
    Will likely be back to get more. Thanks asmr
    0mniartist

  11. Hі I am so excited I fouund your Ƅlog, I гealⅼʏ fοund you by accident, while I ԝas researching on Digɡg for something else, Anyhow
    I am here now and w᧐uld just like to say cheers for a fɑntastiϲ poѕt and
    a all round exciting blog (I also ⅼove the theme/design),
    I Ԁⲟn’t have time to look over it alⅼ at the moment but Ӏ have saved iit and also аdded your RSS feeds, ѕo when I have tіme
    I will be back to read a gгeat deal more, Please ddo keep up tthe greаt woгk.

    Have a look at my homepаge: missing person

Comments are closed.