# Interactive Dialog 404

**URL:** <https://forum.mattermost.com/t/interactive-dialog-404/14982>\
**Category:** Troubleshooting\
**Created:** [February 2, 2023, 8:52am UTC](https://forum.mattermost.com/t/interactive-dialog-404/14982 "2023-02-02T08:52:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![23drive](https://avatars.discourse-cdn.com/v4/letter/2/a5b964/32.png) [@23drive](https://forum.mattermost.com/u/23drive)\
**Post date:** [February 2, 2023, 8:52am UTC](https://forum.mattermost.com/t/interactive-dialog-404/14982/1 "2023-02-02T08:52:20Z")

</div>

Hi folks,  
I was hoping someone could help enlighten me where did I go wrong.  
I’m trying to create an interactive dialog triggered by slash command.

I am able to successfully configure my slash command to trigger my integration.  
My integration in turn, **immediately** triggers the interactive dialog via HTTP POST to https:///api/v4/actions/dialog/open, with the following JSON body:

```auto
{
    "trigger_id": " *****",
    "url": " *****",
    "dialog": {
                   "callback_id": " *****",
                   "title": " *****",
                   "introduction_text": " *****",
                   "elements": [
                                    {
                                        "display_name": " *****",
                                        "name": " *****",
                                        "type": "text",
                                        "placeholder": " ***** ,
                                        "optional": " *****",
                                        "min_length": " *****",
                                        "max_length": " *****"
                                    },
                                    {
                                        "display_name": " *****",
                                        "name": " *****",
                                        "type": "text",
                                        "placeholder": " **********",
                                        "optional": " *****",
                                        "min_length": " *****",
                                        "max_length": " *****"
                                    },
                                    {
                                        "display_name": " *****",
                                        "name": " *****",
                                        "type": "select",
                                        "options": [
                                                        {
                                                            "text": " *****",
                                                            "value": " *****"
                                                        },
                                                        {
                                                            "text": " *****",
                                                            "value": " *****"
                                                        },
                                                        {
                                                            "text": " *****",
                                                            "value": " *****"
                                                        },
                                                        {
                                                            "text": " *****",
                                                            "value": " *****"
                                                        }
                                                    ]
                                    }
                                ]
               }
}

```

I am certain the JSON is correct and valid.  
However, I keep getting this response:

```auto
{
    "id": "api.context.404.app_error",
    "message": "Sorry, we could not find the page.",
    "detailed_error": "There doesn\u0027t appear to be an api call for the url=\u0027/api/v4/actions/dialog/open\u0027. Typo? are you missing a team_id or user_id as part of the url?",
    "status_code": 404
}

```

Where did I go wrong?

---

<div class="post-metadata">

**Author:** ![23drive](https://avatars.discourse-cdn.com/v4/letter/2/a5b964/32.png) [@23drive](https://forum.mattermost.com/u/23drive)\
**Post date:** [February 3, 2023, 2:22am UTC](https://forum.mattermost.com/t/interactive-dialog-404/14982/2 "2023-02-03T02:22:38Z")

</div>

To troubleshoot, I configured my integration send the HTTP POST to both Mattermost, and Pipedream.  
This is what Pipedream received (some parts are redacted), it seems correct to me, but somehow not working for Mattermost -

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/0/00786bec308b1319f69e3513e2e815eb4899c99d.png)

---

<div class="post-metadata">

**Author:** ![23drive](https://avatars.discourse-cdn.com/v4/letter/2/a5b964/32.png) [@23drive](https://forum.mattermost.com/u/23drive)\
**Post date:** [February 3, 2023, 7:58am UTC](https://forum.mattermost.com/t/interactive-dialog-404/14982/3 "2023-02-03T07:58:02Z")

</div>

Found the issue, the URL was wrong.  
I used ‘dialog’ instead of ‘dialogs’

---

<div class="post-metadata">

**Author:** ![agriesser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/agriesser/32/5644_2.png) [@agriesser](https://forum.mattermost.com/u/agriesser)\
**Post date:** [February 5, 2023, 11:44pm UTC](https://forum.mattermost.com/t/interactive-dialog-404/14982/4 "2023-02-05T23:44:16Z")

</div>

Hi @23drive, welcome to the Mattermost forums and sorry for the late reply!

Glad to hear you found the error, just FTR: a 404 generated by the API almost always means, that there’s a typo in the URL, so this should be the first check then.

I cannot tell if this was always the name of this API endpoint, but according to the documentation, there does not seem to be a recent change:

[https://api.mattermost.com/#tag/integration\_actions/operation/OpenInteractiveDialog](https://api.mattermost.com/#tag/integration_actions/operation/OpenInteractiveDialog)

Did you find the wrong endpoint in some documentation that should be fixed?
