# ai.newnal.trustsquare.getRecordProof

> Published by [bezalel-newnal.bsky.social](https://lexicon.garden/identity/did:plc:75qhtany5zmo7d3i2ni5d7nf)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:75qhtany5zmo7d3i2ni5d7nf/ai.newnal.trustsquare.getRecordProof)
- [Documentation](https://lexicon.garden/lexicon/did:plc:75qhtany5zmo7d3i2ni5d7nf/ai.newnal.trustsquare.getRecordProof/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:75qhtany5zmo7d3i2ni5d7nf/ai.newnal.trustsquare.getRecordProof/examples)

## Definitions

### `ai.newnal.trustsquare.getRecordProof`

**Type**: `query`

Fetch and verify the repository proof for a record: DID document, commit signature, MST inclusion.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | Yes |  |
| `refresh` | `boolean` | No |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `proof` | `ref` → `ai.newnal.trustsquare.defs#proofView` | Yes |  |

## Raw Schema

```json
{
  "id": "ai.newnal.trustsquare.getRecordProof",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "proof"
          ],
          "properties": {
            "proof": {
              "ref": "ai.newnal.trustsquare.defs#proofView",
              "type": "ref"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "uri"
        ],
        "properties": {
          "uri": {
            "type": "string",
            "format": "at-uri"
          },
          "refresh": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "description": "Fetch and verify the repository proof for a record: DID document, commit signature, MST inclusion."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
