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 :-)
Hey there Cloud Community members! We’re excited to give you the first glimpse of the new home for business teams on Jira — Jira Work Management. Jira Work Management is the next generation of J...
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