Skip to main content
POST
For each source at a date, the k items it will most likely link to

Authorizations

Authorization
string
header
required

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

Path Parameters

database_id
string
required

Body

application/json
source_table
string
required

The table whose rows get a list (customers).

Example:

"customers"

dest_table
string
required

The table the list is made of (products).

Example:

"products"

rows
Rows · object[]
required

The rows to predict: a source and a date.

source_column
string
required

The column of the rows (and of the links) that holds the source table's primary key.

time_column
string
required

The column of the rows that holds the date.

window_days
number
required

The list is of the links in the window_days days after the date.

Example:

30

k
integer
default:10

Items per list.

Required range: 1 <= x <= 1000

A table of the database whose rows are the links (orders): a time column and a foreign key to each of the two tables. Give this or links.

Example:

"orders"

The links themselves: source, destination and time, one object per link.

dest_column
string | null

With links: the column that holds the destination table's primary key.

With links: the column of their time (default: time_column).

id_column
string | null

A column of the rows that keys the lists (default: the row's position).

explain
boolean
default:false

Add to each prediction the contribution of each input to it. See Explanations.

explain_top
integer
default:10

The number of largest contributions returned per prediction.

Required range: 1 <= x <= 100
explain_class
string | null

Classification: the class whose probability is explained. Default: the predicted label.

format
enum<string>
default:json

json, or a table with one row per item.

Available options:
json,
csv,
parquet

Response

Successful Response

predictions
Predictions · object[]
required

One object per row, keyed by 'id' (the id column, or the row's position).

report
Report · object
required