Skip to content

Support

support_message_create

Post a message into a support thread.

Tool

support_message_create

Post a message into a support thread.

Post a message into a support thread. A message has exactly one author: either an opaque external identifier from the client's own user base, or a support agent — never both and never neither. Direction, authorship and visibility are independent: an internal note may be inbound or outbound. Posting a message moves the parent thread's last reply timestamp. A message may carry files: create and finalize them first, then name them in attachmentIds. Through the public edge an agent author is accepted only if that agent carries no Lessly binding — a bot or the calling backend; an agent bound to a Lessly identity may author only from a signed-in session

Behavior

HTTP
POST /support/messages

Arguments

NameTypeRequiredDescription
bodystringThe message text, stored verbatim
threadIdstringId of the thread this message belongs to
directionstringinbound: written by the external end user. outbound: written by support, going out to them
visibilitystringDefaults to public when omitted. Internal notes are never shown to the end user
attachmentIdsarrayFiles this message carries, created with support_attachment_create and confirmed with support_attachment_finalize beforehand. Each must be an uploaded attachment of the same thread that no other message already carries; otherwise the whole message is refused. At most 10 per message
authorAgentIdstringThe support agent of this product who wrote the message. Set this exactly when the message comes from inside the support contour; leave authorExternalId empty. An agent of another product is reported as not found
authorExternalIdstringOpaque identifier of the external end user in the client's own user base, stored verbatim. Set this exactly when the message comes from outside; leave authorAgentId empty

Response

FieldTypeAlwaysDescription
idstringMessage id
bodystringThe message text, byte-identical to what was stored
threadIdstringThread this message belongs to
createdAtstringISO-8601 creation timestamp
directionstringinbound: written by the external end user. outbound: written by support, going out to them
visibilitystringpublic: part of the conversation the external end user sees. internal: a note between agents that never leaves the support contour
attachmentsarrayFiles this message carries, each with a freshly signed download URL. Empty when there are none. Attachments whose upload was never confirmed are never listed here
authorAgentIdstringThe agent author, or null when the external end user wrote the message
authorExternalIdstringThe external author, or null when an agent wrote the message

Try it

Post a message into a support thread.

When to use

Post a message into a support thread. A message has exactly one author: either an opaque external identifier from the client's own user base, or a support agent — never both and never neither. Direction, authorship and visibility are independent: an internal note may be inbound or outbound. Posting a message moves the parent thread's last reply timestamp. A message may carry files: create and finalize them first, then name them in attachmentIds. Through the public edge an agent author is accepted only if that agent carries no Lessly binding — a bot or the calling backend; an agent bound to a Lessly identity may author only from a signed-in session

Example

Ask your agent something like this:

Post a message into a support thread.

The agent will invoke support_message_create with these arguments:

{
  "body": "<body>",
  "threadId": "<threadId>",
  "direction": "<direction>"
}

Esc

Start typing to search the docs.

navigateselect