cURL
Endpoints
Send Direct Message
Send a text message to a workspace user by user ID
POST
cURL
Prerequisites
Before sending a direct message, ensure you have:- A valid token with chat permissions.
- The target workspace user’s ID.
Usage Notes
- The endpoint creates a DM channel if one does not already exist for the sender and recipient.
- Existing DM channels are reused.
- Messages must be between 1 and 10,000 characters.
- Returns HTTP 202 with the queued DM
channelId.