# Celigo JavaScript API / API Builder: How to pass raw XML payload directly to a Webhook Listener without auto-parsing or triggering flow failures?

**URL:** <https://connective.celigo.com/t/celigo-javascript-api-api-builder-how-to-pass-raw-xml-payload-directly-to-a-webhook-listener-without-auto-parsing-or-triggering-flow-failures/6494>\
**Category:** API Management\
**Tags:** myapi, listener, xml, webhook\
**Created:** [September 23, 2026, 7:21am UTC](https://connective.celigo.com/t/celigo-javascript-api-api-builder-how-to-pass-raw-xml-payload-directly-to-a-webhook-listener-without-auto-parsing-or-triggering-flow-failures/6494 "2026-09-23T07:21:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shrehith\_K1](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@Shrehith\_K1](https://connective.celigo.com/u/Shrehith_K1)\
**Post date:** [September 23, 2026, 7:21am UTC](https://connective.celigo.com/t/celigo-javascript-api-api-builder-how-to-pass-raw-xml-payload-directly-to-a-webhook-listener-without-auto-parsing-or-triggering-flow-failures/6494/1 "2026-09-23T07:21:11Z")

</div>

**Problem Overview**

We are using **Celigo JavaScript API / API Builder** to create an API endpoint that receives an XML request from Postman and forwards the payload to a **Celigo Webhook Listener** to trigger an integration flow.

We noticed a major difference in behavior depending on payload conversion:

1. **XML --\> JSON Conversion:** When our Celigo JavaScript API script receives the XML payload, converts it to a JSON object (or JSON string), and posts it to the Celigo Webhook Listener endpoint, **the flow triggers successfully**.

2. **Raw XML directly:** When our Celigo JavaScript API script attempts to pass the **raw XML payload** directly to the Celigo Webhook Listener (without converting it to JSON), **the flow fails to trigger**.

### _ **Goal** _

We want to send an XML payload in Postman, process it through our **Celigo JavaScript API** , and forward the **raw XML string** directly to the Celigo Webhook Listener while ensuring the listener successfully parses/accepts the raw XML and triggers the target flow.

###

---

<div class="post-metadata">

**Author:** ![kaustavroy](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/kaustavroy/32/6640_2.png) [@kaustavroy](https://connective.celigo.com/u/kaustavroy)\
**Post date:** [September 23, 2026, 8:55am UTC](https://connective.celigo.com/t/celigo-javascript-api-api-builder-how-to-pass-raw-xml-payload-directly-to-a-webhook-listener-without-auto-parsing-or-triggering-flow-failures/6494/2 "2026-09-23T08:55:22Z")

</div>

Hi @Shrehith_K1 On the listener, can you please open "Nonstandard request pattern" and check if the Override request media type is set to XML?

 ![image](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/b/b6a941259cd1cd928b0c7b163b000ba82e7c71e0.png)

---

<div class="post-metadata">

**Author:** ![Shrehith\_K1](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@Shrehith\_K1](https://connective.celigo.com/u/Shrehith_K1)\
**Post date:** [September 24, 2026, 2:20pm UTC](https://connective.celigo.com/t/celigo-javascript-api-api-builder-how-to-pass-raw-xml-payload-directly-to-a-webhook-listener-without-auto-parsing-or-triggering-flow-failures/6494/3 "2026-09-24T14:20:29Z")

</div>

Thanks @kaustavroy

We already tried this, but no luck.

---

<div class="post-metadata">

**Author:** ![kaustavroy](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/kaustavroy/32/6640_2.png) [@kaustavroy](https://connective.celigo.com/u/kaustavroy)\
**Post date:** [September 28, 2026, 9:23am UTC](https://connective.celigo.com/t/celigo-javascript-api-api-builder-how-to-pass-raw-xml-payload-directly-to-a-webhook-listener-without-auto-parsing-or-triggering-flow-failures/6494/4 "2026-09-28T09:23:29Z")

</div>

Hi @Shrehith_K1 could you please raise a support ticket so that we can look at the configuration?
