> ## 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.

# Start a load

> Load files from a source into a table: the service reads the files where they are, derives a searchable schema, embeds the text and writes the rows. The request is answered once the checks that take a bounded time have passed; the load then runs on its own and is followed with `GET /v1/hydrate/{database}`.

One path, four answers, by two fields of the request. With a `table`: `202` and that table's load. With no `table`: `202` and a plan, which loads one table per folder found under the source. With `dry_run: true`: `200` and nothing written, for the one table or for every table found. A refusal has the same status and body either way.

A table that already exists but has no load on record is not refused here: with `if_exists: refuse` (the default) the load is accepted and then ends `failed`, saying the table exists. A `sync` load is instead taken over the table as it stands.

Preview: this route may change between releases.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/hydrate/{database}
openapi: 3.1.0
info:
  title: Infino API
  description: >-
    The Infino hosted data-plane API: per-database table operations — create,
    ingest, search, and SQL.
  version: 0.1.0
servers:
  - url: https://api.platform.infino.ws
    description: Infino Cloud
security:
  - api_key: []
tags:
  - name: Databases
    description: Create, list, and delete the databases in your account.
  - name: Tables
    description: Create, drop, and list tables, and describe a table's schema.
  - name: Rows
    description: Append, update, and delete rows.
  - name: Search
    description: BM25, vector, and hybrid search, token and exact match, count, and SQL.
  - name: Agent
    description: >-
      Preview routes for agents: table cards, join keys, line search, result
      checks, graph lookups, and the retrieval sub-agent. They need the agent
      APIs enabled on your account.
  - name: Hydrate
    description: >-
      Preview routes for loading a dataset: start a load of files from object
      storage into a table, follow it, cancel or clear it, and run a sync pass.
paths:
  /v1/hydrate/{database}:
    post:
      tags:
        - Hydrate
      summary: Start a load
      description: >-
        Load files from a source into a table: the service reads the files where
        they are, derives a searchable schema, embeds the text and writes the
        rows. The request is answered once the checks that take a bounded time
        have passed; the load then runs on its own and is followed with `GET
        /v1/hydrate/{database}`.


        One path, four answers, by two fields of the request. With a `table`:
        `202` and that table's load. With no `table`: `202` and a plan, which
        loads one table per folder found under the source. With `dry_run: true`:
        `200` and nothing written, for the one table or for every table found. A
        refusal has the same status and body either way.


        A table that already exists but has no load on record is not refused
        here: with `if_exists: refuse` (the default) the load is accepted and
        then ends `failed`, saying the table exists. A `sync` load is instead
        taken over the table as it stands.


        Preview: this route may change between releases.
      operationId: hydrate_start
      parameters:
        - name: database
          in: path
          description: The database to load into.
          required: true
          schema:
            type: string
      requestBody:
        description: What to load and how. Only `source` is required.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/HydrateRequest'
            example:
              table: support_tickets
              source:
                kind: bucket
                bucket: example-exports
                prefix: tickets/2026/
              format: ndjson
              fts:
                - column: body
              embed:
                column: body_embedding
                source:
                  - body
        required: true
      responses:
        '200':
          description: >-
            Dry run (`dry_run: true`): the load would be accepted. Nothing was
            written or counted. The body is for the one table the request named,
            or lists every table found when it named none.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HydrateSubmitChecked'
        '202':
          description: >-
            Accepted. With a `table`: the load's name and state, `admitting` for
            a new load (its source is still being read; follow it to `pending`,
            or to `failed` with the reason) and `pending` for a resume, an
            append or a replace. With no `table`: the request's plan,
            `admitting`, followed with `GET ?plan=`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HydrateSubmitAccepted'
              example:
                job: hydrate/cust_example/analytics/support_tickets
                state: admitting
        '400':
          description: >-
            The request is malformed: a body that is not JSON or has an unknown
            field, an invalid database or table name, a source, pattern, path
            column, filter, snapshot or notice link that does not validate,
            options that cannot be combined (`sync` with `append` or a `prefix`
            source; `replace` with `resume` or with no table), a `public_s3`
            source where public sources are not turned on, or a source that does
            not hold what `format` says.
        '401':
          description: Missing or invalid API key.
        '402':
          description: The account is suspended, or its free period has ended.
        '403':
          description: >-
            Refused, and the message says which: the key may not write to this
            database; the account has no capacity to run loads on; the account
            is at its row or vector limit; the database's own storage has not
            been verified or can no longer be reached; the source could not be
            listed with the access granted, or is not proven to be the
            account's; `notify.email` is not confirmed for the account; or the
            table is append-only and the request would remove rows (`sync`,
            `replace`, or `on_failure: drop`).
        '404':
          description: The database does not exist.
        '409':
          description: >-
            The table already has a load on record and the request does not say
            `resume`, `if_exists: append` or `if_exists: replace`; or that load
            is still running, is being cleared, or is a `sync` load (which is
            neither resumed nor appended to); or a resume changes what the load
            reads; or a replace waited for the running load to stop and it has
            not yet. With no `table`: one of the tables found already has a load
            on record.
        '410':
          description: The database is being deleted.
        '412':
          description: >-
            The load's record changed while the request was being applied.
            Nothing was lost: send the same request again.
        '429':
          description: The account's request rate limit is exceeded. Retry later.
        '500':
          description: >-
            The service could not read or write a record it needs. Not caused by
            the request; retry later.
        '501':
          description: >-
            Loading is not available on this deployment; or the request needs
            something this deployment does not do: `if_exists: replace` where
            tables cannot be dropped for a load, or a `bucket` source into a
            database on the service's own storage on a cloud where that is not
            supported.
        '502':
          description: >-
            Files the account uploaded for this `prefix` source could not be
            finalized. Retry.
        '503':
          description: >-
            The source's storage failed in a way that may pass, or the service
            is shedding load. Retry after a short wait.
      security:
        - api_key: []
components:
  schemas:
    HydrateRequest:
      type: object
      description: >-
        A load: read the files at `source`, derive a searchable table schema
        from them, embed the text, and write the rows into `table`. Only
        `source` is required. An unknown field is refused with `400`.
      required:
        - source
      properties:
        batch:
          $ref: '#/components/schemas/HydrateBatch'
          description: |-
            How the load sizes its commits; the service's defaults when absent,
            which suit most loads.
        chunk:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/HydrateChunk'
              description: Split a long text column into one table row per chunk.
        columns:
          type:
            - array
            - 'null'
          items:
            type: string
          description: Source columns to carry into the table; every column when absent.
        csv:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/HydrateCsv'
              description: >-
                How a delimited source is written; read only when `format` is
                `csv`,

                or `auto` and the source turns out to be delimited text.
        docs:
          type: array
          items:
            type: string
          description: |-
            Documentation files to read for the table's context, beyond the ones
            found under the source itself: object keys in the same root as the
            source (the database's root for a `prefix` source, the bucket for a
            `bucket` one), each read whatever its name. For a data dictionary
            several tables share, kept beside their prefixes rather than copied
            under each.
        dry_run:
          type: boolean
          description: |-
            Make every check a load is accepted by and stop there: the
            database, the account's standing, the notice address, access to the
            source, and the source listed and read as the load would read it.
            Nothing is loaded, written or counted; `200` when the load would be
            accepted, the refusal it would get otherwise. For checking access to
            a source before loading it.
        embed:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/HydrateEmbed'
              description: >-
                The embedding column to build, and the text columns it is made

                from. Absent, the load builds one from the text columns it
                finds;

                `no_embed` builds none.
        format:
          $ref: '#/components/schemas/HydrateFormat'
          description: The format the source files are written in; `parquet` when left out.
        fts:
          type: array
          items:
            $ref: '#/components/schemas/HydrateFts'
          description: |-
            The full-text indexes to build, one per column named. Absent, every
            text column is indexed; `no_fts` builds none.
        if_exists:
          $ref: '#/components/schemas/HydrateIfExists'
          description: What to do when the table already exists; `refuse` when absent.
        key_patterns:
          type: array
          items:
            type: string
          description: >-
            Which files under the source are read, by their names: a key is read

            when its last path segment matches one of these patterns, in which

            `*` stands for any run of characters and `?` for one. `*.parquet`
            keeps

            `events/2026-10-01/part-0.parquet` and leaves out

            `part-0.parquet.crc` beside it; `summary.json` keeps that one

            file of each folder. For a source that keeps files of several kinds

            side by side. Empty or absent, every file is read.


            The format, `auto`'s detection included, then sees only the files

            kept. An Iceberg table ignores it: its files are the ones its

            metadata names, never the ones a listing finds, so `iceberg` reads

            the whole table whatever this says.
        no_embed:
          type: boolean
          description: Build no embedding column even when a text column would take one.
        no_fts:
          type: boolean
          description: Build no text index even when a text column would take one.
        notify:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/HydrateNotify'
              description: >-
                Who to tell when the load ends (succeeded, failed, or stopped
                before

                it finished) in one short mail to `email`. The address must
                already

                be confirmed for the account, or the request is refused with
                `403`.

                A cancel withdraws the notice. Absent, nobody is told and the

                caller polls the load's status.
        on_failure:
          $ref: '#/components/schemas/HydrateOnFailure'
          description: |-
            What becomes of a half-built table when the load fails for good or
            is cancelled; `keep` when absent.
        on_type_drift:
          $ref: '#/components/schemas/HydrateOnTypeDrift'
          description: |-
            What a sync pass does when a column's source type has drifted
            *lossily* from the type the table stores; `rewrite` when absent. A
            lossless widen, and a column the table does not have yet, are always
            taken whatever this says.
        parts:
          type:
            - integer
            - 'null'
          format: int32
          description: |-
            How many parts the load is split into, run side by side, each
            taking a share of the source's files. Absent, the service chooses
            from the source's size, so a small table is one part and a large
            one uses as many as it may; `1` is one part. At most 64. On a
            resume it must match the count the load was started with, or be
            absent.
          minimum: 0
        path_columns:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/HydratePathColumns'
              description: >-
                Columns whose values are taken from where each file sits rather
                than

                from what it holds - a tenant or application id in the bucket's
                name,

                a date folder, Hive's `name=value` folders - stamped on every
                row the

                file gives (every chunk of it, when the table chunks), or,
                declared

                `store: false`, captured only to choose the files read by. A
                file

                whose path does not match is left out and counted
                (`unmatched_paths`

                in the load's status), never loaded with a null. Not for an
                Iceberg

                or Delta table or a snapshot, whose files are the ones their

                metadata names. Absent, no column is taken from the path.
        path_filter:
          type: object
          description: |-
            Which files are read, by the values `path_columns` takes from their
            paths: a condition per path column, every one of which a file's
            values must meet. Applied to the listing, before a file is read or
            counted against an allowance; a condition on a value taken from a
            folder leaves the folders out of range unlisted. A relative bound
            (`-365d`) is resolved when the source is listed: for a load, once,
            when it is accepted, which a resume of it shares; for each sync
            pass, at the pass. A file a window has moved past stays in the
            table: the filter decides what is read, not what is kept, and a sync
            pass neither reads such a file nor counts it gone.
          additionalProperties:
            $ref: '#/components/schemas/HydratePathCondition'
          propertyNames:
            type: string
        resume:
          type: boolean
          description: |-
            Continue a stopped load from its checkpoint instead of starting one;
            with no checkpoint to continue from - a run that never saved one -
            the load starts from the beginning. A resume asks for the data the
            load's own request did: one that changes the source, the files read
            or how they are read, the columns or their roles, or whether the
            rows are appended is refused with `409` once the load has run.
        snapshot:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/HydrateSnapshot'
              description: >-
                Which index of a snapshot repository to load: required when
                `format`

                is `elasticsearch_snapshot` (or `auto` over a repository),
                refused

                with any other format.
        source:
          $ref: '#/components/schemas/HydrateSource'
          description: Where the source files are.
        sync:
          type: boolean
          description: >-
            Keep the table matching the files in its source rather than load it

            once. The load numbers every source file, stamps each row with its

            file's number, and records each file it loaded (its key, version

            marker, size, modification time and rows) in a list the table keeps

            hidden beside it; a successful load ends `synced` rather than

            `succeeded`. A request that names no table passes it to every table

            it loads. Refused with `if_exists: append`, since an appended table

            holds rows from no file, and for a `prefix` source, which is staged

            data loaded once. Absent or false, a one-off load.


            Every pass keeps the roles the table was built with - the columns
            its

            embedding is made from, its text indexes, the column it cuts into

            passages - as the table's own schema records them, so every row is

            embedded and indexed alike. A column that later files bring, prose

            included, is stored as a plain column in no role: neither embedded

            nor text-indexed, and not found by vector or keyword search, until

            the table is loaded again.
        table:
          type: string
          description: >-
            The table to load. Left out or empty, one table is loaded per folder

            directly under the source instead, each named for its folder (from

            a `bucket` source, for the bucket first) and loaded on its own. Such
            a request

            is answered with a plan, followed with `GET ?plan=`.
        text_columns:
          type: array
          items:
            type: string
          description: |-
            Text columns kept as their text (by source or table name), beside
            those the load keeps so by itself: their values are never parsed as
            JSON documents whose fields become columns of their own. A load
            keeps every text column whose values are mostly not JSON as text
            without being asked - a column of source files, where a file that
            happens to be JSON is still a file - and opens the rest, a column of
            serialized documents, for fields. Naming a column here keeps it as
            text whatever its values are. Each must name a carried text column.
      additionalProperties: false
    HydrateSubmitChecked:
      oneOf:
        - $ref: '#/components/schemas/HydrateChecked'
          description: The request named a table.
        - $ref: '#/components/schemas/HydrateTablesChecked'
          description: |-
            The request named no table: every table found in the source's
            folders.
      description: What a dry run that would be accepted is answered with (`200`).
    HydrateSubmitAccepted:
      oneOf:
        - $ref: '#/components/schemas/HydrateAccepted'
          description: 'The request named a table: that table''s load.'
        - $ref: '#/components/schemas/HydratePlanStatus'
          description: |-
            The request named no table: its plan, whose tables are found in
            the source's folders.
      description: |-
        What a load that was accepted is answered with (`202`): the load of
        the table the request named, or the plan of a request that named
        none.
    HydrateBatch:
      type: object
      description: >-
        How the load sizes its commits. Every field is optional and falls back
        to the service's default; most loads leave this out.
      properties:
        commit_target_mb:
          type:
            - integer
            - 'null'
          format: int64
          description: |-
            The stored bytes a commit aims for, in MiB. The load also holds
            every commit to a fixed memory bound this does not raise, so on a
            wide, sparse table, whose rows take far more in memory than they
            store, commits can come out smaller than asked.
          minimum: 0
        max_rows_per_commit:
          type:
            - integer
            - 'null'
          format: int64
          description: The most rows one commit holds.
          minimum: 0
        optimize_every_commits:
          type:
            - integer
            - 'null'
          format: int64
          description: |-
            Commits between the table optimizations a run interleaves with
            them. A load on Infino Cloud runs none: the service compacts the
            table once the load has ended.
          minimum: 0
      additionalProperties: false
    HydrateChunk:
      type: object
      description: >-
        Split one long text column into chunks before indexing: every source row
        becomes one table row per chunk of `column`, each carrying the row's
        other columns, so a keyword hit or a vector lands on a passage and not
        on a whole document. Chunks are cut along the text's own boundaries
        (paragraphs, then sentences, then words; with `markdown`, along its
        headings first) and sized in the embedding model's tokens. Left out, a
        load that embeds still cuts every embedded text column into passages of
        512 tokens, and a value that fits in one passage stays one row.
      required:
        - column
      properties:
        column:
          type: string
          description: The text column to split. In the table it holds each chunk's text.
        first_chunk_only:
          type:
            - array
            - 'null'
          items:
            type: string
          description: |-
            Columns kept whole on each row's first chunk only and empty on the
            rest: large per-document fields (an infobox, a reference list) the
            customer wants stored and indexed once per row rather than once per
            chunk. A nested column (a list, a struct, a map) is kept so whether
            named or not; absent or empty, every other column is copied onto
            every chunk.
        index_column:
          type:
            - string
            - 'null'
          description: The column numbering each row's chunks from 0; `chunk` when absent.
        markdown:
          type: boolean
          description: Treat the text as Markdown and split along its headings first.
        max_tokens:
          type:
            - integer
            - 'null'
          description: |-
            The most embedding-model tokens a chunk may hold; 512 when left
            out, a passage. A chunk never takes more than the model reads of a
            document, less what the row's other embedding source columns take;
            a size past what the model reads is refused.
          minimum: 0
        overlap_tokens:
          type:
            - integer
            - 'null'
          description: |-
            Tokens each chunk repeats from the end of the one before; none when
            absent. Must be smaller than the chunk.
          minimum: 0
        path_column:
          type:
            - string
            - 'null'
          description: >-
            The column naming each row's file. Its extension says how the text

            is cut: code at its definitions, Markdown at its headings, a log at

            its records, packed to about sixty lines, as the code-context client

            cuts files. Absent, a carried text column named `path` is used when

            there is one; with none, the text is Markdown when `markdown` says
            so

            and plain lines otherwise. Each chunk's line range, symbol, kind and

            scope are recorded in columns of those names after the numbering

            column.
      additionalProperties: false
    HydrateCsv:
      type: object
      description: >-
        How a delimited-text source is written, when `format` is `csv`. Every
        field defaults to RFC 4180's.
      properties:
        delimiter:
          type:
            - string
            - 'null'
          description: |-
            The one character between fields: `,` when absent; `;` and `\t` are
            common in exports.
        header:
          type:
            - boolean
            - 'null'
          description: 'Whether the first record names the columns: yes when absent.'
        quote:
          type:
            - string
            - 'null'
          description: 'The one character that quotes a field: `"` when absent.'
      additionalProperties: false
    HydrateEmbed:
      type: object
      description: >-
        The embedding column of the table: its name, and the text columns whose
        values are joined and embedded to fill it.
      required:
        - column
        - source
      properties:
        column:
          type: string
          description: The name of the embedding (vector) column to create.
        source:
          type: array
          items:
            type: string
          description: |-
            The text columns whose values are joined into the text that is
            embedded for each row.
      additionalProperties: false
    HydrateFormat:
      type: string
      description: >-
        The format the source files are written in; `parquet` when left out.
        `parquet`: Apache Parquet. `orc`: Apache ORC. `ndjson`:
        newline-delimited JSON, one object per line; the schema is inferred from
        the first file and every later file is held to it. `csv`: delimited
        text, written as the request's `csv` says. `iceberg`: an Apache Iceberg
        table (format version 1 or 2), the source prefix being the table's root;
        the files of its current snapshot are loaded. `delta`: a Delta Lake
        table (reader version 1 to 3), the source prefix being the table's root;
        the files of its newest version are loaded. `elasticsearch_snapshot`:
        one index of an Elasticsearch or OpenSearch snapshot repository, named
        by the request's `snapshot`; the live cluster is never read. `auto`:
        detect which of these the source holds; a source holding files of more
        than one format is refused.
      enum:
        - parquet
        - orc
        - ndjson
        - csv
        - iceberg
        - elasticsearch_snapshot
        - delta
        - auto
    HydrateFts:
      type: object
      description: A full-text index on one column of the table.
      required:
        - column
      properties:
        analyzer:
          type:
            - string
            - 'null'
          description: |-
            The analyzer the index is built with. `standard` is the only one,
            and the default when left out.
        column:
          type: string
          description: The text column to index for keyword search.
      additionalProperties: false
    HydrateIfExists:
      type: string
      description: >-
        What the load does when the table already exists. `refuse` (the
        default): the request is refused, the name is taken. `append`: append
        the source's rows to the table, which must already have the columns,
        types and roles the source gives; a table of another shape is refused
        untouched. `replace`: start the table over from the source in one
        request: a load still running on it is cancelled and waited for, the
        table is dropped, and the new load starts. This is a drop and then a
        load, not a swap: until the new load has finished the table is missing
        or partly loaded, and a load that fails leaves nothing of the old table
        to restore. `replace` needs a named table and cannot be combined with
        `resume`.
      enum:
        - refuse
        - append
        - replace
    HydrateNotify:
      type: object
      description: Who is mailed when the load ends.
      required:
        - email
      properties:
        email:
          type: string
          description: |-
            The address the mail goes to. It must already be confirmed for the
            account.
        link:
          type:
            - string
            - 'null'
          description: |-
            A page the mail links to, where the loaded table can be used. Only
            a link under a prefix the service allows is accepted; any other is
            refused with `400`.
      additionalProperties: false
    HydrateOnFailure:
      type: string
      description: >-
        What becomes of a half-built table when the load fails for good or is
        cancelled. `keep` (the default): keep the rows already committed, and
        the load can be resumed. `drop`: drop the table, so a half-built table
        is never served.
      enum:
        - drop
        - keep
    HydrateOnTypeDrift:
      type: string
      description: >-
        What a sync pass does when a column's type in the source has changed in
        a way no cast survives (a column that was a number is now text).
        `rewrite` (the default): rewrite the column to the new type and keep
        going; a stored value that does not cast to it reads as null from then
        on. `fail`: fail the pass and leave the column and its rows untouched. A
        lossless widening, and a column the table does not have yet, are always
        taken whatever this says.
      enum:
        - rewrite
        - fail
    HydratePathColumns:
      oneOf:
        - $ref: '#/components/schemas/HydrateHive'
          description: |-
            `{"hive": true}`: every `name=value` folder segment of a file's key
            is the value of column `name` for its rows; a file without such a
            folder for a column has the column null, and so does Hive's own
            `__HIVE_DEFAULT_PARTITION__`. Every value is text unless `types`
            declares the column's type.
        - type: array
          items:
            $ref: '#/components/schemas/HydratePathColumn'
          description: Each column captured by its own pattern.
      description: >-
        Columns whose values come from where each file sits and not from what it
        holds. Either a list of columns, each captured by a pattern from the
        bucket's name or the file's key, or the object `{"hive": true}` for
        Hive's layout, in which every `name=value` folder is a column `name`.
    HydratePathCondition:
      type: object
      description: >-
        What a file's value of one path column must meet for the file to be
        read: every bound given, compared in the column's type. A bound is a
        JSON string or a number; on a `date`, `timestamp` or `epoch_ms` column
        it may also be relative, a signed count of days or hours from the time
        the source is listed (`-365d`, `-36h`). A file whose value is null meets
        no condition.
      properties:
        eq:
          description: |-
            The value must equal this. Any JSON value is read; a string or a
            number is accepted, anything else is refused with `400`.
        gt:
          description: |-
            The value must be greater than this. Any JSON value is read; a
            string or a number is accepted, anything else is refused with `400`.
        gte:
          description: |-
            The value must be at least this. Any JSON value is read; a string
            or a number is accepted, anything else is refused with `400`.
        in:
          type:
            - array
            - 'null'
          items: {}
          description: |-
            The value must be one of these. Each item is any JSON value; a
            string or a number is accepted, anything else is refused with `400`.
        lt:
          description: |-
            The value must be less than this. Any JSON value is read; a string
            or a number is accepted, anything else is refused with `400`.
        lte:
          description: |-
            The value must be at most this. Any JSON value is read; a string or
            a number is accepted, anything else is refused with `400`.
      additionalProperties: false
    HydrateSnapshot:
      type: object
      description: >-
        Which index of an Elasticsearch or OpenSearch snapshot repository to
        load, when `format` is `elasticsearch_snapshot`. The source prefix is
        the repository's base path, the folder holding `index.latest`.
      required:
        - index
      properties:
        cluster_state:
          type: boolean
          description: >-
            With `opensearch_table`, also register the source cluster's

            own state as this snapshot took it, beside the index's row in the

            plugin's registry, for the plugin to apply on its cluster before it

            creates the index: the persistent settings, legacy, index and

            component templates, ingest and search pipelines and stored scripts

            of the snapshot's global state, and the security plugin's action

            groups, tenants, roles, internal users (without their password
            hashes,

            which stay on the source cluster) and role mappings from its

            configuration index. The entries the

            security plugin makes itself, and its authentication, node and audit

            configuration, stay the target cluster's own. What sets or places

            shards on the source's nodes (shard allocation and recovery
            settings,

            a template's shard and replica counts and allocation) is dropped, so

            the target places shards by its own settings; an index state

            management policy with an action on shards loads as written and is

            named. Each of these, and anything else the plugin cannot apply, is

            named in the load's log. The

            state is the whole of the snapshot's: one load of a migration asks

            for it, and each that does registers it all again.
        index:
          type: string
          description: The index, by the name the cluster gave it.
        no_vectors:
          type: boolean
          description: |-
            Leave the index's vector fields (`dense_vector`, `knn_vector`,
            `sparse_vector`, `rank_vectors`) out of the table: no column of
            their values, and none of the index's vector files read. Absent or
            false, each is a column of the values its documents hold. The
            table's own embedding, which hydrate makes from text, is built
            either way.
        opensearch_table:
          type: boolean
          description: |-
            Load the index as the table the OpenSearch plugin serves an index
            from: an index created over it (`index.infino.table`) with the
            snapshot's mapping serves the documents as the cluster did. The
            table holds each document's id in `osid` and its `_source` in
            `source`, and each field the mapping declares in a column named by
            its dotted path, typed and indexed from the mapping as the plugin
            types them (a `text` field gets a text index, a `knn_vector` a
            vector index); nothing else is inferred, so a request with this
            declares no columns, text indexes, embedding or chunking, and no
            embedding is made.
        snapshot:
          type:
            - string
            - 'null'
          description: |-
            The snapshot, by name; absent, the newest successful snapshot that
            holds the index.
      additionalProperties: false
    HydrateSource:
      oneOf:
        - type: object
          title: Bucket
          description: |-
            Your own bucket, on the same cloud as the service: the files are
            read where they are, and nothing is copied or staged. Grant the
            service read access to the bucket before you load; a bucket it
            cannot list is refused with `403`.
          required:
            - bucket
            - prefix
            - kind
          properties:
            bucket:
              type: string
              description: The bucket's name (on Azure Blob Storage, the container's).
            encryption:
              oneOf:
                - type: 'null'
                - $ref: '#/components/schemas/CustomerKey'
                  description: >-
                    The customer-managed key the bucket's objects are encrypted

                    under, when it has one, so the load can decrypt them. Leave
                    it

                    out for a bucket without one.
            kind:
              type: string
              enum:
                - bucket
            prefix:
              type: string
              description: |-
                A key prefix inside the bucket, read as a folder: `team` reads
                `team/` and never `team-finance/`. Empty reads the whole bucket.
                It must not start with `/` or contain `..`.
        - type: object
          title: PublicS3
          description: |-
            A public AWS S3 bucket, such as an AWS open dataset, read without
            credentials: only what the bucket's policy grants everyone is read.
            Refused with `400` where public sources are not turned on.
          required:
            - bucket
            - prefix
            - region
            - kind
          properties:
            bucket:
              type: string
              description: The public bucket's name.
            kind:
              type: string
              enum:
                - public_s3
            prefix:
              type: string
              description: |-
                A key prefix inside the bucket, read as a folder. Empty reads
                the whole bucket.
            region:
              type: string
              description: The bucket's own AWS region, for example `us-east-1`.
        - type: object
          title: Prefix
          description: |-
            Files already staged in the database's own storage, for example by
            an upload: a key prefix relative to the database's root, such as
            `_source/enwiki/`. Loaded once; it cannot be loaded with `sync`.
          required:
            - prefix
            - kind
          properties:
            kind:
              type: string
              enum:
                - prefix
            prefix:
              type: string
              description: |-
                The key prefix, relative to the database's root. It must not be
                empty, start with `/` or contain `..`.
      description: Where the source files are. `kind` says which of the forms this is.
    HydrateChecked:
      type: object
      description: >-
        The answer to a dry run naming a table: the load would be accepted. Its
        source was listed and read as the load would read it, and nothing was
        written.
      required:
        - job
        - admissible
      properties:
        admissible:
          type: boolean
          description: |-
            Always `true`: a load that would not be accepted is answered with
            its refusal instead.
        job:
          type: string
          description: The name the load would have.
    HydrateTablesChecked:
      type: object
      description: >-
        The answer to a dry run naming no table: every table found in the
        source's folders would be accepted, each checked as its own load would
        be. Nothing was written.
      required:
        - tables
        - admissible
      properties:
        admissible:
          type: boolean
          description: |-
            Always `true`: a request that would not be accepted is answered
            with its refusal instead.
        copies_left_out:
          type: integer
          description: |-
            Files left out because they hold the same rows as files that are
            read.
          minimum: 0
        files_left_out:
          type: integer
          description: |-
            Data files directly under the source, beside its folders, which no
            table reads.
          minimum: 0
        tables:
          type: array
          items:
            $ref: '#/components/schemas/HydrateFolderTable'
          description: The tables that would be loaded, one per folder found.
    HydrateAccepted:
      type: object
      description: >-
        A load of one table, accepted, or a cancel of one, accepted: the load's
        name and where it stands. Follow it with `GET ?table=`.
      required:
        - job
        - state
      properties:
        job:
          type: string
          description: The load's name.
        state:
          $ref: '#/components/schemas/HydrateJobState'
          description: |-
            Where the load stands: `admitting` or `pending` for a load just
            accepted, `cancelling` or `stopped` for one just cancelled.
    HydratePlanStatus:
      type: object
      description: >-
        A request naming no table, as its plan stands: the answer to its `POST`
        (`202`, `admitting`, no table yet) and to `GET ?plan=` (`200`), one
        shape for both. Once `admitted`, `tables` lists each table with its own
        load; `failed`, `error` says why.
      required:
        - plan
        - state
        - request
        - started_ms
        - updated_ms
      properties:
        copies_left_out:
          type: integer
          description: |-
            Files left out because they hold the same rows as files that are
            read.
          minimum: 0
        error:
          type:
            - string
            - 'null'
          description: |-
            Why the plan is `failed`, in the words the `POST` would have been
            refused with; absent otherwise.
        files_left_out:
          type: integer
          description: |-
            Data files directly under the source, beside its folders, which no
            table reads.
          minimum: 0
        plan:
          type: string
          description: The plan's id, which `GET ?plan=` follows it by.
        request:
          $ref: '#/components/schemas/HydrateRequest'
          description: The request as it was sent.
        started_ms:
          type: integer
          format: int64
          description: When the request was accepted, in milliseconds since the Unix epoch.
          minimum: 0
        state:
          $ref: '#/components/schemas/HydratePlanState'
          description: Where the plan stands.
        tables:
          type: array
          items:
            $ref: '#/components/schemas/HydrateFolderTable'
          description: |-
            The tables found, each with its own load, once the plan is
            `admitted`; empty until then.
        updated_ms:
          type: integer
          format: int64
          description: When the plan last changed, in milliseconds since the Unix epoch.
          minimum: 0
    HydrateHive:
      type: object
      description: >-
        Hive's layout: every `name=value` folder segment of a file's key is the
        value of column `name` for that file's rows. A file without such a
        folder for a column has the column null, as does Hive's own
        `__HIVE_DEFAULT_PARTITION__`.
      required:
        - hive
      properties:
        hive:
          type: boolean
          description: 'Must be `true`: the object names Hive''s layout and nothing else.'
        store:
          type: boolean
          description: |-
            Whether the folders' columns are stored in the table, as a declared
            path column's `store` says: `false` reads them only to filter, prune
            and plan by, and the table gets no column of them. Stored when
            absent.
        types:
          type: object
          description: |-
            The type of a column's values, by the column's name; a column not
            named here is text.
          additionalProperties:
            $ref: '#/components/schemas/HydratePathType'
          propertyNames:
            type: string
      additionalProperties: false
    HydratePathColumn:
      type: object
      description: >-
        One column taken from where each file sits: its name, what its pattern

        is matched against, the pattern, and the type its values are read as.


        `pattern` is a template, anchored at both ends and literal except for

        its placeholders: `{value}` is the value, exactly once; `{_}` matches

        without capturing; either takes a regular expression after a colon to

        constrain what it matches (`{value:[0-9]+}`); `{_*}` is any number of

        whole path segments, none included - except at the pattern's end, where

        it is everything below a folder and takes at least one, so

        `{value}/{_*}` is a folder's files and never a file at the source's
        root.

        Every placeholder matches within the segments it stands in: a

        constraint never reaches across a `/`. A placeholder without a
        constraint

        matches within one segment, never a `/`, and as little as it can, so

        `{_}-regional-{value}` splits `acme-io-regional-sub_1` at the literal.

        For anything a template cannot say, `regex` takes a regular expression

        instead, anchored at both ends, with the value in the group named

        `value`. Exactly one of the two.
      required:
        - column
        - from
      properties:
        column:
          type: string
          description: The table column the value lands in.
        from:
          $ref: '#/components/schemas/HydratePathFrom'
          description: What the pattern is matched against.
        pattern:
          type:
            - string
            - 'null'
          description: |-
            A template matched against the whole bucket name or key, with
            `{value}` where the column's value is, for example
            `events/{value}/{_*}`. Give exactly one of `pattern` and `regex`.
        regex:
          type:
            - string
            - 'null'
          description: |-
            A regular expression matched against the whole bucket name or key,
            with the column's value in the group named `value`, for what a
            template cannot say. Give exactly one of `pattern` and `regex`.
        store:
          type: boolean
          description: |-
            Whether the value is stored in the table: a column of the path
            column's name, stamped on every row of the file. `false` captures
            the value only to choose files by - `path_filter`, the folders a
            listing leaves out, the folders a request naming no table reads as
            partitions, the files counted unmatched - and the table gets no
            column of it, so its schema is what the files alone give it, and a
            file's own column of the same name is no clash. Such a capture takes
            no role (`fts`, `embed`, `chunk`, `columns`). Stored when absent: a
            value taken from a path and not stored is lost with the path, and
            only a reload brings it back.
        type:
          $ref: '#/components/schemas/HydratePathType'
          description: The type the value is read as; text when absent.
      additionalProperties: false
    CustomerKey:
      oneOf:
        - type: object
          title: AwsKms
          description: >-
            AWS KMS: the key the bucket's SSE-KMS default encryption names

            (`arn:aws:kms:<region>:<account>:key/<id>`). An alias ARN is
            refused:

            access is granted to the key itself, and an alias can be pointed at

            another key.
          required:
            - key_arn
            - bucket_key
            - kind
          properties:
            bucket_key:
              type: boolean
              description: >-
                Whether to use an S3 Bucket Key, which cuts KMS request cost. It
                is

                applied on every write. Set it `false` when the key policy is

                pinned to object ARNs, where a bucket key would be denied.
            key_arn:
              type: string
              description: The KMS key ARN. Its region must equal the bucket's region.
            kind:
              type: string
              enum:
                - aws_kms
        - type: object
          title: GcpKms
          description: |-
            GCP Cloud KMS: the key the bucket's default encryption names
            (`projects/<p>/locations/<l>/keyRings/<r>/cryptoKeys/<k>`).
          required:
            - key_name
            - kind
          properties:
            key_name:
              type: string
              description: The Cloud KMS key resource name.
            kind:
              type: string
              enum:
                - gcp_kms
        - type: object
          title: AzureVault
          description: >-
            Azure Key Vault: the key the storage account's encryption scope
            wraps

            (`https://<vault>.vault.azure.net/keys/<name>`). Azure caches keys,
            so

            revoking one takes roughly 7 to 30 minutes to take effect.
          required:
            - key_id
            - kind
          properties:
            encryption_scope:
              type:
                - string
                - 'null'
              description: >-
                The storage-account encryption scope bound to the key, where one
                is

                used. Left out, no scope is named.
            key_id:
              type: string
              description: The Key Vault key id (vault URL).
            kind:
              type: string
              enum:
                - azure_vault
      description: >-
        A customer-managed encryption key (CMEK): the key the objects in a
        bucket

        you own are encrypted under, when you supply one. Its `kind` must match
        the

        bucket's cloud. It carries no key material: the key stays in your own
        KMS

        or Key Vault, and only its resource name is recorded.
    HydrateFolderTable:
      type: object
      description: One table a request naming no table loads.
      required:
        - folder
        - table
        - job
      properties:
        folder:
          type: string
          description: |-
            The folder the table is read from, relative to the request's
            source; empty when the source itself is the table.
        job:
          type: string
          description: The name of the table's own load, followed with `GET ?table=`.
        key_patterns:
          type: array
          items:
            type: string
          description: |-
            The file-name patterns the table's files are read by, when the
            request or the plan named any.
        table:
          type: string
          description: The name the table was given.
    HydrateJobState:
      type: string
      description: >-
        Where a load stands. `admitting`: accepted, and its source is still
        being read to check it; it becomes `pending`, or `failed` with the
        refusal the check found. `pending`: waiting to start. `running`: rows
        are being committed. `cancelling`: a cancel was asked for, and the load
        stops at its next commit. `stopped`: stopped at a commit; it can be
        resumed. `succeeded`: every row is in the table. `synced`: as
        `succeeded`, for a table loaded with `sync`, which is kept matching its
        source from then on. `failed`: failed for good; what became of the table
        is the request's `on_failure`. `unknown`: a state this version of the
        service does not name; treat it as ended. `admitting`, `pending`,
        `running` and `cancelling` are live; the rest have ended.
      enum:
        - admitting
        - pending
        - running
        - cancelling
        - stopped
        - succeeded
        - synced
        - failed
        - unknown
    HydratePlanState:
      type: string
      description: >-
        Where a request naming no table stands. `admitting`: the source is being
        listed and its tables planned. `admitted`: every table has a load of its
        own, followed by the table's name. `failed`: the request was refused,
        and `error` says why. `unknown`: a state this version of the service
        does not name; treat it as ended.
      enum:
        - admitting
        - admitted
        - failed
        - unknown
    HydratePathType:
      type: string
      description: >-
        The type a path column's values are read as. `string` (the default):
        text. `int64`, `uint64`, `float64`: numbers. `date`: an ISO date,
        `YYYY-MM-DD`. `timestamp`: an ISO 8601 date or date and time
        (`2026-10-30T14:00:00Z`; UTC when it names no zone); a bare run of
        digits is not one. `epoch_ms`: milliseconds since the epoch, as digits
        with an optional leading `-`.
      enum:
        - string
        - int64
        - uint64
        - float64
        - date
        - timestamp
        - epoch_ms
    HydratePathFrom:
      type: string
      description: >-
        What a path column's pattern is matched against. `bucket`: the bucket's
        name, the same for every file; only a `bucket` source has one. `key`:
        the file's key relative to the source prefix: under a source at
        `exports/`, `events/2026-10-01/a.parquet` for the object
        `exports/events/2026-10-01/a.parquet`.
      enum:
        - bucket
        - key
  securitySchemes:
    api_key:
      type: http
      scheme: bearer

````

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