Skip to main content
POST
Start a load

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

database
string
required

The database to load into.

Body

application/json

What to load and how. Only source is required.

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.

source
Bucket · object
required

Where the source files are.

batch
object

How the load sizes its commits; the service's defaults when absent, which suit most loads.

chunk
null | object

Split a long text column into one table row per chunk.

columns
string[] | null

Source columns to carry into the table; every column when absent.

csv
null | object

How a delimited source is written; read only when format is csv, or auto and the source turns out to be delimited text.

docs
string[]

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
boolean

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
null | object

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
enum<string>

The format the source files are written in; parquet when left out.

Available options:
parquet,
orc,
ndjson,
csv,
iceberg,
elasticsearch_snapshot,
delta,
auto
fts
object[]

The full-text indexes to build, one per column named. Absent, every text column is indexed; no_fts builds none.

if_exists
enum<string>

What to do when the table already exists; refuse when absent.

Available options:
refuse,
append,
replace
key_patterns
string[]

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
boolean

Build no embedding column even when a text column would take one.

no_fts
boolean

Build no text index even when a text column would take one.

notify
null | object

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
enum<string>

What becomes of a half-built table when the load fails for good or is cancelled; keep when absent.

Available options:
drop,
keep
on_type_drift
enum<string>

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.

Available options:
rewrite,
fail
parts
integer<int32> | null

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.

Required range: x >= 0
path_columns
object

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
object

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.

resume
boolean

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
null | object

Which index of a snapshot repository to load: required when format is elasticsearch_snapshot (or auto over a repository), refused with any other format.

sync
boolean

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
string

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
string[]

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.

Response

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.

What a dry run that would be accepted is answered with (200).

admissible
boolean
required

Always true: a load that would not be accepted is answered with its refusal instead.

job
string
required

The name the load would have.