# dev.knotless.listThemes

> The dev.knotless.theme records the appview has indexed, the latest made first: everyone's, or one account's; or by the start of their name. An account taken down is left out. No authentication; responses are not personalized.

- Kind: query
- Authority: knotless.dev
- Lexicon: 1
- Published by [lexicons.knotless.dev](https://lexicon.garden/identity/did:plc:yqsg7znbbhfmj3a2nrpnaerk), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.listThemes)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.listThemes/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.listThemes/analytics)

## Query (`dev.knotless.listThemes`)

Type: query · GET

### Parameters (query string)

- `actor` (string · at-identifier): Only this account's themes, by DID or handle.
- `cursor` (string): Where the page before ended.
  - Constraints: maxLength: 512
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 100, default: 50
- `q` (string): Only themes whose name starts with this, in any case: those found by name, in its order, with no cursor.
  - Constraints: maxLength: 64
- `uris` (array): Only these themes, by their dev.knotless.theme URIs, as an account's added themes name them: those the appview has, in the order named, with no cursor; the other parameters are passed over.
  - Constraints: maxLength: 50
  - `items` (string · at-uri)

### Output (application/json)

- `cursor` (string): Absent on the last page.
- `themes` (array, required)
  - `items` (ref)
    - Reference: `dev.knotless.defs#themeView`

### Errors

- `ProfileNotFound`: No account by that DID or handle.
- `NotFound`: This appview keeps no index, so it keeps no themes.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The dev.knotless.theme records the appview has indexed, the latest made first: everyone's, or one account's; or by the start of their name. An account taken down is left out. No authentication; responses are not personalized.",
      "errors": [
        {
          "description": "No account by that DID or handle.",
          "name": "ProfileNotFound"
        },
        {
          "description": "This appview keeps no index, so it keeps no themes.",
          "name": "NotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "description": "Absent on the last page.",
              "type": "string"
            },
            "themes": {
              "items": {
                "ref": "dev.knotless.defs#themeView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "themes"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "actor": {
            "description": "Only this account's themes, by DID or handle.",
            "format": "at-identifier",
            "type": "string"
          },
          "cursor": {
            "description": "Where the page before ended.",
            "maxLength": 512,
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "q": {
            "description": "Only themes whose name starts with this, in any case: those found by name, in its order, with no cursor.",
            "maxLength": 64,
            "type": "string"
          },
          "uris": {
            "description": "Only these themes, by their dev.knotless.theme URIs, as an account's added themes name them: those the appview has, in the order named, with no cursor; the other parameters are passed over.",
            "items": {
              "format": "at-uri",
              "type": "string"
            },
            "maxLength": 50,
            "type": "array"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "Themes accounts made for knotless's pages.",
  "id": "dev.knotless.listThemes",
  "lexicon": 1
}
```
