Skip to main content
inputCreateDirectMessageInput

Fields

assetIds
[ID!]

IDs of previously uploaded assets (images, files) to attach to the message

clientMutationId
String

A unique identifier for the client performing the mutation.

conversationId
ID!
required

GlobalID of the direct message or thread to post to. With replyToId, the GlobalID of the conversation containing the message being replied to.

embeddedLinkId
ID

ID of an embedded link (link preview) to attach to the message

replyToId
ID

GlobalID of a message in the conversation to reply to. Finds or creates the thread rooted at that message and posts there. Omit to post to the conversation itself.

text
String!
required

Message text (HTML is sanitized server-side)