# pub.chive.annotation.getThread

> Published by [chive.pub](https://lexicon.garden/identity/did:plc:7natp5xae72bddaqlkef2t4e)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.annotation.getThread)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.annotation.getThread/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.annotation.getThread/examples)

## Definitions

### `pub.chive.annotation.getThread`

**Type**: `query`

Get an annotation thread including the root annotation and all replies

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | Yes | AT-URI of the root annotation |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `parent` | `ref` → `pub.chive.annotation.listForEprint#annotationView` | Yes | Root annotation of the thread |
| `replies` | `array` | Yes | Direct replies to the root annotation |
| `totalReplies` | `integer` | Yes | Total number of replies in the thread |

#### Errors

- **NotFound**: Annotation not found

## Raw Schema

```json
{
  "id": "pub.chive.annotation.getThread",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "NotFound",
          "description": "Annotation not found"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "parent",
            "replies",
            "totalReplies"
          ],
          "properties": {
            "parent": {
              "ref": "pub.chive.annotation.listForEprint#annotationView",
              "type": "ref",
              "description": "Root annotation of the thread"
            },
            "replies": {
              "type": "array",
              "items": {
                "ref": "pub.chive.annotation.listForEprint#annotationView",
                "type": "ref"
              },
              "description": "Direct replies to the root annotation"
            },
            "totalReplies": {
              "type": "integer",
              "minimum": 0,
              "description": "Total number of replies in the thread"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "uri"
        ],
        "properties": {
          "uri": {
            "type": "string",
            "format": "at-uri",
            "description": "AT-URI of the root annotation"
          }
        }
      },
      "description": "Get an annotation thread including the root annotation and all replies"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
