- Use the 'List pull requests files' API (instead of the 'Get a pull request' API' to retrieve the diff) to retrieve the files changed in a pull request. The 'Get a pull request' API' would respond with an error if the pull request had more than 300 files changed.