> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Direct Channel

Create a direct post channel between two users.

**Note:** To send a post through the direct channel, use the `Create Post In Channel` action with the `id` returned in response.

**Required Permissions**: Must be one of the two users of the direct channel and have `create_direct_channel` permission or `manage_system`.

<Note>
  External Documentation

  To learn more, visit the [Mattermost documentation](https://developers.mattermost.com/api-documentation/#/operations/CreateDirectChannel).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter | Description                                           |
  | --------- | ----------------------------------------------------- |
  | User ID 1 | The ID of the first user in the direct post channel.  |
  | User ID 2 | The ID of the second user in the direct post channel. |
</div>

## Example Output

```json theme={"dark"}
{
	"id": "string",
	"create_at": -9007199254740991,
	"update_at": -9007199254740991,
	"delete_at": -9007199254740991,
	"team_id": "string",
	"type": "string",
	"display_name": "string",
	"name": "string",
	"header": "string",
	"purpose": "string",
	"last_post_at": -9007199254740991,
	"total_msg_count": 0,
	"extra_update_at": -9007199254740991,
	"creator_id": "string"
}
```

## Workflow Library Example

[Create Direct Channel with Mattermost and Send Results Via Email](https://library.blinkops.com/workflows/create-direct-channel-with-mattermost-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/create-direct-channel-with-mattermost-and-send-results-via-email/canvas" />
</div>
