3CX & Twilio SMS Webhook

Status
Not open for further replies.

caredecisions

Premier Customer
Joined
Feb 25, 2021
Messages
7
Reaction score
1
Hi, I have a two-part question regarding 3CX messaging;

1) What is the payload for the 3CX Twilio webhook?

For example when Twilio sends SMS data to the 3CX webhook what is the payload to 3CX webhook (exact fields and format);

- Sample webhook from our system: https://messaging.3cx.com/v2/webhook/*****-*****-*****-*****-*****/twilio/sms/***********

2) I would like to send the SMS payload to another service and would like to test via Postman.

Is this possible?

The idea here is that Twilio will send SMS data to our custom CRM webhook then we will triage POST data and send the SMS to the 3CX webhook.

The limit here is Twilio, as we can only set up 1 webhook.

Thanks.
 
Any simple PHP script can give you that in a log.
 
I have found the 3CX webhook payload information.

Send this payload to the 3CX webhook via POST/JSON

Your Twilio 3CX webhook: https://messaging.3cx.com/v2/webhook/..../twilio/sms/e226znhxrznq

JSON Payload
{
"ToCountry": "YOUR COUNTRY CODE",
"ToState": "",
"SmsMessageSid": "",
"NumMedia": "0",
"ToCity": "",
"FromZip": "",
"SmsSid": "",
"FromState": "",
"SmsStatus": "received",
"FromCity": "",
"Body": "This is my sms message",
"FromCountry": "AU",
"To": "A VALID SMS PHONE NUMBER",
"ToZip": "",
"NumSegments": "1",
"MessageSid": "",
"AccountSid": "TWILIO ACCOUNT SID",
"From": "A VALID SMS PHONE NUMBER",
"ApiVersion": "2010-04-01"
}
 
  • Like
Reactions: DavidM84
Hello caredecisions - Did you get this to work? I want to do a similar thing. I want to capture / store the chat text automatically but still allow regular 3CX live chat to work normally (which is great!).
 
  • Like
Reactions: DavidM84
Status
Not open for further replies.

Forum statistics

Threads
112,065
Messages
590,584
Members
165,019
Latest member
rsaldin@advancedbrainspin