# social.coves.community.post.get

> Published by [coves.social](https://lexicon.garden/identity/did:web:coves.social)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.community.post.get)
- [Documentation](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.community.post.get/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.community.post.get/examples)

## Definitions

### `social.coves.community.post.get`

**Type**: `query`

Get posts by AT-URI. Supports batch fetching for feed hydration. Returns posts in same order as input URIs. Auth optional: when authenticated, viewer state is populated.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uris` | `array` | Yes | List of post AT-URIs to fetch (max 25) |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `posts` | `array` | Yes | Array of post views. May include notFound/blocked entries for missing posts. |

#### Errors

- **InvalidRequest**: Invalid URI format or empty array

## Raw Schema

```json
{
  "id": "social.coves.community.post.get",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "InvalidRequest",
          "description": "Invalid URI format or empty array"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "posts"
          ],
          "properties": {
            "posts": {
              "type": "array",
              "items": {
                "refs": [
                  "social.coves.community.post.defs#postView",
                  "social.coves.community.post.defs#notFoundPost",
                  "social.coves.community.post.defs#blockedPost"
                ],
                "type": "union"
              },
              "description": "Array of post views. May include notFound/blocked entries for missing posts."
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "uris"
        ],
        "properties": {
          "uris": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "at-uri"
            },
            "maxLength": 25,
            "minLength": 1,
            "description": "List of post AT-URIs to fetch (max 25)"
          }
        }
      },
      "description": "Get posts by AT-URI. Supports batch fetching for feed hydration. Returns posts in same order as input URIs. Auth optional: when authenticated, viewer state is populated."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
