Get Thread With Messages
const url = 'https://api.ultimateteam.ai/api/v1/team-chat/threads/example?limit=100&offset=0&recent=false';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.ultimateteam.ai/api/v1/team-chat/threads/example?limit=100&offset=0&recent=false' \ --header 'X-API-Key: <X-API-Key>'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
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”Maximum messages to return
Maximum messages to return
Message offset for pagination
Message offset for pagination
Responses
Section titled “ Responses ”Successful Response
Thread response with embedded messages.
Attributes: messages: Ordered list of messages in the thread.
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
Example
{ "message_count": 0}Validation Error
object
object
object
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}