# ai.newnal.trustsquare.getComments

> Published by [bezalel-newnal.bsky.social](https://lexicon.garden/identity/did:plc:75qhtany5zmo7d3i2ni5d7nf)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:75qhtany5zmo7d3i2ni5d7nf/ai.newnal.trustsquare.getComments)
- [Documentation](https://lexicon.garden/lexicon/did:plc:75qhtany5zmo7d3i2ni5d7nf/ai.newnal.trustsquare.getComments/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:75qhtany5zmo7d3i2ni5d7nf/ai.newnal.trustsquare.getComments/examples)

## Definitions

### `ai.newnal.trustsquare.getComments`

**Type**: `query`

List root comments of a Square with a few inline replies each.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `sort` | `string` | No |  |
| `limit` | `integer` | No |  |
| `cursor` | `string` | No |  |
| `square` | `string` (at-uri) | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cursor` | `string` | No |  |
| `comments` | `array` | Yes |  |

#### Errors

- **NotFound**

## Raw Schema

```json
{
  "id": "ai.newnal.trustsquare.getComments",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "NotFound"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "comments"
          ],
          "properties": {
            "cursor": {
              "type": "string"
            },
            "comments": {
              "type": "array",
              "items": {
                "ref": "ai.newnal.trustsquare.defs#threadView",
                "type": "ref"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "square"
        ],
        "properties": {
          "sort": {
            "type": "string",
            "default": "trust",
            "knownValues": [
              "trust",
              "newest",
              "top",
              "oldest"
            ]
          },
          "limit": {
            "type": "integer",
            "default": 30,
            "maximum": 100,
            "minimum": 1
          },
          "cursor": {
            "type": "string"
          },
          "square": {
            "type": "string",
            "format": "at-uri"
          }
        }
      },
      "description": "List root comments of a Square with a few inline replies each."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
