How to send data or media/ MIME type to an API

A media/ MIME type can consist of a file, image, record, array, message, text, audio or video. The following is how it can be sent to an API:

Illustrated in the image below is an example of a flow which will run as an async flow if the primary/ main flow has failed.


The Record Generator is the source step and contains a message that will be sent to the API as shown in the below image.


In the HTTP Service destination step, the API URL is added in the URL field. To send the original media type that is in the source, “Content-Type” is added as a header with “Application/JSON” as the value as shown in the below image.

Additional information:

The below link contains more information regarding “Content-Type” as a header:

Content-Type - HTTP | MDN

How to receive a notification on an instant messaging platform for a failed run