Skip to main content
POST
Send a message to a session
Sending a message automatically updates the session’s last activity timestamp. If auto-renewal is enabled, the session will be renewed, extending its expiration time.

Path Parameters

string
required
The unique identifier of the session

Request Body

string
required
The message content (maximum 4000 characters)
object
Optional metadata to attach to the message
array
Optional array of attachments

Response

string
Unique identifier of the created message
string
The message content
string
UUID of the message author (user or agent)
string
ISO timestamp of message creation
object
Any metadata attached to the message
object
Current session status after sending the message

Error Responses

Path Parameters

sessionId
string
required

ID of the session

Body

application/json
content
string
required

The message content

attachments
object[]
metadata
object

Additional message metadata

Response

Message sent and processed successfully

id
string

Message ID

content
string

The message content

authorId
string<uuid>
createdAt
string<date-time>
metadata
object
sessionStatus
object

Current session status after sending the message