# social.grain.unspecced.listPrivateGalleries

> The viewer's own private galleries, read from the spaces their PDS holds. Authors only: a space tells its members nothing about itself, so an account added to someone else's gallery cannot enumerate it and needs the link.

- Kind: query
- Authority: unspecced.grain.social
- Lexicon: 1
- Published by [grain.social](https://lexicon.garden/identity/did:plc:e7rftrdyz5e2rw4y6ocszew2), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.unspecced.listPrivateGalleries)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.unspecced.listPrivateGalleries/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.unspecced.listPrivateGalleries/analytics)

## Query (`social.grain.unspecced.listPrivateGalleries`)

Type: query · GET

### Parameters (query string)

- `limit` (integer)
  - Constraints: minimum: 1, maximum: 100, default: 50

### Output (application/json)

- `galleries` (array, required)
  - `items` (ref)
    - Reference: `#privateGalleryRef`

## #privateGalleryRef (`social.grain.unspecced.listPrivateGalleries#privateGalleryRef`)

Type: object

### Properties

- `createdAt` (string · datetime)
- `skey` (string, required): Also the gallery record's rkey.
- `space` (string, required): Space URI the gallery lives in.
- `title` (string)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The viewer's own private galleries, read from the spaces their PDS holds. Authors only: a space tells its members nothing about itself, so an account added to someone else's gallery cannot enumerate it and needs the link.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "galleries": {
              "items": {
                "ref": "#privateGalleryRef",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "galleries"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          }
        },
        "type": "params"
      },
      "type": "query"
    },
    "privateGalleryRef": {
      "properties": {
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "skey": {
          "description": "Also the gallery record's rkey.",
          "type": "string"
        },
        "space": {
          "description": "Space URI the gallery lives in.",
          "type": "string"
        },
        "title": {
          "type": "string"
        }
      },
      "required": [
        "space",
        "skey"
      ],
      "type": "object"
    }
  },
  "id": "social.grain.unspecced.listPrivateGalleries",
  "lexicon": 1
}
```
