from flask import Flask, request, abort app = Flask(__name__) @app.route('/webhook', methods=['POST']) def webhook(): if request.method == 'POST': print(request.json) return '', 200 else: abort(400) if __name__ == '__main__': app.run()
Start up Postman, and do New Request, POST, URL is http://127.0.0.1:5000/webhook, in Body select "raw" and JSON, and put this in: {"id" : "1123"} and his SEND, and the webhook receiver will print {'id': '1123'}.
Description