---
title: "Get or create DM channel"
method: GET
path: "/api/messaging/dm-channel"
tags: ["messaging"]
---

# Get or create DM channel

`GET /api/messaging/dm-channel`

Get or create a direct message channel between users

## Query parameters

- `userId1` string, uuid, required
- `userId2` string, uuid, required

## Response `200`

DM channel retrieved or created

- object
  - `success` boolean
  - `data` object
    - `channel` Channel
      - `id` string, uuid — Unique identifier for the channel
      - `name` string — Name of the channel
      - `serverId` string, uuid — ID of the server this channel belongs to
      - `type` 'text' | 'voice' | 'dm' | 'group' — Type of channel
      - `description` string — Channel description
      - `metadata` object — Additional channel metadata

## Other responses

- `400` — Invalid user IDs
- `500` — Error retrieving channel

---

[API](https://skmtc.net/elizaos/apis/eliza-os-api.md) · [All operations](https://skmtc.net/elizaos/apis/eliza-os-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elizaos/eliza-os-api/revisions/f43280bfdb0c/schema)
