Skip to content

Get Thread With Messages

GET
/api/v1/team-chat/threads/{thread_id}

Get a thread with its messages.

Args: thread_id: The thread UUID string. limit: Maximum messages to return. offset: Message pagination offset. user: The authenticated user context. svc: The conversation service (injected).

Returns: The thread with embedded messages.

Raises: HTTPException: 404 if thread not found.

Authorizations

Parameters

Path Parameters

thread_id
required
string

Query Parameters

limit

Maximum messages to return

integer
default: 100 >= 1

Maximum messages to return

offset

Message offset for pagination

integer

Message offset for pagination

Responses

200

Successful Response

Thread response with embedded messages.

Attributes: messages: Ordered list of messages in the thread.

object
context_id
required
string
created_at
required
string format: date-time
id
required
string format: uuid
message_count
integer
messages
Array<object>

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
metadata
required
Any of:
object
key
additional properties
any
participant_roles
required
Array<string>
status
required
string
tenant_id
required
string format: uuid
title
required
Any of:
string
updated_at
required
string format: date-time
workflow_run_id
required
Any of:
string format: uuid

422

Validation Error

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