# social.coves.feed.getCommentSkeleton

> Get the ordered direct replies for one or more parent posts or comments from a comment feed generator. Served by the generator's service and called by the AppView, which hydrates the comments.

- Kind: query
- Authority: feed.coves.social
- Lexicon: 1
- Published by [coves.social](https://lexicon.garden/identity/did:web:coves.social), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.feed.getCommentSkeleton)
- [Schema JSON](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.feed.getCommentSkeleton/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.feed.getCommentSkeleton/analytics)

## Query (`social.coves.feed.getCommentSkeleton`)

Type: query · GET

### Parameters (query string)

- `cursor` (string): Cursor for the next page of replies. Applies only when exactly one parent is given.
  - Constraints: maxLength: 500
- `feed` (string · at-uri, required): AT-URI of the social.coves.feed.generator record being requested
- `limit` (integer): Maximum replies per parent
  - Constraints: minimum: 1, maximum: 100, default: 50
- `parents` (array, required): AT-URIs of the parent posts or comments whose replies to order
  - Constraints: minLength: 1, maxLength: 25
  - `items` (string · at-uri)
- `timeframe` (string): Timeframe for generators ranked by top score; ignored by other generators.
  - Constraints: maxLength: 64, knownValues: hour | day | week | month | year | all

### Output (application/json)

- `schema` (ref)
  - Reference: `#output`

### Errors

- `UnknownFeed`: The generator does not serve the requested feed.
- `InvalidCursor`: The cursor is malformed or expired.

## #output (`social.coves.feed.getCommentSkeleton#output`)

Type: object

Ordered replies for each requested parent

### Properties

- `replies` (array, required)
  - `items` (ref)
    - Reference: `social.coves.feed.defs#skeletonReplies`
- `reqId` (string): Request ID assigned by the feed generator.
  - Constraints: maxLength: 100

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get the ordered direct replies for one or more parent posts or comments from a comment feed generator. Served by the generator's service and called by the AppView, which hydrates the comments.",
      "errors": [
        {
          "description": "The generator does not serve the requested feed.",
          "name": "UnknownFeed"
        },
        {
          "description": "The cursor is malformed or expired.",
          "name": "InvalidCursor"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "#output",
          "type": "ref"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "description": "Cursor for the next page of replies. Applies only when exactly one parent is given.",
            "maxLength": 500,
            "type": "string"
          },
          "feed": {
            "description": "AT-URI of the social.coves.feed.generator record being requested",
            "format": "at-uri",
            "type": "string"
          },
          "limit": {
            "default": 50,
            "description": "Maximum replies per parent",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "parents": {
            "description": "AT-URIs of the parent posts or comments whose replies to order",
            "items": {
              "format": "at-uri",
              "type": "string"
            },
            "maxLength": 25,
            "minLength": 1,
            "type": "array"
          },
          "timeframe": {
            "description": "Timeframe for generators ranked by top score; ignored by other generators.",
            "knownValues": [
              "hour",
              "day",
              "week",
              "month",
              "year",
              "all"
            ],
            "maxLength": 64,
            "type": "string"
          }
        },
        "required": [
          "feed",
          "parents"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "output": {
      "description": "Ordered replies for each requested parent",
      "properties": {
        "replies": {
          "items": {
            "ref": "social.coves.feed.defs#skeletonReplies",
            "type": "ref"
          },
          "type": "array"
        },
        "reqId": {
          "description": "Request ID assigned by the feed generator.",
          "maxLength": 100,
          "type": "string"
        }
      },
      "required": [
        "replies"
      ],
      "type": "object"
    }
  },
  "id": "social.coves.feed.getCommentSkeleton",
  "lexicon": 1
}
```
