This example project helps you validate Python SDK webhook signature verification locally.
receiver.py: local webhook endpoint that verifies and parses eventssend_test_webhook.py: sends a signed test webhook request to your local endpoint
cd packages/python-sdk/example/webhook-test-project
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtTerminal 1:
python receiver.pyTerminal 2:
python send_test_webhook.pyYou should see:
200response from the receiver- parsed webhook event output in the receiver terminal
BYTESEND_WEBHOOK_SECRET(default:whsec_test)WEBHOOK_URL(default:http://127.0.0.1:8000/webhook)
Use the same BYTESEND_WEBHOOK_SECRET for both scripts.