[API v3] Get Repo Permissions

When calling GET /repos/:owner/:repo, I used to get the following permissions data:


However, this data is no longer supplied. Was it removed altogether, or is there a newer way to get the information?

Note: it is still listed as a part of the response in the documentation. https://developer.github.com/v3/repos/#get-a-repository

Hi @sommersoft,

Thank you for being here! The permission’s data is included only if you authenticate with the API, for example

curl -v -H "Authorization: token $TOKEN" https://api.github.com/repos/github/linguist

Alternatively, you could use the GraphQL API to fetch a repo and your permission:

query {
	repository(owner:"github", name:"linguist") {
1 Like

@andreagriffiths11 ,

Thank you very much for your reply. It highlighted a misstep in my troubleshooting!

I can confirm that it is working with an authenticated request, which my program was using but my manual verification was lacking.

Now on to more debugging…

1 Like