provider conversations POST /conversations.open
@utdk/slack /conversations.open
conversations_open
Opens or resumes a direct message or multi-person direct message.
token header
Authentication token. Requires scope: `conversations:write`
string

Try it

Authentication
Configure credentials for Slack Web API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

conversationsOpen
POST/conversations.open
Opens or resumes a direct message or multi-person direct message.

Input

Resume a conversation by supplying an `im` or `mpim`'s ID. Or provide the `users` field instead.

Boolean, indicates you want the full IM channel definition in the response.

Comma separated lists of users. If only one user is included, this creates a 1:1 DM. The ordering of the users is preserved whenever a multi-person direct message is returned. Supply a `channel` when not supplying `users`.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import slack from '@utdk/slack';

await slack.conversationsOpen()