Batch create issues?

I am going to migrate a fossil repo into gitea. I am wondering if there is any way i can migrate the fossil tickets into gitea using command line interface in some way. I am not afraid of using SQLite SQL directly to export the tickets from fossil, and then use SQLite SQL to import them into gitea’s DB…but if there is an API way to do it without hacking the SQL I would obviously much prefer that. I’m new to gitea, so please forgive me if this is obvious.

There’s an api to create issues and more here

REST is something I am not familiar with, I’ve never done any web programming. Is there a way to use this API in a command line tool?