schedule_run

writes

Schedule a run of an algorithm over an authorized sample.

Runs the algorithm's latest version. Runs are asynchronous: this returns immediately with status "Pending". Poll get_run(run_id) to watch progress and read results.

Before calling this, call get_algorithm(algorithm_name) to read the input_schema and construct a valid input. Pass the sample through the sample_id parameter (never inside input).

Returns {run_id, status}.

Parameters

algorithm_name
string
required

The algorithm to run, by name, from list_algorithms.

input
object | null
optional

Algorithm parameters matching the algorithm's input_schema (call get_algorithm first to read it). Parameters only — do NOT put sample references here; use the sample_id parameter.

sample_id
string | null
optional

Wallet sample_id (from list_samples) to run the algorithm over. Ownership-checked and translated to the internal sample reference. Omit for parameter-only algorithms.

Response

run_id
string
required

Pass this to get_run to poll.

status
string | null
required