I am using the https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/commits end point to return a list of recent commits. I want to get a list of all commits that are only on rev master so I am using GET /repositories/{username}/{repo_slug}/commits/master.
How I can modify this to exclude all commits that are on a branch. I do not know the names of the branches ahead of time. I want only the changes that are on master.