# pub.chive.claiming.getPendingClaims

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

## Definitions

### `pub.chive.claiming.getPendingClaims`

**Type**: `query`

Get pending claims for admin review. Admin only.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `limit` | `integer` | No | Maximum number of claims to return |
| `cursor` | `string` | No | Pagination cursor |
| `maxScore` | `integer` | No | Maximum match score filter (0-100) |
| `minScore` | `integer` | No | Minimum match score filter (0-100) |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `claims` | `array` | Yes |  |
| `cursor` | `string` | No | Pagination cursor for next page |
| `hasMore` | `boolean` | Yes | Whether more results are available |

#### Errors

- **AuthenticationRequired**
- **Forbidden**

### `pub.chive.claiming.getPendingClaims#claimRequest`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `id` | `integer` | Yes | Claim request ID |
| `status` | `string` | Yes | Claim status |
| `importId` | `integer` | Yes | ID of the imported eprint |
| `createdAt` | `string` (datetime) | Yes | When the claim was created |
| `expiresAt` | `string` (datetime) | No | When the claim expires |
| `reviewedAt` | `string` (datetime) | No | When the claim was reviewed |
| `reviewedBy` | `string` (did) | No | DID of the admin who reviewed |
| `claimantDid` | `string` (did) | Yes | DID of the claimant |
| `canonicalUri` | `string` (at-uri) | No | AT-URI of the canonical record in user PDS |
| `rejectionReason` | `string` | No | Reason for rejection if rejected |

## Raw Schema

```json
{
  "id": "pub.chive.claiming.getPendingClaims",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "AuthenticationRequired"
        },
        {
          "name": "Forbidden"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "claims",
            "hasMore"
          ],
          "properties": {
            "claims": {
              "type": "array",
              "items": {
                "ref": "#claimRequest",
                "type": "ref"
              }
            },
            "cursor": {
              "type": "string",
              "description": "Pagination cursor for next page"
            },
            "hasMore": {
              "type": "boolean",
              "description": "Whether more results are available"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {
          "limit": {
            "type": "integer",
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "description": "Maximum number of claims to return"
          },
          "cursor": {
            "type": "string",
            "description": "Pagination cursor"
          },
          "maxScore": {
            "type": "integer",
            "maximum": 100,
            "minimum": 0,
            "description": "Maximum match score filter (0-100)"
          },
          "minScore": {
            "type": "integer",
            "maximum": 100,
            "minimum": 0,
            "description": "Minimum match score filter (0-100)"
          }
        }
      },
      "description": "Get pending claims for admin review. Admin only."
    },
    "claimRequest": {
      "type": "object",
      "required": [
        "id",
        "importId",
        "claimantDid",
        "status",
        "createdAt"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "description": "Claim request ID"
        },
        "status": {
          "type": "string",
          "description": "Claim status",
          "knownValues": [
            "pending",
            "approved",
            "rejected",
            "expired"
          ]
        },
        "importId": {
          "type": "integer",
          "description": "ID of the imported eprint"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime",
          "description": "When the claim was created"
        },
        "expiresAt": {
          "type": "string",
          "format": "datetime",
          "description": "When the claim expires"
        },
        "reviewedAt": {
          "type": "string",
          "format": "datetime",
          "description": "When the claim was reviewed"
        },
        "reviewedBy": {
          "type": "string",
          "format": "did",
          "description": "DID of the admin who reviewed"
        },
        "claimantDid": {
          "type": "string",
          "format": "did",
          "description": "DID of the claimant"
        },
        "canonicalUri": {
          "type": "string",
          "format": "at-uri",
          "description": "AT-URI of the canonical record in user PDS"
        },
        "rejectionReason": {
          "type": "string",
          "description": "Reason for rejection if rejected"
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
