Create a new DM channel between two or more users, optionally scoped to a specific company. Returns the existing channel if one already exists.
A company API key, company scoped JWT, app API key, or user OAuth token. You must prepend your key/token with the word 'Bearer', which will look like Bearer ***************************
Parameters for CreateDmChannelV2
The list of user identifiers to include in the DM channel. Each entry can be an email, username, or user ID (e.g. 'user_xxxxx').
Represents a unique identifier that is Base64 obfuscated. It is often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "VXNlci0xMA==") or integer (such as 4) input value will be accepted as an ID.
The unique identifier of the company to scope this DM channel to. When set, the channel is visible only within that company context.
"biz_xxxxxxxxxxxxxx"
A custom display name for the DM channel. For example, 'Project Discussion'.
A successful response
A messaging channel that can be a one-on-one DM, group chat, company support conversation, or platform-level direct message.
The unique identifier for the entity
The time the entity was created (in milliseconds since Unix epoch)
"123.45"
A custom display name assigned to this channel by the user. Null if no custom name has been set.
"Project Alpha Team"
The timestamp when the most recent message was sent in this channel. Null if no messages have been sent.
"2023-12-01T05:00:00.401Z"