Skip to main content
POST
Read the context rows once

Authorizations

Authorization
string
header
required

Your API key, sent as 'Authorization: Bearer '.

Body

application/json
target
string
required

The column to predict. Rows where it is empty are left out of the context.

Example:

"churned"

task
enum<string>
required

'classification' to predict a category (yes/no, a grade, a segment); 'regression' to predict a number.

Available options:
classification,
regression
rows
Rows · object[]
required

The context rows, one object per row.

column_types
Column Types · object

Override the inferred type of a column: number, category, date, text, image, audio or document (a link to a file), embedding (a list of numbers), id (never read) or ignore.

Example:
id_column
string | null

A column that names each row. It is never read as a feature; predictions are keyed by it.

max_context
integer
default:0

Use at most this many rows as the context; the same rows always give the same choice. 0 = all rows.

Required range: x >= 0
embed_dims
integer
default:8

Numeric columns made from each text, image, audio, document or embedding column.

Required range: 1 <= x <= 64
target_range
Target Range · object | null

Regression: outputs are clipped to [low, high] (a share between 0 and 1, a price that cannot be negative: [0, null]). null = no bound on that side.

time_column
string | null

When each row happened (a date, or a number of days). A row is then predicted from what was known before it: the answers known before its time, and the earlier rows of its group. The column is also read as a feature, and every other date column is read as its age at the row's time.

Example:

"month"

group_column
string | null

Which rows belong together: the months of one account, the stops of one delivery route. A row reads the other rows of its group. Send every row of a group that has no known answer yet in the same call.

Example:

"account_id"

known_column
string | null

When the row's values were known, if before its time (a stop planned when the route set off). Default: the row's time.

target_delay_days
number
default:0

How long after the row's time its target is known. A target about the month after the row: 30. Default 0.

Required range: x >= 0
group_target
string | null

A column with the group's own answer (an account's total recovery, a route's total hours), on any of the group's rows and empty while the group is open. It counts as known target_delay_days after the group's last row. Every prediction then also carries the group answer, as of that row.

Example:

"total_recovered"

group_task
enum<string> | null

'classification' or 'regression' for the group answer. Default: the task.

Available options:
classification,
regression
group_target_range
Group Target Range · object | null

Regression group answer: clipped to [low, high].

as_of

Stand at this date (or number, as the time column): use only what was known then. Rows known later and answers known later are left out.

Example:

"2026-10-31"

Response

Successful Response

context_id
string
required

Pass it to /v1/predict. The same rows and settings always give the same id.

report
Report · object
required

Column types and why, rows used and left out, text columns, timings.