# org.cairnsproto.draft.getRecordProof

> A commit proof of a project, policy, procedure or check record at one version, kept from when the indexer first saw that version: a CAR whose root is the signed commit, with the MST path to the record and the record. A PDS proves only a record's current version, and its author can rewrite or delete it, so this keeps every executable version open to inspection and lets a snapshot pinning a version the repo has since replaced, such as one still routed during an activation delay, be bundled. The indexer keeps every proof it fetches for good. A verifier checks the commit's signature, so the proof needs no trust in the indexer.

- Kind: query
- Authority: draft.cairnsproto.org
- Lexicon: 1
- Published by [cairnsproto.org](https://lexicon.garden/identity/did:plc:np7ezqujtsry4bkogisaabul), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:np7ezqujtsry4bkogisaabul/org.cairnsproto.draft.getRecordProof)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:np7ezqujtsry4bkogisaabul/org.cairnsproto.draft.getRecordProof/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:np7ezqujtsry4bkogisaabul/org.cairnsproto.draft.getRecordProof/analytics)

## Query (`org.cairnsproto.draft.getRecordProof`)

Type: query · GET

### Parameters (query string)

- `cid` (string · cid, required)
- `uri` (string · at-uri, required)

### Output (application/vnd.ipld.car)


## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A commit proof of a project, policy, procedure or check record at one version, kept from when the indexer first saw that version: a CAR whose root is the signed commit, with the MST path to the record and the record. A PDS proves only a record's current version, and its author can rewrite or delete it, so this keeps every executable version open to inspection and lets a snapshot pinning a version the repo has since replaced, such as one still routed during an activation delay, be bundled. The indexer keeps every proof it fetches for good. A verifier checks the commit's signature, so the proof needs no trust in the indexer.",
      "output": {
        "encoding": "application/vnd.ipld.car"
      },
      "parameters": {
        "properties": {
          "cid": {
            "format": "cid",
            "type": "string"
          },
          "uri": {
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "uri",
          "cid"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "org.cairnsproto.draft.getRecordProof",
  "lexicon": 1
}
```
