# pub.chive.sync.verify

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

## Definitions

### `pub.chive.sync.verify`

**Type**: `query`

Verify the sync state of a record

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | Yes | AT-URI of the record to verify |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | Yes | AT-URI of the record |
| `inSync` | `boolean` | Yes | Whether the indexed record is in sync with the PDS |
| `indexed` | `boolean` | Yes | Whether the record is indexed |
| `indexedAt` | `string` (datetime) | No | When the record was indexed |
| `staleDays` | `integer` | No | Number of days since last sync if stale |
| `lastSyncedAt` | `string` (datetime) | No | When the record was last synced |

#### Errors

- **InvalidRequest**

## Raw Schema

```json
{
  "id": "pub.chive.sync.verify",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "InvalidRequest"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "uri",
            "indexed",
            "inSync"
          ],
          "properties": {
            "uri": {
              "type": "string",
              "format": "at-uri",
              "description": "AT-URI of the record"
            },
            "inSync": {
              "type": "boolean",
              "description": "Whether the indexed record is in sync with the PDS"
            },
            "indexed": {
              "type": "boolean",
              "description": "Whether the record is indexed"
            },
            "indexedAt": {
              "type": "string",
              "format": "datetime",
              "description": "When the record was indexed"
            },
            "staleDays": {
              "type": "integer",
              "description": "Number of days since last sync if stale"
            },
            "lastSyncedAt": {
              "type": "string",
              "format": "datetime",
              "description": "When the record was last synced"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "uri"
        ],
        "properties": {
          "uri": {
            "type": "string",
            "format": "at-uri",
            "description": "AT-URI of the record to verify"
          }
        }
      },
      "description": "Verify the sync state of a record"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
