I am trying to add a API Gateway end point URL to slack button. After referring to this stackoverflow post..
The problem here is that slack is sending a GET request to the api endpoint. Sending GET requests is not a problem, but when I click on the button in my slack message, it results in a redirect (opening of a new window in browser) ( not 302 redirect) .
sendin POST request to api gateway endpoint does not result in this behaviour in my opinion. Is there a way I can avoid this.
Note: I have tried Slack Request URL for interactive message where all requests will go to the specified endpoint as POST. But that involves writing URL endpoint to slack app. That is why I am attaching URL directly to button.