Github API to get list of Pull Request on private repo

What is the API to get list of Pull Request on private repository via Github API ? can anyone tell me ?

:wave: @adewija!

You can use the List pull requests API endpoint to fetch a list of pull requests from a repository. If the repository is private then you will need to authenticate your request using a token in the Authorization header:

curl \
  -H "Authorization: token OAUTH-TOKEN"
  -H "Accept: application/vnd.github.v3+json" \
  https://api.github.com/repos/OWNER/PRIVATEREPO/pulls

Hope this helps.