Modifying Xano API response Content-Type to 'text/xml'

Hello - I have connected my Xano API to Twilio. When my Twilio number receives a text, the information is forwarded to my API via webhook. This is all working well.

Unfortunately, Twilio requires an empty Response element in text/xml format. Without this response, I am receiving errors.

Would someone please let me know the best way to modify the Xano API response Content-Type from json to xml?

For further context, the objective I'm trying to solve for is summed up well by lucky.expert's comment on Stack Overflow: https://stackoverflow.com/questions/41646394/twilio-error-12300-invalid-content-type-only-sometimes

Thanks in advance for any help.

6 replies