I wrote a simple nodejs web service which logs any request sent to it, directed button actions to call this service and then I got this structure.
Type is either button or select as in the developer documetation, the data_source can be empty. The data_source field is used by the system to fill the list for the “select” type (AFAIK it can be “users” or “channels”).
Right, thanks! I think type is button by default. Anyway… I’m still getting no reaction at all from Mattermost after returning that payload. If you have the time, could please take a look at my question here?
Hi @alex_enyway, can I take a look at the Body of your Interactive Message POST request? I would like to know you get the button to make a request to external API!