# pub.chive.admin.listEndorsements

> 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.admin.listEndorsements)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.admin.listEndorsements/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.admin.listEndorsements/examples)

## Definitions

### `pub.chive.admin.listEndorsements`

**Type**: `query`

List indexed endorsements with pagination

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `limit` | `integer` | No | Maximum number of results |
| `cursor` | `string` | No | Pagination cursor |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `items` | `array` | No | Endorsement records |
| `total` | `integer` | Yes | Total endorsements |

#### Errors

- **AuthenticationRequired**
- **AdminRequired**

### `pub.chive.admin.listEndorsements#endorsementSummary`

**Type**: `object`

Summary of an indexed endorsement

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | Yes | Endorsement AT URI |
| `authorDid` | `string` (did) | Yes | Endorser DID |
| `createdAt` | `string` (datetime) | Yes | When the endorsement was created |
| `eprintUri` | `string` (at-uri) | Yes | Endorsed eprint AT URI |
| `authorHandle` | `string` | No | Endorser handle |

## Raw Schema

```json
{
  "id": "pub.chive.admin.listEndorsements",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "AuthenticationRequired"
        },
        {
          "name": "AdminRequired"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "total"
          ],
          "properties": {
            "items": {
              "type": "array",
              "items": {
                "ref": "#endorsementSummary",
                "type": "ref"
              },
              "description": "Endorsement records"
            },
            "total": {
              "type": "integer",
              "description": "Total endorsements"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {
          "limit": {
            "type": "integer",
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "description": "Maximum number of results"
          },
          "cursor": {
            "type": "string",
            "description": "Pagination cursor"
          }
        }
      },
      "description": "List indexed endorsements with pagination"
    },
    "endorsementSummary": {
      "type": "object",
      "required": [
        "uri",
        "eprintUri",
        "authorDid",
        "createdAt"
      ],
      "properties": {
        "uri": {
          "type": "string",
          "format": "at-uri",
          "description": "Endorsement AT URI"
        },
        "authorDid": {
          "type": "string",
          "format": "did",
          "description": "Endorser DID"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime",
          "description": "When the endorsement was created"
        },
        "eprintUri": {
          "type": "string",
          "format": "at-uri",
          "description": "Endorsed eprint AT URI"
        },
        "authorHandle": {
          "type": "string",
          "description": "Endorser handle"
        }
      },
      "description": "Summary of an indexed endorsement"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
