GET
/
api
/
messaging
/
dm-channel
Get or create DM channel
curl --request GET \
  --url http://localhost:3000/api/messaging/dm-channel
{
  "success": true,
  "data": {
    "channel": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "serverId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "type": "text",
      "description": "<string>",
      "metadata": {}
    }
  }
}

Query Parameters

userId1
string
required
userId2
string
required

Response

200
application/json

DM channel retrieved or created

The response is of type object.