[Fixed] Jira Agile 'Get All Boards' REST API failing - error: 'Unauthorized; scope does not match'

Hi. I am trying to call the following jira agile REST api,

https://api.atlassian.com/ex/jira/${siteId}/rest/agile/1.0/board?projectKeyOrId=SCRUM

Here ‘siteId’ is properly populated and oauth token header is configured properly as well

I get the following error response

{"code":401,"message":"Unauthorized; scope does not match"}

I have configured correct auth scope with scopes read:board-scope:jira-software , read:project:jira, as suggested in docs

Is the issue with URL I am using?

These are the granular scopes I am using, and all the classic scopes are enabled

The issue is fixed. The issue was the oauth scope was not added in the Authorization URL.

The agile apis are working after I added the scopes to the Authorization URL.