> ## 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 comment

> Use this action to retrieve a comment.

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 ID of the room     |
| **Thread ID**  | Text     | The ID of the thread   |
| **Comment ID** | Text     | The ID of the comment. |

### 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 created object, typically `"comment"`.                                                      |
| **body.threadId**                         | Text      | The unique identifier for the thread to which the comment belongs.                                          |
| **body.roomId**                           | Text      | The unique identifier for the room where the comment was created.                                           |
| **body.id**                               | Text      | The unique identifier for the created comment.                                                              |
| **body.userId**                           | Text      | The user ID of the person who created the comment.                                                          |
| **body.createdAt**                        | Date/Time | The timestamp of when the comment was created.                                                              |
| **body.body**                             | Object    | The content body of the comment. This is an object that includes `version` and `content`.                   |
| **body.body.version**                     | Number    | The version number of the comment content.                                                                  |
| **body.body.content**                     | Array     | An array of content blocks in the comment. Each block contains further nested data, such as paragraph text. |
| **body.body.content\[].type**             | Text      | The type of the content block (e.g., `"paragraph"`).                                                        |
| **body.body.content\[].children**         | Array     | An array containing the children of the content block. Typically contains text objects for each paragraph.  |
| **body.body.content\[].children\[].text** | Text      | The actual text content of the comment, such as `"hi"`.                                                     |
| **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>
