Native image upload support via API - not possilbe?

I have a micro project that generates an JPG image. The simplest method I can implement is POST-ing such image to an API end point.

I have looked through API documentation and I could not find a way to upload a file via it. One would think it is a simple functionality, especially if there are things like Image Cards.

So, is it possible to upload an image via Home Assistant API?

I am trying to avoid writing unnecessary code on both micro and the home assistant/destination machine.

To answer my own question I just created a simple API/upload page with flask that takes care of that.
I haven’t yet figured how to integrate that into homeassistant, but I suspect mysql would be a possibility.