Skip to main content
POST
Run a structural solve (synchronous)

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
geometry
object
required

Exactly one of primitive | csg | mesh_blob | brep_blob | assembly

material
object
required
compute
object

Per-solve compute placement: a region and a machine class. Unset fields inherit the gateway default (/admin/environment). Requires a distributed deployment and forces async execution; placement never changes result bytes. A placement the deployment runs no pool for is refused (NO_POOL).

constraints
object[]
load_cases
object[]

Multiple load cases (M7): mesh + assembly are shared and every case is solved in one run. Case 0 keeps the unprefixed field/metric names; case i > 0 gets a "case{i}/" prefix; unprefixed metrics are the envelope (worst case). Mutually exclusive with the flat loads/constraints sugar (which is a single case).

loads
object[]
mesh_opts
object
mode
enum<string>
default:auto

Sync-vs-async (spec §8): auto compares estimated mesh size to the deployment threshold (SS_SYNC_NODE_LIMIT); async always returns 202 + job

Available options:
auto,
sync,
async
quality
enum<string>

Mesh-density preset along the longest edge (draft L/5, standard L/8 = default, fine L/16). An explicit mesh_opts.element_size wins. Primitive/csg geometry only.

Available options:
draft,
standard,
fine
solver
object

SC1: the solver block — HOW the equations are solved, never what the problem is. Absent, preset: reference, or a block equal to the domain's reference hashes as ABSENT (every pre-existing result key untouched); any keyed field forks the result key and the response names the reference_key the same body produces under preset: reference. A preset expands at request time to concrete fields (versioned: balanced@1, fast@1 …); explicit fields override the expansion field by field; two bodies that expand to the same block share a key (the preset NAME never enters the bytes). device and reference never enter the bytes. An arm this build or domain cannot serve is a typed 400 SOLVER_REFUSED naming its unit — never a silent fallback. preview is a setting, not a result: the same body routes to the V tier and answers kind: preview with result_id: null.

solver_version
string

Solver id to pin (e.g. "native-structural", "ccx"); empty = default, echoed back in provenance

storage
object

Per-solve storage placement, beside compute: where this solve's blobs (the model document, the mesh, the fields, the log, the trace) are written. Placement never changes result bytes or the result_key; the run record and the provenance carry the instance id, and a verify re-solve writes to the same place. A read by key (GET /v1/blobs/{id}) finds the bytes in whichever instance holds them.

webhook
object

SD5: a signed webhook on an async job's completion — one POST of the finished job record to url with x-eddy-signature: blake3=<hex> (a keyed BLAKE3 MAC over the body, the key derived from secret), x-eddy-job and x-eddy-event (done | error); three attempts with backoff, logged on the job record under webhook. A sync solve answers inline and carries no webhook.

Response

Solve result with provenance. With solver.preset = preview the body is the PreviewKindResponse (kind: preview, result_id: null).

cached
boolean

True when served from the result_key cache

fields
object

Field name -> blob id. displacement: 3 components/node; von_mises: 1/node. Fetch via /v1/blobs/{id}

kind
enum<string>

SC1: result on every preset but preview; a preview answers the PreviewKindResponse shape (result_id null)

Available options:
result,
preview
metrics
object

max_von_mises [Pa], max_displacement [m], min_fos [-]

provenance
object
result_id
string

= result_key (b3:<64-hex>); null (a present null) when kind = preview

warnings
object[]

RC1.F1: typed warnings about the solve's inputs that did not stop it, e.g. MESH_QUALITY (degenerate or inverted elements in a snapped mesh; see mesh_opts.mesh_pillow). Absent when empty.