Skip to content

Instantly share code, notes, and snippets.

@devStepsize
devStepsize / slack_webhook_post.py
Last active July 25, 2024 03:56
POST a JSON payload to a Slack Incoming Webhook using Python requests
'''
This is an example of how to send data to Slack webhooks in Python with the
requests module.
Detailed documentation of Slack Incoming Webhooks:
https://api.slack.com/incoming-webhooks
'''
import json
import requests