“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. I found your blog using google. This is an extremely
    well written article. I’ll make sure to bookmark itt and return to read more of
    your useful information. Thanks for the post. I’ll certainly return.

  2. This site was… how do you say it? Relevant!!
    Finally I’ve found something that helped me. Thank you!
    ps4 games 185413490784 ps4 games

  3. Quality posts is the important to invite the viewers to pay a visit the web site, that’s what this web site is providing.
    games ps4 185413490784 games ps4

  4. I’m gone to convey my little brother, that he should also pay a quick visit this web
    site on regular basis to take updated from hottest information. games ps4 allenferguson games ps4

  5. whoah this weblog is wonderful i love reading your articles.
    Stay up the good work! You know, lots of individuals are looking round for this info, you can help them greatly.

    games ps4 allenferguson games ps4

  6. We’re a gaggle of volunteers and opening a new scheme
    in our community. Your site provided us with useful info to work on. You’ve done a formidable process and
    our whole group shall be grateful to you. ps4 games allenferguson ps4 games

  7. Really interesting information, I am sufe this post has
    touched all internet users, its reall really pleasant
    piece of writing on building up new website.

Comments are closed.