> For the complete documentation index, see [llms.txt](https://docs.guardianservice.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.guardianservice.app/technical-information/complex-iterative-review-and-approval-workflows/apis-related/returns-the-list-of-messages-for-the-target-discussion.md).

# Returns the list of messages for the target discussion

<mark style="color:green;">`POST`</mark> `/policy-comments/{policyId}/{documentId}/discussions/{discussionId}/comments/search`

Returns the list of messages for the target discussion

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <token>`   |

**Body**

| Name         | Type    | Description           |
| ------------ | ------- | --------------------- |
| policyId     | string  | Policy ID             |
| documentId   | string  | Document Identifier   |
| discussionId | string  | Discussion Identifier |
| readonly     | boolean | Read Only             |

**Response**

{% tabs %}
{% tab title="200" %}

```json5
description: Successful operation.
          headers:
            X-Total-Count:
              schema:
                type: integer
              description: Total items in the collection.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PolicyCommentDTO'
```

{% endtab %}

{% tab title="401" %}

```json5
{
   description: Unauthorized.
}
```

{% endtab %}

{% tab title="403" %}

```json5
description: Forbidden.
```

{% endtab %}

{% tab title="500" %}

```json5
description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerErrorDTO'
```

{% endtab %}
{% endtabs %}
