“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. Hey! I know this is kinda off topic but I was wondering if
    you knew where I could find a captcha plugin for my comment form?
    I’m using the same blog platform as yours and I’m having
    difficulty finding one? Thanks a lot! asmr 0mniartist

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

  3. Saya telah berselancar online lebih dari tiga jam
    hari ini, namun saya tidak pernah menemukan artikel menarik seperti
    milik Anda. It’s cukup berharga bagi saya. Menurut pendapat saya , jika semua webmaster dan blogger membuat konten yang baik seperti yang Anda lakukan, web akan menjadi lebih berguna dari sebelumnya.

    My homepage … joker123 deposit pulsa

  4. Saya telah berselancar online lebih dari 3 jam hari ini, namun saya tidak pernah menemukan artikel menarik seperti
    milik Anda. It’s cukup berharga bagi saya. Menurut pendapat saya ,
    jika semua pemilik situs dan blogger membuat konten yang baik
    seperti yang Anda lakukan, net akan menjadi lebih berguna dari sebelumnya.

    Feel free to visit my site – Joker123 apk 2021

Comments are closed.