# pub.oysters.getPostThread

> Published by [oysters.pub](https://lexicon.garden/identity/did:plc:gsvuczfwpmrqpap45iz23j43)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:gsvuczfwpmrqpap45iz23j43/pub.oysters.getPostThread)
- [Documentation](https://lexicon.garden/lexicon/did:plc:gsvuczfwpmrqpap45iz23j43/pub.oysters.getPostThread/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:gsvuczfwpmrqpap45iz23j43/pub.oysters.getPostThread/examples)

## Definitions

### `pub.oysters.getPostThread`

**Type**: `query`

A submission and its discussion.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | Yes | AT-URI of the submission. |
| `depth` | `integer` | No | How many levels of replies to include. Beyond this, a comment's replies come back empty. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `thread` | `ref` → `pub.oysters.defs#threadViewPost` | Yes | The submission and its replies. |

#### Errors

- **NotFound**: No submission at that URI, or it has been deleted.
- **InvalidRequest**: The URI is not an AT-URI in one of this board's collections.

## Raw Schema

```json
{
  "id": "pub.oysters.getPostThread",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "NotFound",
          "description": "No submission at that URI, or it has been deleted."
        },
        {
          "name": "InvalidRequest",
          "description": "The URI is not an AT-URI in one of this board's collections."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "thread"
          ],
          "properties": {
            "thread": {
              "ref": "pub.oysters.defs#threadViewPost",
              "type": "ref",
              "description": "The submission and its replies."
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "uri"
        ],
        "properties": {
          "uri": {
            "type": "string",
            "format": "at-uri",
            "description": "AT-URI of the submission."
          },
          "depth": {
            "type": "integer",
            "default": 12,
            "maximum": 12,
            "minimum": 0,
            "description": "How many levels of replies to include. Beyond this, a comment's replies come back empty."
          }
        }
      },
      "description": "A submission and its discussion."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
