# zone.stratos.repo.hydrateRecords

> 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.hydrateRecords)
- [Documentation](https://lexicon.garden/lexicon/did:plc:6uxgo3ypovauub7nblwylqyv/zone.stratos.repo.hydrateRecords/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:6uxgo3ypovauub7nblwylqyv/zone.stratos.repo.hydrateRecords/examples)

## Definitions

### `zone.stratos.repo.hydrateRecords`

**Type**: `procedure`

Hydrate multiple records by URI. Returns records filtered by viewer's boundary access.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uris` | `array` | Yes | Array of AT-URIs to hydrate (max 100) |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `blocked` | `array` | Yes | URIs blocked due to boundary restrictions |
| `records` | `array` | Yes | Successfully hydrated records |
| `notFound` | `array` | Yes | URIs that were not found |

### `zone.stratos.repo.hydrateRecords#recordView`

**Type**: `object`

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

## Raw Schema

```json
{
  "id": "zone.stratos.repo.hydrateRecords",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "uris"
          ],
          "properties": {
            "uris": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "at-uri"
              },
              "maxLength": 100,
              "description": "Array of AT-URIs to hydrate (max 100)"
            }
          }
        },
        "encoding": "application/json"
      },
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "records",
            "notFound",
            "blocked"
          ],
          "properties": {
            "blocked": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "at-uri"
              },
              "description": "URIs blocked due to boundary restrictions"
            },
            "records": {
              "type": "array",
              "items": {
                "ref": "#recordView",
                "type": "ref"
              },
              "description": "Successfully hydrated records"
            },
            "notFound": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "at-uri"
              },
              "description": "URIs that were not found"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Hydrate multiple records by URI. Returns records filtered by viewer's boundary access."
    },
    "recordView": {
      "type": "object",
      "required": [
        "uri",
        "cid",
        "value"
      ],
      "properties": {
        "cid": {
          "type": "string",
          "format": "cid"
        },
        "uri": {
          "type": "string",
          "format": "at-uri"
        },
        "value": {
          "type": "unknown"
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
