Forum Academy Marketplace Showcase Pricing Features

API Endpoint "Return Data from API" as XML instead of plain text

I am building out Twilio functionality into my app and working on forwarding calls. To do this I have setup a an api endpoint that gets called whenever a call comes into my twilio number, twilio contacts my webhook and I need to use the “return data from API” action to return some xml instructions to Twilio.

Is it possible to set the data returned as xml? As you can see from the screenshot below I have tried just using the plain text, but the way it is set now twilio does not recognize it as an xml document. I assume I would need access to the headers being sent? Is this possible in bubble?

1 Like

Did you ever find a solution to this?

Yep! I have something ready to be shared about it. I needed to set up SignalWire Inbound Messaging and they require a XML response so I returned xml data with the xml header as shown in the attached photo.