# pub.chive.import.exists

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

## Definitions

### `pub.chive.import.exists`

**Type**: `query`

Check if an eprint has been imported from an external source

#### Parameters

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

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `exists` | `boolean` | Yes | Whether the eprint has been imported |

## Raw Schema

```json
{
  "id": "pub.chive.import.exists",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "exists"
          ],
          "properties": {
            "exists": {
              "type": "boolean",
              "description": "Whether the eprint has been imported"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "source",
          "externalId"
        ],
        "properties": {
          "source": {
            "type": "string",
            "maxLength": 50,
            "minLength": 2,
            "description": "External source identifier (e.g., arxiv, biorxiv, semanticscholar)"
          },
          "externalId": {
            "type": "string",
            "minLength": 1,
            "description": "Source-specific identifier for the eprint"
          }
        }
      },
      "description": "Check if an eprint has been imported from an external source"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
