User installation repositories and installation repositories difference

I am new to Github Apps. Quick question regarding the same.

How is this (#1) GET /installation/repositories

different from (#2) GET /user/installations/:installation_id/repositories

Is there a good example available for the differences in the two APIs? 

Hi @divyagandhi01,

The difference between these two enpoints is that  GET /installation/repositories will list all repositories that installation has access to and uses the installation access token to get this information whereas the GET /user/installations/:installation_id/repositories uses a user-to-server OAuth access token to list all repositories that the authenticated user has explicit permission to access for an installation.

Does that help regarding the difference?

1 Like