according to the tags which were set here in Community you are using Jira Core (Server) which does not bring Kanban and Scrum functionality (Software Boards) with it.
The screenshot you shared seems to add to this - there is no visible option for Software Boards.
While there is a Suggestion open with Atlassian to have Kanban boards also in Jira Core (https://jira.atlassian.com/browse/JRASERVER-45690) the current implementation says that you would need Jira Software to use them.
The API Call is good with this.
You can also check with the Reports available, Icon provided in Jira :-)
Hello Community members! We’re wrapping up the end of JSM June with an Ask Me Anything (AMA) with the Jira Service Management product team. This is your chance to ask all your ITSM questions to o...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events