Open Work Direct Message
POST /work/direct-messages
Open, or return, the direct message with these people and agents. PERSONAL KEY ONLY.
The caller is added server-side, so a body cannot open a conversation between two other people. The id is derived from
the participants: asking twice returns the same conversation with duplicate: true. Opening costs nothing; sending to an
agent does (see the send operation). Another person’s Chief of Staff is refused, as in the app.
Authorizations
Parameters
Header Parameters
Request Body required
One direct-message conversation a person is opening.
Names only the OTHER participants: the caller is added server-side from the session, so a body cannot open a conversation between two other people. An empty body is legal only when at least one agent is named — a DM needs two identities in total and the caller is one of them.
object
Responses
201
Successful Response
object
A Work direct message, chat, approval decision, work item, question, rule set or suggestion list, as the app returns it.
object
object
Whether there are more pages
Items per page
Current page number (1-indexed)
Total number of items
422
Validation Error