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 :-)
We know that great teams require amazing project management chops. It's no surprise that great teams who use Jira have strong project managers, effective workflows, and secrets that bring planning ...