Outbound SMS

  • Go to Chrome extension(The HUB - CTI) -> Settings -> 3CX API section
  • Turn on 3CX Status
  • Copy Provider URl and API Key from there and set it on your 3CX account trunk.

Inbound SMS

  • Go to your 3CX account and copy webhook URL from there
  • Now go to Chrome Extension(The HUB - CTI) -> Settings -> Webhook section
  • Select HTTP Method to POST
  • Enter copied URL into Request URL
  • Select Body Type -> JSON
  • Enter Below data inside the Request Body and save it.

 

{

 "data": {

   "event_type": "message.received",

   "id": "${id}",

   "occurred_at": "${time}",

   "payload": {

     "direction": "inbound",

     "errors": [],

     "from": {

       "phone_number": "${source}",

       "status": "webhook_delivered"

     },

     "id": "${id}",

     "parts": 1,

     "received_at": "${time}",

     "text": "${text}",

     "to": [

       {

         "phone_number": "${destination}",

         "status": "webhook_delivered"

       }

     ],

     "type": "SMS"

   }

 }

}