# buzz.bookhive.listPersonalShelves

> List the authenticated user's personal shelves with per-shelf book counts, plus library-wide totals and storage usage. This is the root call for a catalog client: it carries everything the OPDS root navigation feed renders, in one request. Unpaginated — `personal_shelf` is unique on (userDid, name) and these lists are small.

- Kind: query
- Authority: bookhive.buzz
- Lexicon: 1
- Published by [bookhive.buzz](https://lexicon.garden/identity/did:plc:enu2j5xjlqsjaylv3du4myh4), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:enu2j5xjlqsjaylv3du4myh4/buzz.bookhive.listPersonalShelves)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:enu2j5xjlqsjaylv3du4myh4/buzz.bookhive.listPersonalShelves/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:enu2j5xjlqsjaylv3du4myh4/buzz.bookhive.listPersonalShelves/analytics)

## Query (`buzz.bookhive.listPersonalShelves`)

Type: query · GET

### Output (application/json)

- `shelves` (array, required)
  - `items` (ref)
    - Reference: `buzz.bookhive.createPersonalShelf#personalShelfView`
- `storage` (ref): This user's storage usage against their quota
  - Reference: `buzz.bookhive.getPersonalLibrary#storageView`
- `totalBooks` (integer, required): Books in the library across all shelves and unshelved
  - Constraints: minimum: 0

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "List the authenticated user's personal shelves with per-shelf book counts, plus library-wide totals and storage usage. This is the root call for a catalog client: it carries everything the OPDS root navigation feed renders, in one request. Unpaginated — `personal_shelf` is unique on (userDid, name) and these lists are small.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "shelves": {
              "items": {
                "ref": "buzz.bookhive.createPersonalShelf#personalShelfView",
                "type": "ref"
              },
              "type": "array"
            },
            "storage": {
              "description": "This user's storage usage against their quota",
              "ref": "buzz.bookhive.getPersonalLibrary#storageView",
              "type": "ref"
            },
            "totalBooks": {
              "description": "Books in the library across all shelves and unshelved",
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "shelves",
            "totalBooks"
          ],
          "type": "object"
        }
      },
      "type": "query"
    }
  },
  "id": "buzz.bookhive.listPersonalShelves",
  "lexicon": 1
}
```
