# pub.chive.annotation.listByAuthor

> Published by [chive.pub](https://lexicon.garden/identity/did:plc:7natp5xae72bddaqlkef2t4e)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.annotation.listByAuthor)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.annotation.listByAuthor/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.annotation.listByAuthor/examples)

## Definitions

### `pub.chive.annotation.listByAuthor`

**Type**: `query`

List annotations created by a specific author

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `limit` | `integer` | No | Maximum number of results to return |
| `cursor` | `string` | No | Pagination cursor for next page |
| `motivation` | `string` | No | Filter by annotation motivation |
| `annotatorDid` | `string` (did) | Yes | DID of the annotator |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `total` | `integer` | No | Total number of annotations by this author |
| `cursor` | `string` | No | Cursor for next page |
| `hasMore` | `boolean` | Yes | Whether more results are available |
| `annotations` | `array` | Yes | List of annotations by the author |

## Raw Schema

```json
{
  "id": "pub.chive.annotation.listByAuthor",
  "defs": {
    "main": {
      "type": "query",
      "errors": [],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "annotations",
            "hasMore"
          ],
          "properties": {
            "total": {
              "type": "integer",
              "description": "Total number of annotations by this author"
            },
            "cursor": {
              "type": "string",
              "description": "Cursor for next page"
            },
            "hasMore": {
              "type": "boolean",
              "description": "Whether more results are available"
            },
            "annotations": {
              "type": "array",
              "items": {
                "ref": "pub.chive.annotation.listForEprint#annotationView",
                "type": "ref"
              },
              "description": "List of annotations by the author"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "annotatorDid"
        ],
        "properties": {
          "limit": {
            "type": "integer",
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "description": "Maximum number of results to return"
          },
          "cursor": {
            "type": "string",
            "description": "Pagination cursor for next page"
          },
          "motivation": {
            "type": "string",
            "description": "Filter by annotation motivation",
            "knownValues": [
              "commenting",
              "questioning",
              "highlighting",
              "replying"
            ]
          },
          "annotatorDid": {
            "type": "string",
            "format": "did",
            "description": "DID of the annotator"
          }
        }
      },
      "description": "List annotations created by a specific author"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
