# pub.chive.claiming.getUserClaims

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

## Definitions

### `pub.chive.claiming.getUserClaims`

**Type**: `query`

Get claims for the authenticated user

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `limit` | `integer` | No | Maximum number of claims to return |
| `cursor` | `string` | No | Pagination cursor |
| `status` | `string` | No | Filter by claim status |

#### 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**

### `pub.chive.claiming.getUserClaims#paperDetails`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `doi` | `string` | No | DOI if assigned |
| `title` | `string` | Yes | Eprint title |
| `source` | `string` | Yes | Source system |
| `authors` | `array` | Yes | Author list |
| `externalId` | `string` | Yes | Source-specific identifier |
| `externalUrl` | `string` (uri) | Yes | URL to the eprint |
| `publicationDate` | `string` | No | Publication date |

### `pub.chive.claiming.getUserClaims#claimWithPaper`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `id` | `integer` | Yes | Claim request ID |
| `paper` | `ref` → `#paperDetails` | Yes |  |
| `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 |

### `pub.chive.claiming.getUserClaims#externalAuthor`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes | Author name |
| `email` | `string` | No | Email address |
| `orcid` | `string` | No | ORCID identifier |
| `affiliation` | `string` | No | Institution affiliation |

## Raw Schema

```json
{
  "id": "pub.chive.claiming.getUserClaims",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "AuthenticationRequired"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "claims",
            "hasMore"
          ],
          "properties": {
            "claims": {
              "type": "array",
              "items": {
                "ref": "#claimWithPaper",
                "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"
          },
          "status": {
            "type": "string",
            "description": "Filter by claim status",
            "knownValues": [
              "pending",
              "approved",
              "rejected",
              "expired"
            ]
          }
        }
      },
      "description": "Get claims for the authenticated user"
    },
    "paperDetails": {
      "type": "object",
      "required": [
        "source",
        "externalId",
        "externalUrl",
        "title",
        "authors"
      ],
      "properties": {
        "doi": {
          "type": "string",
          "description": "DOI if assigned"
        },
        "title": {
          "type": "string",
          "description": "Eprint title"
        },
        "source": {
          "type": "string",
          "description": "Source system"
        },
        "authors": {
          "type": "array",
          "items": {
            "ref": "#externalAuthor",
            "type": "ref"
          },
          "description": "Author list"
        },
        "externalId": {
          "type": "string",
          "description": "Source-specific identifier"
        },
        "externalUrl": {
          "type": "string",
          "format": "uri",
          "description": "URL to the eprint"
        },
        "publicationDate": {
          "type": "string",
          "description": "Publication date"
        }
      }
    },
    "claimWithPaper": {
      "type": "object",
      "required": [
        "id",
        "importId",
        "claimantDid",
        "status",
        "createdAt",
        "paper"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "description": "Claim request ID"
        },
        "paper": {
          "ref": "#paperDetails",
          "type": "ref"
        },
        "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"
        }
      }
    },
    "externalAuthor": {
      "type": "object",
      "required": [
        "name"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "Author name"
        },
        "email": {
          "type": "string",
          "description": "Email address"
        },
        "orcid": {
          "type": "string",
          "description": "ORCID identifier"
        },
        "affiliation": {
          "type": "string",
          "description": "Institution affiliation"
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
