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

# Run a sync pass now

> Bring a table that was loaded with `sync: true` back in line with its source, now, without waiting for the next scheduled pass. The source is listed, the files that are new, rewritten or gone since the table last loaded them are found, and a pass that applies them is started; it runs like a load and is followed with `GET /v1/hydrate/{database}?table=`. One pass applies a bounded number of files, and `deferred` counts the rest. There is no request body.

Preview: this route may change between releases.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/hydrate/{database}/{table}/sync
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}/{table}/sync:
    post:
      tags:
        - Hydrate
      summary: Run a sync pass now
      description: >-
        Bring a table that was loaded with `sync: true` back in line with its
        source, now, without waiting for the next scheduled pass. The source is
        listed, the files that are new, rewritten or gone since the table last
        loaded them are found, and a pass that applies them is started; it runs
        like a load and is followed with `GET /v1/hydrate/{database}?table=`.
        One pass applies a bounded number of files, and `deferred` counts the
        rest. There is no request body.


        Preview: this route may change between releases.
      operationId: hydrate_sync
      parameters:
        - name: database
          in: path
          description: The database the table is in.
          required: true
          schema:
            type: string
        - name: table
          in: path
          description: 'The table to sync. It must have been loaded with `sync: true`.'
          required: true
          schema:
            type: string
        - name: dry_run
          in: query
          description: |-
            `true` reports the files that changed and applies nothing. `false`
            when left out.
          required: false
          schema:
            type: boolean
      responses:
        '200':
          description: >-
            Nothing was started: a dry run (`?dry_run=true`), which lists the
            files a pass would apply, or a pass that found nothing changed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HydrateSyncAnswer'
        '202':
          description: A pass was started over the files listed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HydrateSyncAnswer'
              example:
                job: hydrate/cust_example/analytics/support_tickets
                state: pending
                new:
                  - key: 2026-12-01/part-0007.ndjson
                    file_no: 42
                    change: new
                    marker: '"9b2cf535f27731c974343645a3985328"'
                    etag: '"9b2cf535f27731c974343645a3985328"'
                    size: 1048576
                    mtime_ms: 1796126400000
                    rows: 0
                rewritten: []
                gone: []
        '400':
          description: >-
            `dry_run` is not a boolean, a query parameter is unknown, the
            database or table name is not valid, or the table was loaded from an
            Iceberg table, a Delta table or a snapshot, which a sync pass does
            not read.
        '401':
          description: Missing or invalid API key.
        '403':
          description: >-
            The key may not write to this database; the table is append-only, so
            no pass may remove its rows; or the account is at its row or vector
            limit.
        '404':
          description: The table has no load on record.
        '409':
          description: >-
            The table was not loaded with `sync`; or its load or another pass is
            still running; or its source is being listed for a pass already; or
            its load is being cleared; or the notice its load asked for has not
            been sent yet.
        '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 source could not be listed or read, or the service could not
            read or write a record it needs. Retry later.
        '501':
          description: Loading is not available on this deployment.
        '503':
          description: The service is shedding load. Retry after a short wait.
      security:
        - api_key: []
components:
  schemas:
    HydrateSyncAnswer:
      type: object
      description: >-
        The files a sync pass applies, by what became of each since the table
        last loaded them. Answered with `202` when a pass was started, and with
        `200` for a dry run or when nothing changed.
      required:
        - job
        - state
        - new
        - rewritten
        - gone
      properties:
        deferred:
          type: integer
          description: |-
            Files that changed past the ones this pass applies, left for the
            passes after it.
          minimum: 0
        dry_run:
          type: boolean
          description: '`true` on the answer to a dry run; left out otherwise.'
        gone:
          type: array
          items:
            $ref: '#/components/schemas/SyncFile'
          description: Files the table loaded that the source no longer holds.
        job:
          type: string
          description: The name of the table's load, which the pass runs as part of.
        new:
          type: array
          items:
            $ref: '#/components/schemas/SyncFile'
          description: Files the source holds that the table has not loaded.
        rewritten:
          type: array
          items:
            $ref: '#/components/schemas/SyncFile'
          description: Files the table loaded that the source now holds at another version.
        state:
          $ref: '#/components/schemas/HydrateJobState'
          description: |-
            Where the table's load stands now: live when a pass was started,
            `synced` for a dry run or when nothing changed.
        unlisted:
          type: array
          items:
            type: string
          description: |-
            The first few folders of the source that could not be listed.
            Nothing under them is counted gone.
    SyncFile:
      type: object
      description: >-
        One source file a sync pass applies: where it is, what became of it, and
        the version of it that was listed.
      required:
        - key
        - file_no
        - change
      properties:
        change:
          $ref: '#/components/schemas/SyncChange'
          description: What became of the file since the table last loaded it.
        etag:
          type:
            - string
            - 'null'
          description: >-
            The file's ETag as listed, beside the marker, when the store reports

            one: the version and the ETag are what a file's bytes are compared
            by.
        file_no:
          type: integer
          format: int32
          description: The number the file's rows carry in the table.
          minimum: 0
        key:
          type: string
          description: The file's key, relative to the source the table was loaded from.
        marker:
          type:
            - string
            - 'null'
          description: |-
            The version the file was listed at: the store's version id when it
            keeps versions, else its ETag. Present for a file the pass reads.
        mtime_ms:
          type: integer
          format: int64
          description: |-
            When the file was last modified, as listed, in milliseconds since
            the Unix epoch.
          minimum: 0
        part:
          type: integer
          format: int32
          description: |-
            Which part of a pass run in several parts applies it; zero, and
            left out, for a pass run in one.
          minimum: 0
        rows:
          type: integer
          format: int64
          description: |-
            The rows the file yielded when the table last loaded it; zero for a
            new file. What the pass is expected to remove.
          minimum: 0
        size:
          type: integer
          format: int64
          description: The file's size in bytes, as listed.
          minimum: 0
      additionalProperties: false
    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
    SyncChange:
      type: string
      description: >-
        What became of one source file since the table last loaded it. `new`:
        the source holds it and the table has not loaded it. `rewritten`: the
        table loaded it and the source now holds another version. `gone`: the
        table loaded it and a complete listing of its folder no longer holds it.
      enum:
        - new
        - rewritten
        - gone
  securitySchemes:
    api_key:
      type: http
      scheme: bearer

````

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