When using the slack API, I got an error saying that the flask endpoint cannot be used. This means that ok will not be issued unless it is an api that returns a challenge parameter. So, if you make an api that returns the challenge parameter given in the post as it is, it's ok!
@app.route("/slack/sample", methods=["POST"])
def slack_sample():
return request.json["challenge"]
Recommended Posts