ts.msg.thread

Get full conversation thread.

Get full conversation thread.

Requires authentication

Description

Retrieves the complete message thread starting from any message in the conversation. Returns all messages in chronological order (oldest first).

Parameters

NameTypeRequiredDefaultDescription
message_idstringYesAny message ID in the thread

Response

Returns all messages in the thread.

{
  "messages": [
    {
      "content": "Original message",
      "id": "msg_a1b2c3d4e5f6"
    },
    {
      "content": "Reply",
      "id": "msg_f6e5d4c3b2a1",
      "reply_to_id": "msg_a1b2c3d4e5f6"
    }
  ],
  "total": 2
}

Errors

CodeDescription
not_authenticatedNo active login for this session
invalid_inputmessage_id is required
not_foundMessage does not exist

Examples

View a conversation thread

Request:

{
  "message_id": "msg_a1b2c3d4e5f6"
}

Response:

{
  "messages": [
    {
      "content": "Original message",
      "id": "msg_a1b2c3d4e5f6"
    },
    {
      "content": "Reply",
      "id": "msg_f6e5d4c3b2a1"
    }
  ],
  "total": 2
}