Skip to main content
POST
Run a multi-method simulation document (A1)

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
agent_type
string

Inline: the agent type (the document's main when empty)

document
object

The model document (MultisimDoc): name, main, time_unit, agent_types[] (parameters, variables, functions, events, blocks[] {id, kind, params, actions, stream}, connectors[] {from, to}), experiments[] {name, kind: simulation | replications, stop_time, seed, warm_up, replications, confidence, frames_every, outputs[] {name, metric}, parameters}. Parsed tolerantly; its canonical bytes are the document key.

document_key
string

TL13: the model by its document key instead of document (give one of the two): the document_key multisim.import or a run answered, or an episode's final_key, so a model read from a file runs and is edited without travelling through the caller. An unknown key answers 404 MULTISIM_DOCUMENT_UNKNOWN.

experiment
string

The experiment to run, by name; omit for the inline settings

frames_every
number

Inline: animation frame interval (0 = none)

include_log
boolean

Return the event log in the response (it is stored under log_key either way)

parameters
object

Inline: parameter overrides by name

seed
integer

Inline: the experiment seed

stop_time
number

Inline: stop time (default 100)

warm_up
number

Inline: statistics reset at this time

Response

OK

agent_type
string
confidence
number
document_key
string
experiment_key
string
frames_key
string

Blob key of the animation frames

kind
string
little_max_error
number

The largest relative Little's-law error over the blocks

log
array

The event log when include_log is set

log_key
string

Blob key of the event log (JSON array of {t, seq, block, what, entity})

log_truncated
boolean
metrics
object

Every block metric as .

name
string
outputs
object[]

Per output: name, metric, n, mean, sd, min, max, half_width (Student-t), confidence, method, values[]

replications
integer
result_key
string

Blob key of the stored summary (GET /v1/blobs/{key})

run
object

The run summary: per block count_in / count_out / inside (time-weighted) / time_inside (tally) / the block's own statistics / utilization; Little's law per block; variables; draws per stream

run_key
string

BLAKE3(document key | experiment key) - the run's address

seed
integer
stop_time
number
version
string

multisim-v1

warm_up
number