Send a message to slack using webhook via curl: curl -X POST -H 'Content-type: application/json' --data '{"text":"Text message"}' YOUR_WEBHOOK_URL Send a message to slack using webhook via javascript: var xmlHttp = new XMLHttpRequest(); xmlHttp.open('post', 'YOUR_WEBHOOK_URL'); xmlHttp.send('{'text':'Test message'}'); Send a message to slack using webhook via jQuery: var url = 'YOUR_WEBHOOK_URL'; var text = 'Text message'; $.ajax({ data: 'payload=' + JSON.stringify({ "text": text }), dataType: 'json', processData: false, type: 'POST', url: url });