How to access private Organization Projects via API

When I try to get the list of organization projects, the private projects just don’t show up - only public. I get an emply list since all of my projects are private. To test this, I made myself admin of a private project and was still unable to get json back for that project. Only when I mark a project as public does it give back some data.

I use:


(I also added the accept header for previewing projects)

What am I dong wrong here? How can I access these private projects?

1 Like

Have you used one of the authentication methods mentioned in the documentation? If you don’t tell GitHub who is asking, then it assumes that the person asking doesn’t have the rights to see private stuff.

I hope that helps!

I’m facing the same issue, even though I am using one of the authentication methods. I also made sure the installation has all the required permissions. Is there anything I’m missing?