---
title: "im_open event"
summary: "You opened a DM"
url: "https://docs.slack.dev/reference/events/im_open"
type: "reference"
subtype: "event"
event_name: "im_open"
scopes:
  - "im:read"
apis:
  - "Events"
  - "RTM"
---

Source: https://docs.slack.dev/reference/events/im_open

# im_open event

### You opened a DM

## Facts

**Required Scopes**

[`im:read`](https://docs.slack.dev/reference/scopes/im.read.md)

**Compatible APIs**

[`Events`](https://docs.slack.dev/apis/events-api.md)

[`RTM`](https://docs.slack.dev/legacy/legacy-rtm-api.md)

## Usage info {#usage-info}

This example includes both the [event wrapper](https://docs.slack.dev/apis/events-api.md#callback-field) and the [event structure](https://docs.slack.dev/apis/events-api.md#event-type-structure) for the `im_open` event.

```json
{
    "token": "XXYYZZ",
    "team_id": "T123ABC456",
    "api_app_id": "A123ABC456",
    "event": {
        "type": "im_open",
        "user": "U024BE7LH",
        "channel": "D024BE91L"
    },
    "type": "event_callback",
    "authorizations": [
        {
            "team_id": "T123ABC456",
            "user_id": "U123ABC456",
            "is_bot": false,
            "is_enterprise_install": false,
        }
    ],
    "event_id": "Ev123ABC456",
    "event_time": 123456789
}
```

The `im_open` event is sent to all connections for a user when a direct message channel is opened by that user.
