# com.livtet.getShelf

> Get a hydrated view of a shelf record.

- Kind: query
- Authority: livtet.com
- Lexicon: 1
- Published by [biblio.livtet.com](https://lexicon.garden/identity/did:plc:e2x3ihw2ntxt7pcgzmtu3abi), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.getShelf)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.getShelf/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.getShelf/analytics)

## Query (`com.livtet.getShelf`)

Type: query · GET

### Parameters (query string)

- `uri` (string · at-uri, required): AT-URI of the shelf record.

### Output (application/json)

- `shelf` (ref, required)
  - Reference: `com.livtet.defs#shelfView`

### Errors

- `NotFound`: No shelf record exists at the given AT-URI.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "errors": [
        {
          "description": "No shelf record exists at the given AT-URI.",
          "name": "NotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "shelf": {
              "ref": "com.livtet.defs#shelfView",
              "type": "ref"
            }
          },
          "required": [
            "shelf"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "uri": {
            "description": "AT-URI of the shelf record.",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "uri"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "Get a hydrated view of a shelf record.",
  "id": "com.livtet.getShelf",
  "lexicon": 1
}
```
