Can we insert the table into Jira comments through API call?

Is it possible to insert a table in the Jira comments section?
If yes, Please Can anyone let me know the possible ways to do it?

Hi, welcome to the community!
Are you using any particular package for this or just automating JIRA website?

I am not using any separate package, I am just trying to automate Jira website using APIs

Now you got me confused, API or Website?

you might want to check this one out: