i was trying to get the list of open pull request for a branch. i tried hitting this API
GET /2.0/repositories/{username}/{repository_slug}/pullrequests?state=OPEN&source.branch.name={branch_name}
i got this response:
{"type": "error", "error": {"message": "Your credentials lack one or more required privilege scopes.", "detail": {"required": ["pullrequest"], "granted": ["repository:delete", "repository:admin", "repository:write"]}}}