{"version":"1.0","type":"rich","title":"POST a JSON payload to a Slack Incoming Webhook using Python requests","description":"This example demonstrates sending a JSON payload to a Slack Incoming Webhook using the Python `requests` module. The code constructs a `slack_data` dictionary containing the message text, then posts it to the webhook URL with `requests.post`, setting the `Content-Type` header to `application/json`. It checks the response status code and raises a `ValueError` if the request fails, including the error code and response body in the exception. The webhook URL is a placeholder from Slack’s service, and the data source is the hardcoded message string.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-0cc2ee1770a085e74130be41b20e1e26?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}