# wiki.lichen.listWikis

> Published by [lichen.wiki](https://lexicon.garden/identity/did:plc:xfs42pjf3n7imvgrdrp7xvez)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:xfs42pjf3n7imvgrdrp7xvez/wiki.lichen.listWikis)
- [Documentation](https://lexicon.garden/lexicon/did:plc:xfs42pjf3n7imvgrdrp7xvez/wiki.lichen.listWikis/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:xfs42pjf3n7imvgrdrp7xvez/wiki.lichen.listWikis/examples)

## Definitions

### `wiki.lichen.listWikis`

**Type**: `query`

List the public wikis a DID owns or belongs to. Returns them all in one response.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `wikis` | `array` | Yes |  |

### `wiki.lichen.listWikis#wikiView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `description` | `string` | Yes |  |
| `did` | `string` (did) | Yes | The wiki's owner. This can differ from the DID you asked about. |
| `language` | `string` | Yes |  |
| `name` | `string` | Yes |  |
| `noteCount` | `integer` | Yes | Notes wiki.lichen.listNotes will return for this wiki. |
| `role` | `string` | Yes | What the DID you asked about holds on this wiki. |
| `slug` | `string` | Yes |  |
| `updatedAt` | `string` (datetime) | Yes | When this appview last saw the wiki or a note in it change. Observed locally, so appviews may legitimately disagree. |
| `uri` | `string` (at-uri) | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "List the public wikis a DID owns or belongs to. Returns them all in one response.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "wikis": {
              "items": {
                "ref": "#wikiView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "wikis"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "did": {
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "did"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "wikiView": {
      "properties": {
        "description": {
          "type": "string"
        },
        "did": {
          "description": "The wiki's owner. This can differ from the DID you asked about.",
          "format": "did",
          "type": "string"
        },
        "language": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "noteCount": {
          "description": "Notes wiki.lichen.listNotes will return for this wiki.",
          "type": "integer"
        },
        "role": {
          "description": "What the DID you asked about holds on this wiki.",
          "knownValues": [
            "owner",
            "admin",
            "contributor",
            "viewer"
          ],
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "updatedAt": {
          "description": "When this appview last saw the wiki or a note in it change. Observed locally, so appviews may legitimately disagree.",
          "format": "datetime",
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "did",
        "slug",
        "name",
        "description",
        "language",
        "noteCount",
        "role",
        "updatedAt"
      ],
      "type": "object"
    }
  },
  "id": "wiki.lichen.listWikis",
  "lexicon": 1
}
```
