Use the Direct Messages (DM) API to manage one-to-one conversations within your workspace. These endpoints provide the tools needed to control DM sessions and access related information.
With the DM API, you can:
Create and close direct message conversations.
Retrieve a list of DM rooms and their messages across your workspace.
The
dm.*andim.*endpoint groups offer identical functionality. For example,im.closeanddm.closeperform the same operation.