Skip to content

Access private projects via REST API and PAT (classic): can get repos, but not projects #123605

Discussion options

You must be logged in to vote

Ok, so it seems there were a few key facts that I didn't know about - which I learned about from https://stackoverflow.com/questions/75075799/what-is-the-github-api-resource-type-of-non-classic-projects.

  1. There is a difference between so called classical and non-classical projects. They are also queried differently: with the projects and projectsV2 key, respectively.
  2. Also, this api is only available via GraphQL, not REST.
  3. For authentication, either use a classic PAT, or a fine-grained PAT owned by the target-organisation, not your user.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@MichaelLangbein
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by MichaelLangbein
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API and Webhooks Discussions and conversations related to APIs or Webhooks Question
1 participant