JSON Payload
{
  'text': 'Hello, Slack!',
  'attachments': [
    {
      'color': '#36a64f',
      'pretext': 'Pretext',
      'title': 'Title',
      'title_link': 'https://example.com',
      'footer': 'Footer',
      'footer_icon': 'https://platform.slack-edge.com/img/default_application_icon.png'
    }
  ]
}cURL Command
curl -X POST -H 'Content-type: application/json' --data '{
  'text': 'Hello, Slack!',
  'attachments': [
    {
      'color': '#36a64f',
      'pretext': 'Pretext',
      'title': 'Title',
      'title_link': 'https://example.com',
      'footer': 'Footer',
      'footer_icon': 'https://platform.slack-edge.com/img/default_application_icon.png'
    }
  ]
}' YOUR_SLACK_WEBHOOK_URL