# town.delve.feed.getPostThread

> Published by [delve.town](https://lexicon.garden/identity/did:plc:qzqct2rrq4u2gmy5g3mjxske)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.feed.getPostThread)
- [Documentation](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.feed.getPostThread/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.feed.getPostThread/examples)

## Definitions

### `town.delve.feed.getPostThread`

**Type**: `query`

Get posts in a thread. Does not require auth, but additional metadata and filtering will be applied for authed requests.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `depth` | `integer` | No | How many levels of reply depth should be included in response. |
| `parentHeight` | `integer` | No | How many levels of parent (and grandparent, etc) post to include. |
| `uri` | `string` (at-uri) | Yes | Reference (AT-URI) to post record. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `thread` | `union` | Yes |  |
| `threadgate` | `ref` → `town.delve.feed.defs#threadgateView` | No |  |

#### Errors

- **NotFound**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get posts in a thread. Does not require auth, but additional metadata and filtering will be applied for authed requests.",
      "errors": [
        {
          "name": "NotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "thread": {
              "refs": [
                "town.delve.feed.defs#threadViewPost",
                "town.delve.feed.defs#notFoundPost",
                "town.delve.feed.defs#blockedPost"
              ],
              "type": "union"
            },
            "threadgate": {
              "ref": "town.delve.feed.defs#threadgateView",
              "type": "ref"
            }
          },
          "required": [
            "thread"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "depth": {
            "default": 6,
            "description": "How many levels of reply depth should be included in response.",
            "maximum": 1000,
            "minimum": 0,
            "type": "integer"
          },
          "parentHeight": {
            "default": 80,
            "description": "How many levels of parent (and grandparent, etc) post to include.",
            "maximum": 1000,
            "minimum": 0,
            "type": "integer"
          },
          "uri": {
            "description": "Reference (AT-URI) to post record.",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "uri"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "town.delve.feed.getPostThread",
  "lexicon": 1
}
```
