# app.zeens.getCollections

> 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.getCollections)
- [Documentation](https://lexicon.garden/lexicon/did:plc:pwpuqwge6g7xrjmfbw73uycw/app.zeens.getCollections/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:pwpuqwge6g7xrjmfbw73uycw/app.zeens.getCollections/examples)

## Definitions

### `app.zeens.getCollections`

**Type**: `query`

List collections owned by an actor. Private collections are only returned when viewer == actor.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `actor` | `string` (did) | Yes | DID of the collection owner. |
| `cursor` | `string` | No |  |
| `limit` | `integer` | No |  |
| `viewer` | `string` (did) | No | DID of the requester. When equal to actor, private collections are included. |

#### Output

**Encoding**: `application/json`

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "List collections owned by an actor. Private collections are only returned when viewer == actor.",
      "output": {
        "encoding": "application/json"
      },
      "parameters": {
        "properties": {
          "actor": {
            "description": "DID of the collection owner.",
            "format": "did",
            "type": "string"
          },
          "cursor": {
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "viewer": {
            "description": "DID of the requester. When equal to actor, private collections are included.",
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "actor"
        ],
        "type": "params"
      },
      "target_collection": "app.zeens.collection",
      "type": "query"
    }
  },
  "id": "app.zeens.getCollections",
  "lexicon": 1
}
```
