# pub.chive.claiming.getClaim

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

## Definitions

### `pub.chive.claiming.getClaim`

**Type**: `query`

Get a claim request by ID. Users can only view their own claims unless they are admins.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `claimId` | `integer` | Yes | ID of the claim request |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `claim` | `ref` → `#claimRequest` | No | The claim request, or null if not found or not authorized |

#### Errors

- **AuthenticationRequired**: Authentication is required to get claims

### `pub.chive.claiming.getClaim#claimRequest`

**Type**: `object`

A claim request for an imported eprint

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

## Raw Schema

```json
{
  "id": "pub.chive.claiming.getClaim",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "AuthenticationRequired",
          "description": "Authentication is required to get claims"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "properties": {
            "claim": {
              "ref": "#claimRequest",
              "type": "ref",
              "description": "The claim request, or null if not found or not authorized"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "claimId"
        ],
        "properties": {
          "claimId": {
            "type": "integer",
            "minimum": 1,
            "description": "ID of the claim request"
          }
        }
      },
      "description": "Get a claim request by ID. Users can only view their own claims unless they are admins."
    },
    "claimRequest": {
      "type": "object",
      "required": [
        "id",
        "importId",
        "claimantDid",
        "status",
        "createdAt"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "description": "Unique claim request ID"
        },
        "status": {
          "type": "string",
          "description": "Current status of the claim",
          "knownValues": [
            "pending",
            "approved",
            "rejected",
            "expired"
          ]
        },
        "importId": {
          "type": "integer",
          "description": "ID of the imported eprint being claimed"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime",
          "description": "When the claim was created"
        },
        "expiresAt": {
          "type": "string",
          "format": "datetime",
          "description": "When the claim expires if not completed"
        },
        "reviewedAt": {
          "type": "string",
          "format": "datetime",
          "description": "When the claim was reviewed"
        },
        "reviewedBy": {
          "type": "string",
          "format": "did",
          "description": "DID of the admin who reviewed the claim"
        },
        "claimantDid": {
          "type": "string",
          "format": "did",
          "description": "DID of the user making the claim"
        },
        "canonicalUri": {
          "type": "string",
          "format": "at-uri",
          "description": "AT-URI of the canonical record once created"
        },
        "rejectionReason": {
          "type": "string",
          "description": "Reason for rejection if rejected"
        }
      },
      "description": "A claim request for an imported eprint"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
