Create a new message in a ticket. Required field: ticket (ticket ID).
Optional fields: comment (rich text as TipTap doc JSON, or a plain string) or markdownComment
(Markdown, converted server-side; takes precedence over comment), type (defaults to TEXT, or NOTE
when isNote is true), isNote (creates an internal note), attachments (array of { name, url, type }),
channel, replyTo (message ID to quote), data, and actions. Other schema properties are accepted for
backwards compatibility but are ignored on create; messages are always attributed to the authenticated
user.
Bearer <token>.Markdown message body, honored when creating a message: the server converts it to TipTap JSON and it
takes precedence over comment. Ignored when updating a message.
The coding session this message is written for (hard tickets: the Gleap MCP's send_message). Same as
the X-Gleap-Session-Id header, which wins: the message is booked to the session's agent and goes
through the episode guard (409 refusal: stopped | stale_thread).
Contact ids this reply goes to, when a teammate sends it to only some of the ticket's contacts. Ids that are not contacts of the ticket are ignored; without it, or with all of them, the reply goes to everyone. Notes and bot messages ignore it.
Ok