Mattermost interactive button do not call URL
Hi, I am new to mattermost and I am making a feedback bot for my company to automate feedback process, I need to send an interactive button and when clicked, it must call my bot endpoint: …/message-event/mattermost/interactivity.
I am running mattermost preview docker container in my machine (http://localhost:8065) and my bot is running at http://localhost:4000.
The issue is, when I click the button, it does not call my url, it calls /api/v4/posts/{{post_id}}/action/{{action_id}}, and gives 404 error, see printscreen.
I am trying to solve this issue for almost a day with no success, in documentation I thought I just need to specify the url and that’s it, the button would just call it, but this is not happening, what am I doing wrong here?
Printscreen:
This is the object I am sending to api/v4/posts:
[
{
"text":"Olá @userName\nPlaceholder",
"actions":[
{
"id":"message-event",
"type":"button",
"name":"Selecionar",
"integration":{
"url":"http://localhost:4000/message-event/mattermost/interactivity",
"context":{
"action":"selectUserModal"
}
}
}
]
}
]