Skip to content

Add Message

POST
/api/v1/team-chat/threads/{thread_id}/messages

Add a message to a conversation thread.

Args: thread_id: The thread UUID string. body: Message creation data. user: The authenticated user context. svc: The conversation service (injected).

Returns: The created message.

Authorizations

Parameters

Path Parameters

thread_id
required
string

Request Body required

Input schema for adding a message to a thread.

Attributes: sender_role: Agent role or “user”. content: Message content text. message_type: Type of message (default “message”). artifacts: Optional list of artifact ID strings. a2a_task_id: Optional link to A2A task. metadata: Optional extensible metadata.

object
a2a_task_id
Any of:
string
artifacts
Any of:
Array<string>
content
required
string
message_type
string
default: message
metadata
Any of:
object
key
additional properties
any
sender_role
required
string

Responses

200

Successful Response

Response schema for a persisted conversation message.

Attributes: id: Unique message identifier. thread_id: Owning thread identifier. sender_role: Agent role or “user”. sender_id: User ID if sender is human. content: Message content text. message_type: Type of message. artifacts: List of artifact IDs referenced. a2a_task_id: Link to A2A task if applicable. metadata: Extensible metadata. created_at: When the message was created.

object
a2a_task_id
required
Any of:
string
artifacts
required
Any of:
Array<string>
content
required
string
created_at
required
string format: date-time
id
required
string format: uuid
message_type
required
string
metadata
required
Any of:
object
key
additional properties
any
sender_id
required
Any of:
string
sender_role
required
string
thread_id
required
string format: uuid

422

Validation Error

object
detail
Array<object>
object
ctx
object
input
loc
required
Array
msg
required
string
type
required
string