That makes sense.
The use case is more of sending a file to downstream application, where the downstream application hits the API and expect the file as API response.
Original Message:
Sent: Wed February 26, 2025 09:58 AM
From: Holger von Thomsen
Subject: webMethods.io Integration: Custom Response for APIs
Hi Vikash,
what do you want to achieve with the stream being returned?
Due to the nature of a stream you are only receiving a hnadler, which cannot be accessed downstream in your application.
Most likely you will have to convert the content of the stream into a string content and return this one instead of the stream handler.
Regards,
Holger
------------------------------
Holger von Thomsen
Software Developer
Deutsche Telekom IT GmbH
Darmstadt
Original Message:
Sent: Wed February 26, 2025 04:21 AM
From: Vikash Sharma
Subject: webMethods.io Integration: Custom Response for APIs
Hi Aalok,
I have tried with flow service and then created the API.
Invoked the flowservice and API using postman client. For both of them we have same response.
Sharing the screenshot for same.
------------------------------
Vikash Sharma
Original Message:
Sent: Wed February 26, 2025 03:10 AM
From: Aalok
Subject: webMethods.io Integration: Custom Response for APIs
Hi Vikash,
The Flow Service has the object as the response, but that is not implicitly coming in the API response.

Thanks!
------------------------------
Aalok
Original Message:
Sent: Wed February 26, 2025 02:57 AM
From: Vikash Sharma
Subject: webMethods.io Integration: Custom Response for APIs
Hi Aalok,
When ever we are creatng any API using the flow service then input and output of the API will implicitly will be same as what you have configured in the flow service.
There is no steps explicity need to be done for input and output definition.
Please let me know if you are facing any issue with response difference between flow service and API exposed.
------------------------------
Vikash Sharma
Original Message:
Sent: Tue February 25, 2025 03:37 AM
From: Aalok
Subject: webMethods.io Integration: Custom Response for APIs
Hi All,
We have a Integration Flow which connects has object stream as the output. The Flow service is exposed as an API, but while adding the resource we could not add the API response to give the object stream.

Does it not support to provide custom parameters for the API Response? If it does, can you please let us know how this can be achieved.
Thanks!
------------------------------
Aalok
------------------------------