---
title: "Service: /groups/{group}/discussions/{discussion} [GET]"
source: https://dev.pageseeder.com/api/services/get-group-discussion-GET.html
description: "GET endpoint that retrieves a single discussion from a specified group with configurable comment filtering options (none, first, last, all, archive) and maximum comment count per discussion."
last_updated: 2026-09-02T11:36:17+10:00
document_type: api_endpoint
operation_id: comment-GET
resource_id: comment
path_template: /groups/{group}/discussions/{discussion}
http_method: GET
api_category: comment
implementation_version: 6.2004
api_since: 5.1102
deprecated_since: null
obsolete_since: null
api_support: supported
cache_control: null
generated_at: 2026-09-02
tokens: ~1386
---

# /groups/\{group\}/discussions/\{discussion\} \[GET\]

## Description

Return a single [discussion](../../reference/glossary/comment.md) from the group specified in the URL.

## Parameters

| Name | Description | Required | Type | Default value |
| --- | --- | --- | --- | --- |
| comments | The comments to include, can be `none`, `first`, `last`, `all`, `archive`  | no | string | `all` |
| discussionsize | The maximum number of comments to return per discussion | no | long | 1000 |

## Permission

This service is restricted to guest and higher. If the group is public, anyone can invoke it.

## Response

This service returns a single discussion as a [\<discussion\>](../elements/element_discussion.md) element.

```xml

<discussion id="288"
            title="original"
            replycount="3"
            lastcommentid="292"
            lastcommentdate="2017-02-22T09:21:48+11:00">
  <comment id="288"
           contentrole="Comment"
           created="2017-02-21T15:32:35+11:00">
    <title>original</title>
    <author id="1"
            firstname="John"
            surname="Smith"
            username="jsmith"
            status="activated">
            <fullname>John Smith</fullname>
    </author>
    <content type="text/plain">Original Document</content>
  </comment>
  <comment id="289"
           contentrole="Comment"
           created="2017-02-21T15:32:59+11:00">
    <title>original</title>
    <author id="1" ...> ... </author>
    <content type="text/plain">First Reply</content>
  </comment>
  <comment id="290"
           contentrole="Comment"
           created="2017-02-21T15:33:07+11:00">
    <title>original</title>
    <author id="1" ...> ... </author>
    <content type="text/plain">Second Reply</content>
  </comment>
  <comment id="292"
           contentrole="Comment"
           created="2017-02-22T09:21:48+11:00">
    <title>original</title>
    <author>
      <fullname>Jane Brown</fullname>
    </author>
    <content type="text/plain">TestComment</content>
  </comment>
</discussion>
```

By default, all discussions and comments are included.

### Effect of `comments` parameter

If comments is `first`:

```xml

<discussion id="288"
            title="original"
            lastcommentid="292"
            lastcommentdate="2017-02-22T09:21:48+11:00">
  <comment id="288"
           contentrole="Comment"
           created="2017-02-21T15:32:35+11:00">
    <title>original</title>
    <author id="1" ...> ... </author>
    <content type="text/plain">Original Document</content>
  </comment>
</discussion>
```

If comments is `last`:

```xml

<discussion id="288"
            title="original"
            replycount="3"
            lastcommentid="292"
            lastcommentdate="2017-02-22T09:21:48+11:00">
  <comment id="292"
           contentrole="Comment"
           created="2017-02-22T09:21:48+11:00">
    <title>original</title>
    <author>
      <fullname>Jane Brown</fullname>
    </author>
    <content type="text/plain">TestComment</content>
  </comment>
</discussion>
```

If comments is `archive`:

```xml

<discussion id="288"
            title="original"
            replycount="3"
            lastcommentid="292"
            lastcommentdate="2017-02-22T09:21:48+11:00">
  <comment id="288"
             contentrole="Comment"
             created="2017-02-21T15:32:35+11:00">
        <title>original</title>
        <author id="1" ...> ... </author>
        <content type="text/plain">Original Document</content>
  </comment>
  <comment id="289"
             contentrole="Comment"
             created="2017-02-21T15:32:59+11:00">
        <title>original</title>
        <author id="1"> ... </author>
        <content type="text/plain">First Reply</content>
  </comment>
  <comment id="290"
             contentrole="Comment"
             created="2017-02-21T15:33:07+11:00">
    <title>original</title>
    <author id="1"> ... </author>
    <content type="text/plain">Second Reply</content>
  </comment>
  <comment id="291"
           contentrole="archive-File Attachment"
           created="2017-02-21T15:34:32+11:00">
    <title>original</title>
    <author>
      <fullname>Jane Brown</fullname>
    </author>
    <modifiedby id="1"
                firstname="First Name"
                surname="Surname"
                username="Username"
                status="activated"
                date="2017-02-21T15:35:01+11:00">
      <fullname>Adriano Akaishi</fullname>
    </modifiedby>
    <content type="text/plain">comment</content>
    <attachment>
      <uri id="32"
           scheme="https"
           host="www.facebook.com"
           port="443"
           path="/"
           decodedpath="/"
           external="true"
           mediatype=""
           created="2017-02-15T09:51:42+11:00"
           modified="2017-02-15T09:51:42+11:00">
        <displaytitle>https://www.facebook.com/</displaytitle>
      </uri>
    </attachment>
  </comment>
  <comment id="292"
           contentrole="Comment"
           created="2017-02-22T09:21:48+11:00">
    <title>original</title>
    <author>
      <fullname>Jane Brown</fullname>
    </author>
    <content type="text/plain">TestComment</content>
    </comment>
</discussion>
```

If comments is `none`:

```xml

<discussion id="288"
            title="original"
            lastcommentid="292"
            lastcommentdate="2017-02-22T09:21:48+11:00">
</discussion>
```

## Error Handling

| Code | Cause / Description |
| --- | --- |
| 0x1316 | The discussion was not found |
| 0x0202 | The group was not found |

