# Interactive messages in direct message channel

**URL:** <https://forum.mattermost.com/t/interactive-messages-in-direct-message-channel/9076>\
**Category:** Troubleshooting\
**Created:** [March 2, 2020, 12:25pm UTC](https://forum.mattermost.com/t/interactive-messages-in-direct-message-channel/9076 "2020-03-02T12:25:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dansmithy](https://avatars.discourse-cdn.com/v4/letter/d/7cd45c/32.png) [@dansmithy](https://forum.mattermost.com/u/dansmithy)\
**Post date:** [March 2, 2020, 12:25pm UTC](https://forum.mattermost.com/t/interactive-messages-in-direct-message-channel/9076/1 "2020-03-02T12:25:26Z")

</div>

Do interactive messages work in direct message channels?

While I can use the APIs to create interactive messages (ie. those with buttons/menus) in both public and direct message channels, Mattermost does not send an event to my integration endpoint when I click on a button in the direct message channel.

The message I create is the same in each one, something like this:

```
{
 "channel_id": "{THE CHANNEL ID}",
 "props": {
           "attachments": [
                           {
                            "actions": [
                                        {
                                         "name": "Click me",
                                         "integration": {
                                                         "url": "http://host.docker.internal:8080/mattermost",
                                                         "context": {
                                                                     "message": "Context message"
                                                                     }
                                                         }
                                         }
                                        ],
                            "text": "A button to click"
                            }
                           ]
           }
 }

```

I can send this message to both a public channel _or_ a direct message channel. It renders as expected in both.

When I click on the message in the public channel, I get a call to my server. However, when I click on the message in the direct message channel, I get nothing.

I haven’t found anything in the documentation (or this forum) that indicates whether this should work or not. Am I missing something?

Thanks.

---

<div class="post-metadata">

**Author:** ![dansmithy](https://avatars.discourse-cdn.com/v4/letter/d/7cd45c/32.png) [@dansmithy](https://forum.mattermost.com/u/dansmithy)\
**Post date:** [March 3, 2020, 12:17pm UTC](https://forum.mattermost.com/t/interactive-messages-in-direct-message-channel/9076/2 "2020-03-03T12:17:18Z")

</div>

Update:

Using Chrome dev tools, I can see the webapp post to `http://localhost:8065/api/v4/posts/zcrco8hbppbutgyazoahngfgca/actions/tiprgoyh53fj3edmfi6q3thkye` and get back a response like this:

```auto
{"id":"store.sql_team.get.find.app_error","message":"Unable to find the existing team","detailed_error":"","request_id":"s3tbgf44cfb7dyszioobwa63yh","status_code":404}

```

I would expect that either:

1. Interactive messages are _not_ supported in direct messages, and I shouldn’t be able to post one there.
2. Interactive messages _are_ supported in direct messages, and when clicking a button my registered integration endpoint should receive a payload (with or without a team id).

Note: I’ve commented on a closed issue issue in GitHub that might describe this problem ([https://github.com/mattermost/mattermost-server/issues/10688#issuecomment-593920518](https://github.com/mattermost/mattermost-server/issues/10688#issuecomment-593920518))
