Forum Academy Marketplace Showcase Pricing Features

Twilio inbound calls and texts webhooks

to anyone who is trying to setup a call system in your Bubble app where you respond to inbound calls and texts that you receive via webhook, you may encounter the following challenge with Twilio

Error - 12300 which means invalid content type. To solve this problem and remove the error, you need to add an api response workflow to the Api workflow / endpoint that is recieving the call as follows

Basically you need to give Twilio some instructions using their language called “Twiml” you can find the Twiml language reference here: https://www.twilio.com/docs/sms/twiml

In this case we are saying Hello World! to the person calling in, you can add different Twiml to match your specific use case

Hope this helps anyone who is stuck on this in the future! It’s a simple fix but took me too long to figure out

Cheers!

Evan :slight_smile:

7 Likes

This is so awesome, thank you thank you thank you :heart: :heart: :heart: :heart:

I was running into this xml response error when trying to use webhooks with codeReadr. (service to scan barcodes). It works now :slight_smile:

thanks!

Hi, this is really helpful - thanks a lot for sharing.

I’m encountering something similar when sending SMS messages via Twilio from my Bubble app - invalid content type, which I’m guessing is down to needing to give Twilio some instructions using their language.

Happy to have a dig around, but wanted to ask if you have any pointers? I’m very much a no-code developer here, you see. Thanks!

Hoping that bringing up an old thread can keep relevant info together.
Was this using the Copilot plugin called “Twilio”?

I’ve been trying to set up just a simple message to tell people who ring my twilio number that is a system number.

The data seems to be going back into Twilio (See screenshot) but the phone call simply hangs up after a couple of seconds. Twilio always just points back to the content type issue so Im not getting any help there!


image

hey @evanlitttle

I tried to set up like you said but I’ve the plaintext back to my user :
image

Maybe I did something wrong?