Marketplace API / Types
PostChatMessageInput
InputA message to post in a channel.
input PostChatMessageInputInput fields
| Field | Type | Description |
|---|---|---|
chatChannelId | ID! | The channel to post in. |
idempotencyKey | String! | 1 to 200 characters. The CHAT_MESSAGE realtime event returns it as clientMessageUuid. |
mediaId | ID | One image: the asset of a READY upload that the caller created with purpose CHAT_IMAGE. A message may have an image and no text. |
mentionEveryone | Boolean | Notifies every channel member. Needs viewer.canMentionEveryone on the channel. Default: false. |
mentionedUserIds | [ID!] | The users whose mention spans appear in text. A user blocked in either direction is dropped and the span becomes @username. An unknown user gives UserNotFoundError. 1 to 100 unique IDs when present. |
productIds | [ID!] | 1 to 10 unique listings that the caller can see. An unknown listing gives ProductNotFoundError. |
replyToMessageId | ID | A message in the same channel that is not deleted. |
text | String | HTML. The server removes markup that is not allowed, such as <script>. A mention is <span class="mention">@{userId}</span>, where userId is the user's User.id value. The server stores the span with the raw user ID, and ChatMessage.text returns the stored form. A link is <a class="link" href="...">. Null for an attachment-only message. Text that is empty after trimming counts as null. A message without text and without an attachment is a thrown VALIDATION_ERROR. |