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

# List Comments

Get a list of comments for a specified resource.

<Note>
  External Documentation

  To learn more, visit the [Rapid7 InsightIDR documentation](https://help.rapid7.com/insightidr/en-us/api/v1/docs.html#tag/Comments/operation/listComments).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter        | Description                                                              |
  | ---------------- | ------------------------------------------------------------------------ |
  | Page             | The number of the page to return results from (zero-based).              |
  | Page Size        | The maximum number of results to return per page. Valid range is `1-100` |
  | Return All Pages | Automatically fetch all resources, page by page.                         |
  | Target Resource  | The target of the comments to return.                                    |
</div>

## Example Output

```json theme={"dark"}
{
	"data": [
		{
			"created_time": "2018-06-06T16:56:42Z",
			"rrn": "rrn:investigation:us:01234567-89ab-cdef-0000-123123123123:comment:98765FEBCAD",
			"target": "rrn:investigation:us:01234567-89ab-cdef-0000-123123123123:investigation:ABCDEF543210",
			"creator": {
				"type": "USER",
				"name": "John Doe"
			},
			"body": "Here is my comment.",
			"visibility": "PUBLIC",
			"attachments": [
				{
					"rrn": "rrn:collaboration::orgId_123:attachment:d7812988-f171-4164-9309-65c32d5da28f",
					"creator": {
						"type": "USER",
						"name": "John Doe"
					},
					"created_time": "2018-06-06T16:56:42Z",
					"file_name": "screenshot.png",
					"mime_type": "image/png",
					"size": 12345,
					"scan_status": "CLEAN"
				}
			]
		}
	],
	"metadata": {
		"index": 0,
		"size": 20,
		"total_pages": 1,
		"total_data": 15
	}
}
```

## Workflow Library Example

[List Comments with Rapid7 Insightidr and Send Results Via Email](https://library.blinkops.com/workflows/list-comments-with-rapid7-insightidr-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/list-comments-with-rapid7-insightidr-and-send-results-via-email/canvas" />
</div>
