Webhook listener

Hi, I am having trouble with setting up an api-endpoint. I have deployed my project and I am using Flask. However, this is what is returned…

Run this Repl to see the results here. ....

I am not interested in having any UI. I would like just to be able to create endpoints and call them and get the response.

I have found multiple threads but could not fix the issue. Below is my code

Thanks

@app.route('/webhook', methods=['POST'])
def webhook():
  if request.method == 'POST':
    print(request.json)
    return {"key": "returning"}
  else:

    abort(400)


if __name__ == '__main__':
  app.run(host="", port="")