Hi there
Sorry I am having issues setting up Twilio and the Marketo webhook.
Should the URL of the webhook be...
Should the "Response format" be...
I am using details from the post that was written in 2015 see below, (see link below) although its is not working.
The From number starts with my country number for Australia it is +61.
Sorry can you pls advise what I have done incorrectly in the webhook? I cant get it to send an SMS.
I have included a screen grab of the information I have placed into the webhook, if anyone can shed some advice that would be much appreciated.
Thank you so much
/blogs/marketowhisperer/2015/07/08/sending-an-sms-using-twilio
fyi Sanford Whiteman, Josh Perry Karin Edmondson @johnm
Latest test
Solved! Go to Solution.
https://{SID}:{TOKEN}@api.twilio.com/2010-04-01/Accounts/{SID}/Messages.json
Response type is JSON, as you already have set up.
Please remove the attachment (I can't see them, they don't show up for all Community users) and paste the image right in the thread, thanks.
Hi there I have updated many thanks Sanford
I've checked our configuration and we use: https://[ACCOUNT_SID]:[AUTH_TOKEN]@api.twilio.com/2010-04-01/Accounts/[ACCOUNT_SID]/Messages.xml (without the SMS in between) and response format XML and it works.
And yes, the number you showed is the correct format.
Have you tried testing with just a message in the body instead of the token?
Our twilio webhook URL is set up as
. The only thing different in ours is the payload. We added %2B1 in front of the from and to (From=%2B118008008000&To=%2B1{{lead.Phone Number}}) and have gotten succesfull responses back. Not sure if that will help you to troubleshoot!
Yeah, JSON is the default response format even if the XML endpoint still works. (For the clear reason that not all client libraries have a native XML parser, NodeJS, for example, doesn't so it would mean more dependencies.)
Prepending the encoded plus sign as you have here is OK if you know the phone number doesn't already have it. Depends on how much normalization you're doing ahead of time, I recommend storing in E.164 in your database (in which case the + is already there).
Hi there everyone
Thanks so much for all your feedback its really appreciated.
Special thanks to Sanford Whiteman and Josh Mateer Their answers were correct.
Just incase anyone else gets stuck I've posted the webhook that worked for me.
Thanks
So in your experience the phone format should be with country code but no '+' (i.e. +44 --> 0044) or with no country code at all?
I seem to e having a strange problem, where twilio will add '+1' to my 'To' phone number, regardless of which country it belongs to or if it has country code already.
It does need to have a + when sent to Twilio, but that + doesn't need to exist in the field itself if it's hard-coded in the webhook definition (as URL-encoded %2B).