Skip to main content
listDirectMessages lists one-to-one direct-message conversations visible to the installed bot. Use the returned conversation ID with message and history actions.

Example

automations/list-slack-dms.automation.ts

Inputs

Output

Returns conversations and responseMetadata.nextCursor. A direct-message conversation has id, usually userId, and isDirectMessage; other common conversation metadata may also be present.