# pub.chive.eprint.getSubmission

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

## Definitions

### `pub.chive.eprint.getSubmission`

**Type**: `query`

Retrieve an eprint submission by URI

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` (cid) | No | Specific version CID |
| `uri` | `string` (at-uri) | Yes | Eprint URI |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` (cid) | Yes |  |
| `uri` | `string` (at-uri) | Yes |  |
| `value` | `unknown` | Yes | The eprint submission record. Must contain $type field. |
| `pdsUrl` | `string` | Yes | Source PDS URL (transparency) |
| `indexedAt` | `string` (datetime) | Yes |  |

#### Errors

- **NotFound**
- **Stale**: Indexed data is stale, refresh in progress

## Raw Schema

```json
{
  "id": "pub.chive.eprint.getSubmission",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "NotFound"
        },
        {
          "name": "Stale",
          "description": "Indexed data is stale, refresh in progress"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "uri",
            "cid",
            "value",
            "indexedAt",
            "pdsUrl"
          ],
          "properties": {
            "cid": {
              "type": "string",
              "format": "cid"
            },
            "uri": {
              "type": "string",
              "format": "at-uri"
            },
            "value": {
              "type": "unknown",
              "description": "The eprint submission record. Must contain $type field."
            },
            "pdsUrl": {
              "type": "string",
              "description": "Source PDS URL (transparency)"
            },
            "indexedAt": {
              "type": "string",
              "format": "datetime"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "uri"
        ],
        "properties": {
          "cid": {
            "type": "string",
            "format": "cid",
            "description": "Specific version CID"
          },
          "uri": {
            "type": "string",
            "format": "at-uri",
            "description": "Eprint URI"
          }
        }
      },
      "description": "Retrieve an eprint submission by URI"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
