Skip to main content
POST
Evaluate a lab-dialect script against a workspace (X1)

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
script
string
required

Lab-dialect (.m subset) script bytes, max 1 MiB

workspace_in
string

Blob key (b3:...) of a prior workspace document to fold over; omit for a fresh workspace

Response

Evaluated (possibly with a typed script refusal - see the refusal field)

figures
string[]

Content addresses of rendered lab_figure SVG artifacts (X5), in figure order; fetch via GET /v1/blobs/{key}

lab_version
string

The pinned display/dialect version (lab-v1)

refusal
object | null

The typed refusal that stopped the script, if any

script_key
string

BLAKE3 of the script bytes

transcript
string

Deterministic transcript bytes (display + fprintf)

transcript_key
string

Content address of the transcript bytes

vars
object[]

Workspace summary: {name, class, rows, cols} per variable

workspace_out
string

Content address of the resulting canonical workspace document