@tnik
Use a request to create and initiate your taskAnd then poll the system until this job is completed, then return the result.
This is an asynchronous pattern, and it’s much more scalable when it comes to the amount of processing you can do in there.
Of course you cannot use a single curl comm...