# pub.chive.claiming.getSubmissionData

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

## Definitions

### `pub.chive.claiming.getSubmissionData`

**Type**: `query`

Get prefilled form data for claiming a paper from an external source

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `source` | `string` | Yes | External source (e.g., arxiv, semanticscholar) |
| `externalId` | `string` | Yes | Source-specific identifier |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `doi` | `string` | No | DOI if available |
| `title` | `string` | Yes | Prefilled title |
| `pdfUrl` | `string` (uri) | No | PDF URL if available |
| `source` | `string` | Yes | Source system |
| `authors` | `array` | Yes | Prefilled authors |
| `abstract` | `string` | Yes | Prefilled abstract |
| `keywords` | `array` | Yes | Prefilled keywords/categories |
| `externalId` | `string` | Yes | Source-specific external ID |
| `externalIds` | `ref` → `#externalIds` | No |  |
| `externalUrl` | `string` (uri) | Yes | External URL to the paper |
| `publicationDate` | `string` (datetime) | No | Publication date |
| `existingChivePaper` | `ref` → `#existingChivePaper` | No |  |

#### Errors

- **AuthenticationRequired**
- **NotFound**

### `pub.chive.claiming.getSubmissionData#externalIds`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `doi` | `string` | No | DOI |
| `arxivId` | `string` | No | arXiv identifier |

### `pub.chive.claiming.getSubmissionData#existingAuthor`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | No | Author DID if claimed |
| `name` | `string` | Yes | Author name |

### `pub.chive.claiming.getSubmissionData#submissionAuthor`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes | Author name |
| `email` | `string` | No | Email address |
| `orcid` | `string` | No | ORCID identifier |
| `order` | `integer` | Yes | Author order (1-indexed) |
| `affiliation` | `string` | No | Institution affiliation |

### `pub.chive.claiming.getSubmissionData#existingChivePaper`

**Type**: `object`

Existing Chive paper if this is a duplicate

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | Yes | AT-URI of the existing paper |
| `title` | `string` | Yes | Paper title |
| `authors` | `array` | Yes | Author list |
| `createdAt` | `string` (datetime) | Yes | When the paper was indexed |

## Raw Schema

```json
{
  "id": "pub.chive.claiming.getSubmissionData",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "AuthenticationRequired"
        },
        {
          "name": "NotFound"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "title",
            "abstract",
            "authors",
            "keywords",
            "source",
            "externalId",
            "externalUrl"
          ],
          "properties": {
            "doi": {
              "type": "string",
              "description": "DOI if available"
            },
            "title": {
              "type": "string",
              "description": "Prefilled title"
            },
            "pdfUrl": {
              "type": "string",
              "format": "uri",
              "description": "PDF URL if available"
            },
            "source": {
              "type": "string",
              "description": "Source system"
            },
            "authors": {
              "type": "array",
              "items": {
                "ref": "#submissionAuthor",
                "type": "ref"
              },
              "description": "Prefilled authors"
            },
            "abstract": {
              "type": "string",
              "description": "Prefilled abstract"
            },
            "keywords": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Prefilled keywords/categories"
            },
            "externalId": {
              "type": "string",
              "description": "Source-specific external ID"
            },
            "externalIds": {
              "ref": "#externalIds",
              "type": "ref"
            },
            "externalUrl": {
              "type": "string",
              "format": "uri",
              "description": "External URL to the paper"
            },
            "publicationDate": {
              "type": "string",
              "format": "datetime",
              "description": "Publication date"
            },
            "existingChivePaper": {
              "ref": "#existingChivePaper",
              "type": "ref"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "source",
          "externalId"
        ],
        "properties": {
          "source": {
            "type": "string",
            "maxLength": 50,
            "minLength": 2,
            "description": "External source (e.g., arxiv, semanticscholar)"
          },
          "externalId": {
            "type": "string",
            "description": "Source-specific identifier"
          }
        }
      },
      "description": "Get prefilled form data for claiming a paper from an external source"
    },
    "externalIds": {
      "type": "object",
      "properties": {
        "doi": {
          "type": "string",
          "description": "DOI"
        },
        "arxivId": {
          "type": "string",
          "description": "arXiv identifier"
        }
      }
    },
    "existingAuthor": {
      "type": "object",
      "required": [
        "name"
      ],
      "properties": {
        "did": {
          "type": "string",
          "format": "did",
          "description": "Author DID if claimed"
        },
        "name": {
          "type": "string",
          "description": "Author name"
        }
      }
    },
    "submissionAuthor": {
      "type": "object",
      "required": [
        "order",
        "name"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "Author name"
        },
        "email": {
          "type": "string",
          "description": "Email address"
        },
        "orcid": {
          "type": "string",
          "description": "ORCID identifier"
        },
        "order": {
          "type": "integer",
          "minimum": 1,
          "description": "Author order (1-indexed)"
        },
        "affiliation": {
          "type": "string",
          "description": "Institution affiliation"
        }
      }
    },
    "existingChivePaper": {
      "type": "object",
      "required": [
        "uri",
        "title",
        "authors",
        "createdAt"
      ],
      "properties": {
        "uri": {
          "type": "string",
          "format": "at-uri",
          "description": "AT-URI of the existing paper"
        },
        "title": {
          "type": "string",
          "description": "Paper title"
        },
        "authors": {
          "type": "array",
          "items": {
            "ref": "#existingAuthor",
            "type": "ref"
          },
          "description": "Author list"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime",
          "description": "When the paper was indexed"
        }
      },
      "description": "Existing Chive paper if this is a duplicate"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
