> ## Documentation Index
> Fetch the complete documentation index at: https://tools.lunchpaillabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get thread

> Use this action to retrieve a thread and its comments.

export const feature_0 = "action"

<Warning>
  🔐 Plus Plugin Only: This {feature_0} is only available in the Plus version of
  the plugin. Get the Plus plugin [here](mailto:help@lunchpaillabs.com).
</Warning>

### Fields

The following fields are available in this action:

| **Field**     | **Type** | **Description**                      |
| ------------- | -------- | ------------------------------------ |
| **Room ID**   | Text     | The unique identifier of the room.   |
| **Thread ID** | Text     | The unique identifier of the thread. |

### Returned Values

The following values are returned by the action: `[]` indicates an array of objects.

| **Key**                                               | **Type**  | **Description**                                                                                             |
| ----------------------------------------------------- | --------- | ----------------------------------------------------------------------------------------------------------- |
| **body.type**                                         | Text      | The type of the object, typically `"thread"`.                                                               |
| **body.id**                                           | Text      | The unique identifier of the retrieved thread.                                                              |
| **body.roomId**                                       | Text      | The unique identifier for the room where the thread exists.                                                 |
| **body.comments**                                     | Array     | An array of comments associated with the thread.                                                            |
| **body.comments\[].type**                             | Text      | The type of the object, typically `"comment"`.                                                              |
| **body.comments\[].threadId**                         | Text      | The unique identifier for the thread to which the comment belongs.                                          |
| **body.comments\[].roomId**                           | Text      | The unique identifier for the room where the comment exists.                                                |
| **body.comments\[].id**                               | Text      | The unique identifier for the comment within the thread.                                                    |
| **body.comments\[].userId**                           | Text      | The user ID of the person who created the comment.                                                          |
| **body.comments\[].createdAt**                        | Date/Time | The timestamp of when the comment was created.                                                              |
| **body.comments\[].body**                             | Object    | The content body of the comment. This is an object that includes `version` and `content`.                   |
| **body.comments\[].body.version**                     | Number    | The version number of the comment content.                                                                  |
| **body.comments\[].body.content**                     | Array     | An array of content blocks in the comment. Each block contains further nested data, such as paragraph text. |
| **body.comments\[].body.content\[].type**             | Text      | The type of the content block (e.g., `"paragraph"`).                                                        |
| **body.comments\[].body.content\[].children**         | Array     | An array containing the children of the content block, typically containing text objects.                   |
| **body.comments\[].body.content\[].children\[].text** | Text      | The actual text content of the comment, such as `"hey this is athread"`.                                    |
| **body.createdAt**                                    | Date/Time | The timestamp of when the thread was created.                                                               |
| **body.updatedAt**                                    | Date/Time | The timestamp of when the thread was last updated.                                                          |
| **body.resolved**                                     | Boolean   | A flag indicating whether the thread has been resolved.                                                     |
| **error.status\_code**                                | Number    | The HTTP status code returned by the API (e.g., `200` for success).                                         |
| **error.status\_message**                             | Text      | The HTTP status message returned by the API (e.g., `"OK"`).                                                 |
| **error.body**                                        | Text      | The raw error body message as a string.                                                                     |
| **returned\_an\_error**                               | Boolean   | A flag indicating whether the API returned an error. `false` means no error occurred.                       |

***

<CardGroup cols={2}>
  <Card title="Need Help?" icon="envelope" href="/support/plans">
    View our options for free community and priority support.
  </Card>

  <Card title="Have a feature request?" icon="lightbulb" href="https://lunchpaillabs.canny.io/feature-requests?selectedCategory=liveblocks-plugin-for-bubble">
    Post your feature request on our

    <a href="https://lunchpaillabs.canny.io/feature-requests?selectedCategory=liveblocks-plugin-for-bubble">
      idea board.
    </a>
  </Card>
</CardGroup>
