“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. Excellent article. Keep posting such kind of info on your blog.
    Im really impressed by it.
    Hello there, You’ve done a great job. I will
    certainly digg it and in my opinion suggest to my friends.

    I’m sure they will be benefited from this website.

  2. I was suggested this blog by my cousin. I’m not sure whether this post is written by him as nobody else know
    such detailed about my trouble. You are incredible! Thanks!

  3. Hello! This post couldn’t be written any better! Reading this post reminds me of my previous room mate!
    He always kept chatting about this. I will forward this article to him.

    Pretty sure he will have a good read. Thanks for sharing!

  4. I seriously love your website.. Very nice colors & theme.
    Did you make this site yourself? Please reply back as I’m trying to create my own personal website and would like to
    find out where you got this from or exactly what the theme is named.
    Kudos!

  5. It is not my first tije to goo tto see this website, i am visitiing this webb page dailly
    and take good information from hee all the time.

  6. Hi there to every body, it’s my fist pay a quick visit of this website; this blog contains awesome
    and genuinely excellent data for visitors.

  7. The handicapping, sports activities odds data contained on this internet web-site is for entertainment functions solely.

  8. Wow that was strange. I just wrote an incredibly long comment but after I clicked submit my comment didn’t appear.
    Grrrr… well I’m not writing all that over
    again. Anyway, just wanted to say wonderful blog!

    Also visit my web site; freeholmes.com

  9. An intriguing discussion is definitely worth comment.
    I do think that you should write more on this topic, it may not be a taboo subject but usually folks don’t speak about
    these issues. To the next! Kind regards!!

    My web blog :: makershd.com

  10. Hello this is somewhat of off topic but I was wondering if blogs use WYSIWYG editors or if you have to manually code with HTML.
    I’m starting a blog soon but have no coding knowledge so I wanted
    to get guidance from someone with experience. Any help would be enormously appreciated!

    Feel free to visit my blog :: Veola

Comments are closed.