# zone.stratos.repo.hydrateRecord

> Published by [lexicon.northsky.app](https://lexicon.garden/identity/did:plc:6uxgo3ypovauub7nblwylqyv)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:6uxgo3ypovauub7nblwylqyv/zone.stratos.repo.hydrateRecord)
- [Documentation](https://lexicon.garden/lexicon/did:plc:6uxgo3ypovauub7nblwylqyv/zone.stratos.repo.hydrateRecord/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:6uxgo3ypovauub7nblwylqyv/zone.stratos.repo.hydrateRecord/examples)

## Definitions

### `zone.stratos.repo.hydrateRecord`

**Type**: `query`

Hydrate a single record by URI. Returns the record if viewer has boundary access.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` (cid) | No | Optional CID to verify record version |
| `uri` | `string` (at-uri) | Yes | The AT-URI of the record to hydrate |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` (cid) | Yes |  |
| `uri` | `string` (at-uri) | Yes |  |
| `value` | `unknown` | Yes |  |

#### Errors

- **RecordNotFound**: The requested record does not exist
- **RecordBlocked**: Access to the record is blocked due to boundary restrictions

## Raw Schema

```json
{
  "id": "zone.stratos.repo.hydrateRecord",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "RecordNotFound",
          "description": "The requested record does not exist"
        },
        {
          "name": "RecordBlocked",
          "description": "Access to the record is blocked due to boundary restrictions"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "uri",
            "cid",
            "value"
          ],
          "properties": {
            "cid": {
              "type": "string",
              "format": "cid"
            },
            "uri": {
              "type": "string",
              "format": "at-uri"
            },
            "value": {
              "type": "unknown"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "uri"
        ],
        "properties": {
          "cid": {
            "type": "string",
            "format": "cid",
            "description": "Optional CID to verify record version"
          },
          "uri": {
            "type": "string",
            "format": "at-uri",
            "description": "The AT-URI of the record to hydrate"
          }
        }
      },
      "description": "Hydrate a single record by URI. Returns the record if viewer has boundary access."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
