Send an image notification on POST request

I’m trying to trigger a rich Facebook notification from a Raspberry Pi that’s set up as a security camera. The Raspberry Pi can send a POST notification with the image contents to the Home Assistant server, but is it possible for Home Assistant to receive arbitrary POST requests? And how can I forward the image data to the notify component?

Thanks in advance!

If you have the notify platform already set up you could just use the REST API.

~Cheers