Hello Stuart,
Maybe the entities httprequest and response can help you out, especially the content attribute.
More info here:
https://docs.mendix.com/refguide/http-request-and-response-entities/
In combination with creating a rest service with a post request it should be available:
Hope this helps,
Good luck