# com.livtet.searchActors

> Find readers to mention: the accounts whose repos hold a book record (a Livtet review or shelving row, a Bookhive book, or a Popfeed review or shelf item), matched by handle prefix or display name. `handle` is present when the deployment knows the account's handle, which is what a mention shows.

- Kind: query
- Authority: livtet.com
- Lexicon: 1
- Published by [biblio.livtet.com](https://lexicon.garden/identity/did:plc:e2x3ihw2ntxt7pcgzmtu3abi), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.searchActors)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.searchActors/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.searchActors/analytics)

## Query (`com.livtet.searchActors`)

Type: query · GET

### Parameters (query string)

- `limit` (integer): How many accounts to answer. A picker asks for a handful, not a page.
  - Constraints: minimum: 1, maximum: 25, default: 8
- `q` (string, required): What the reader typed after `@`: part of a display name.
  - Constraints: maxLength: 50

### Output (application/json)

- `actors` (array, required)
  - `items` (ref)
    - Reference: `#actor`

## #actor (`com.livtet.searchActors#actor`)

Type: object

### Properties

- `did` (string · did, required): The account to mention. This is what a mention record stores.
- `displayName` (string): The name in the reader's own profile record, when the index has one. It is what the prefix matched.
  - Constraints: maxGraphemes: 64
- `handle` (string · handle): The handle the deployment registered for this account, when it knows one. A mention stores the DID and shows this text.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "actor": {
      "properties": {
        "did": {
          "description": "The account to mention. This is what a mention record stores.",
          "format": "did",
          "type": "string"
        },
        "displayName": {
          "description": "The name in the reader's own profile record, when the index has one. It is what the prefix matched.",
          "maxGraphemes": 64,
          "type": "string"
        },
        "handle": {
          "description": "The handle the deployment registered for this account, when it knows one. A mention stores the DID and shows this text.",
          "format": "handle",
          "type": "string"
        }
      },
      "required": [
        "did"
      ],
      "type": "object"
    },
    "main": {
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "actors": {
              "items": {
                "ref": "#actor",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "actors"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "limit": {
            "default": 8,
            "description": "How many accounts to answer. A picker asks for a handful, not a page.",
            "maximum": 25,
            "minimum": 1,
            "type": "integer"
          },
          "q": {
            "description": "What the reader typed after `@`: part of a display name.",
            "maxLength": 50,
            "type": "string"
          }
        },
        "required": [
          "q"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "Find readers to mention: the accounts whose repos hold a book record (a Livtet review or shelving row, a Bookhive book, or a Popfeed review or shelf item), matched by handle prefix or display name. `handle` is present when the deployment knows the account's handle, which is what a mention shows.",
  "id": "com.livtet.searchActors",
  "lexicon": 1
}
```
