Sending response to Slack

POST {{slack_url}}

Using Slack's incoming Webhook URL to run this POST request to send the booking status and the train status to the Slack. It uses a Pre-request Script which helps to form the content of the body that needs to be send to the Slack. Read more about the Slack's incoming Webhook.

Request Body

{"attachments"=>[{"fallback"=>"Status of your tickets and train : ", "pretext"=>"Status of your tickets and train :", "color"=>"#7CFC00", "fields"=>[{"title"=>"Live Status", "value"=>"{{payload}}", "short"=>false}]}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring