# app.zeens.getCollection

> Published by [zeens.app](https://lexicon.garden/identity/did:plc:pwpuqwge6g7xrjmfbw73uycw)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:pwpuqwge6g7xrjmfbw73uycw/app.zeens.getCollection)
- [Documentation](https://lexicon.garden/lexicon/did:plc:pwpuqwge6g7xrjmfbw73uycw/app.zeens.getCollection/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:pwpuqwge6g7xrjmfbw73uycw/app.zeens.getCollection/examples)

## Definitions

### `app.zeens.getCollection`

**Type**: `query`

Fetch a single collection record + a recent-items preview for the cover. Returns 404 if visibility=private and viewer != owner.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | Yes | AT-URI of the app.zeens.collection record. |
| `viewer` | `string` (did) | No | DID of the requester. |

#### Output

**Encoding**: `application/json`

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Fetch a single collection record + a recent-items preview for the cover. Returns 404 if visibility=private and viewer != owner.",
      "output": {
        "encoding": "application/json"
      },
      "parameters": {
        "properties": {
          "uri": {
            "description": "AT-URI of the app.zeens.collection record.",
            "format": "at-uri",
            "type": "string"
          },
          "viewer": {
            "description": "DID of the requester.",
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "uri"
        ],
        "type": "params"
      },
      "target_collection": "app.zeens.collection",
      "type": "query"
    }
  },
  "id": "app.zeens.getCollection",
  "lexicon": 1
}
```
