# ink.resenha.parlor.getThread

> Requires the caller's service token.

- Kind: query
- Authority: parlor.resenha.ink
- Lexicon: 1
- Published by [resenha.ink](https://lexicon.garden/identity/did:plc:v7itjf4h3sb5zuegiiskctqb), not the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:v7itjf4h3sb5zuegiiskctqb/ink.resenha.parlor.getThread)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:v7itjf4h3sb5zuegiiskctqb/ink.resenha.parlor.getThread/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:v7itjf4h3sb5zuegiiskctqb/ink.resenha.parlor.getThread/analytics)

## Query (`ink.resenha.parlor.getThread`)

Type: query · GET

### Parameters (query string)

- `subject` (string · at-uri, required): The reader's book record.

### Output (application/json)

- `cid` (string · cid): The record's version as the server last saw it, for a like or comment to name.
- `commentCount` (integer)
  - Constraints: minimum: 0
- `comments` (array, required): Oldest first, flat; parent names the comment each reply answers.
  - `items` (ref)
    - Reference: `ink.resenha.defs#commentView`
- `likeCount` (integer)
  - Constraints: minimum: 0
- `profiles` (array)
  - `items` (ref)
    - Reference: `ink.resenha.defs#profileView`
- `subject` (string · at-uri, required)
- `viewer` (ref)
  - Reference: `ink.resenha.defs#viewerState`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Requires the caller's service token.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cid": {
              "description": "The record's version as the server last saw it, for a like or comment to name.",
              "format": "cid",
              "type": "string"
            },
            "commentCount": {
              "minimum": 0,
              "type": "integer"
            },
            "comments": {
              "description": "Oldest first, flat; parent names the comment each reply answers.",
              "items": {
                "ref": "ink.resenha.defs#commentView",
                "type": "ref"
              },
              "type": "array"
            },
            "likeCount": {
              "minimum": 0,
              "type": "integer"
            },
            "profiles": {
              "items": {
                "ref": "ink.resenha.defs#profileView",
                "type": "ref"
              },
              "type": "array"
            },
            "subject": {
              "format": "at-uri",
              "type": "string"
            },
            "viewer": {
              "ref": "ink.resenha.defs#viewerState",
              "type": "ref"
            }
          },
          "required": [
            "subject",
            "comments"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "subject": {
            "description": "The reader's book record.",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "subject"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "The conversation about a reader reading a book: the Resenha comments and BookHive buzzes on their book record, with the likes count and whether the caller liked it.",
  "id": "ink.resenha.parlor.getThread",
  "lexicon": 1
}
```
