Is it possible to create ticket programatically using JavaScript API?

Hi,

I can detect automatically several cases where user can run into issue using my system. On each of those cases I would like to create automatically ticket, so I can reach out the user later explaining how he/she run into the problem and how to solve it.

For that reason I am seeking for a feature where I can create programatically ticket with user assigned.

Is API supporting such cases?