# town.delve.graph.getLists

> Published by [delve.town](https://lexicon.garden/identity/did:plc:qzqct2rrq4u2gmy5g3mjxske)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.graph.getLists)
- [Documentation](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.graph.getLists/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.graph.getLists/examples)

## Definitions

### `town.delve.graph.getLists`

**Type**: `query`

Enumerates the lists created by a specified account (actor).

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `actor` | `string` (at-identifier) | Yes | The account (actor) to enumerate lists from. |
| `cursor` | `string` | No |  |
| `limit` | `integer` | No |  |
| `purposes` | `array` | No | Optional filter by list purpose. If not specified, all supported types are returned. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cursor` | `string` | No |  |
| `lists` | `array` | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Enumerates the lists created by a specified account (actor).",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "type": "string"
            },
            "lists": {
              "items": {
                "ref": "town.delve.graph.defs#listView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "lists"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "actor": {
            "description": "The account (actor) to enumerate lists from.",
            "format": "at-identifier",
            "type": "string"
          },
          "cursor": {
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "purposes": {
            "description": "Optional filter by list purpose. If not specified, all supported types are returned.",
            "items": {
              "knownValues": [
                "modlist",
                "curatelist"
              ],
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "actor"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "town.delve.graph.getLists",
  "lexicon": 1
}
```
