> ## Documentation Index
> Fetch the complete documentation index at: https://infino.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Hydrate: automated ingestion

> Point Infino Cloud at a bucket of Parquet, ORC, JSON, CSV, Iceberg, Delta Lake or an Elasticsearch snapshot, and the platform loads it into a table, picks the text indexes and embeddings, and can keep the table in sync with its source.

Hydrate loads a dataset into an Infino Cloud table without you writing any ingestion
code. You name where the data is. The platform reads it there, works out the schema,
decides which columns get a full-text index and which get embedded, and writes the
table. No rows pass through your machine or through the API.

> [!NOTE]
>
> Hydrate is turned on per account. Contact [support@infino.ai](mailto:support@infino.ai)
> to turn it on.

## What it reads

**Sources**

* **Your own bucket**, read where it is. Nothing is copied or staged. Grant Infino's
  service identity read access on the prefix you want loaded: `s3:GetObject` and
  `s3:ListBucket` on S3, `roles/storage.objectViewer` on GCS. We give you the identity
  to grant. The platform only reads the bucket and never writes to it.
* **A prefix in the database's own storage**, for files you staged next to a database
  that lives in your own bucket (see [Bring Your Own Bucket](https://infino.ai/docs/cloud/bring-your-own-bucket.md)).

**Formats**

Parquet, ORC, newline-delimited JSON, CSV and other delimited text, Apache Iceberg,
Delta Lake, and Elasticsearch snapshot repositories. If you leave `format` out, files
are read as Parquet. Set `"format": "auto"` and hydrate detects the format from the
files themselves.

## What it builds

Each load ends in an ordinary table that you can search and query like any other.

* **Schema.** Taken from the files: from the Parquet or ORC footer, the Iceberg or Delta
  metadata, or a scan of the records for JSON and CSV. A JSON or CSV file that disagrees
  with the schema fails the load instead of being coerced.
* **Full-text indexes.** If you leave `fts` out, hydrate reads a sample and picks the text
  columns that get a BM25 index.
* **Embeddings.** If you leave `embed` out, hydrate picks the text to embed and adds a
  vector column for semantic and hybrid search. Set `"no_embed": true` to skip it.
* **Chunks.** `chunk` splits a long text column into one row per passage.

When the table is ready, Infino Cloud's [auto context layer](https://infino.ai/docs/cloud/context-layer.md)
builds its table card and join keys for agents, if your account has it turned on.

## Start a load

One `POST` names the table and the source. It returns straight away, and the load runs
on the platform.

```bash theme={null}
curl -sS -X POST https://api.platform.infino.ws/v1/hydrate/<database> \
  -H "authorization: Bearer $INFINO_API_KEY" \
  -H 'content-type: application/json' \
  -d '{
        "table": "logs",
        "source": { "kind": "bucket", "bucket": "<your-bucket>", "prefix": "exports/logs/" }
      }'
```

```json theme={null}
{ "job": "hydrate/<customer>/<database>/logs", "state": "pending" }
```

The key needs the write capability. To choose the roles yourself instead of letting
hydrate pick them, name them:

```json theme={null}
"fts":   [ { "column": "message" } ],
"embed": { "column": "embedding", "source": ["message"] }
```

`columns` limits which source columns are loaded.

## Follow, stop, and resume

```bash theme={null}
curl -sS "https://api.platform.infino.ws/v1/hydrate/<database>?table=logs" \
  -H "authorization: Bearer $INFINO_API_KEY"
```

The reply shows the job's state, how far it has got, and the schema it settled on. The
states are `pending`, `running`, `cancelling`, `stopped`, `succeeded`, `failed`, and
`synced` for a table loaded with `sync`.

* **Stop:** a `DELETE` to the same URL stops the job at its next commit.
* **Resume:** send the same request again with `"resume": true`. The job continues from
  its last checkpoint instead of starting over.
* **Failure:** by default, a job that fails for good drops the half-built table, so a
  partial table is never served. Set `"on_failure": "keep"` to keep what was already
  committed.

While a job is writing a table, other appends and updates to that table are refused
with `409`. The job is the table's only writer until it finishes.

## Keep a table in sync

Add `"sync": true` to keep the table matching the files in its source instead of
loading it once. Each sync pass compares the source with the files the table was loaded
from:

* it loads new files;
* it reloads files that changed;
* it removes the rows of files that are gone.

To run a pass now:

```bash theme={null}
curl -sS -X POST https://api.platform.infino.ws/v1/hydrate/<database>/logs/sync \
  -H "authorization: Bearer $INFINO_API_KEY"
```

A sync pass keeps the text indexes and embeddings the table was built with. A column
that only appears in later files is stored as a plain column. It is not indexed or
embedded until the table is loaded again.

## Next

* [Auto context layer](https://infino.ai/docs/cloud/context-layer.md): the table cards and join keys built for
  agents after a load.
* [Connect a coding agent](https://infino.ai/docs/cloud/connect-an-agent.md): query the loaded table from Claude
  Code, Cursor, or any MCP client.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.