Skip to content

DmChannel

Bakhtarian edited this page May 14, 2026 · 1 revision

DM Channel

A DM channel is a direct-message conversation between users on the Whop platform. The SDK supports full CRUD on DM channels.

SDK access

$client->dmChannels // Matchable\Whop\Resource\DmChannelResource

Endpoints

create(array $data): array

HTTP POST dm-channels
Does Creates a new DM channel.
Parameters $data — channel attributes (e.g. participant user IDs).
Returns array

list(array $query = []): array

HTTP GET dm-channels
Does Lists DM channels.
Parameters $query — optional filters / pagination.
Returns array

get(string $id): array

HTTP GET dm-channels/{id}
Does Retrieves a single DM channel by ID.
Parameters $id — the DM channel ID.
Returns array

update(string $id, array $data): array

HTTP PATCH dm-channels/{id}
Does Updates a DM channel.
Parameters $id — the DM channel ID; $data — fields to change.
Returns array

delete(string $id): array

HTTP DELETE dm-channels/{id}
Does Deletes a DM channel.
Parameters $id — the DM channel ID.
Returns array

Example

$channel = $client->dmChannels->create([
    'user_ids' => ['user_abc', 'user_def'],
]);

Related resources

  • DmMember — participants in a DM channel
  • Message — messages sent within channels

Reference

Official Whop documentation: https://docs.whop.com

Clone this wiki locally