A very simple demo to send message to Mattermost via API and handle Mattermost interactive button callback
- Mattermost server
- Create a webhook on Mattermost
- Replace
mattermostAddr
with your webhook URLhttp://{your-mattermost-url}/hooks/{webhook-token}
- Replace the URL in message to point to your service URL
- If there's no update after clicking on the button, go to Mattermost > System Console > Server logs and check the logs for errors (System Admin required)
- You may need to update Mattermost server configuration to allow untrusted internal connection to your service. For more information, refer to https://docs.mattermost.com/administration/config-settings.html#allow-untrusted-internal-connections-to