Skip to main content
POST
Plan how an assembly goes together: the build order with each step's motion, tool and checks, or a refusal naming the part in the way

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
assembly
object
required

The assembly (components with recipes and poses, mates). Fixed components are the base unless plan.base names it.

async
boolean

AQ13.c: run the plan as a job (202 with job_id / poll / events); the finished job carries this route's body under sequence_plan on /v1/jobs/{job_id} (the time budget then bounds the job, not the request).

compute
object

AQ13.c: the fleet placement of an async job when the gateway has a queue (default the gateway's pool); the runner's sequence arms run the job.

mode
enum<string>

As solve.structural's mode: async runs the plan as a job on a worker, never on the gateway — 202 with job_id, phase: queued, poll (/v1/jobs/{job_id}), events and, on a fleet, pool; poll until phase is done (or error with a typed error), and the finished job carries this route's whole 200 body under sequence_plan (plan, plan_key, complete, order, notes, sequence, key, placements, …). sync (the default) answers in the request, unchanged; a product of several parts can take minutes there, and a client that gives the request up cancels the plan on the gateway.

Available options:
sync,
async
name
string

The job's label.

options
object

The oracles' options: paths / stability / access / detect_fasteners (booleans), path_difficulty (0–100, the RRT budget), path_tolerance_rel and release_rel (of the scene diagonal), slide_samples, seed, friction ({default, pairs[]}), max_hands, tools[] (allowed tool id prefixes), min_gap_mm, property_class ("8.8" | "10.9" | "12.9" | "A2-70" | null).

oracles
boolean

The real AQ4 / AQ5 / AQ6 oracles (default true); false plans by geometry alone.

plan
object

AQ3's request: base[] (component ids; empty = the fixed ones, else the largest part), constraints[] ({kind: before, a, b} | {kind: group, parts[]} | {kind: keep_together, parts[]} | {kind: serviceable, part, within?}), fasteners[] ({component, drive} — detected fasteners are added), search ({kind: beam, width} | {kind: astar, max_nodes, heuristic (true: the admissible travel bound, AQ3.c)}), weights (direction_change, reorientation, tool_change, held_part, travel, fastener_deferral, service_delay), up (the base's up, default +z), max_subassembly_depth, prefer_subassemblies (AQ3.c: touching parts each removable on their own are also offered as one sub-assembly step, planned below; off by default), time_budget_ms (a wall-clock budget: when it runs out the plan comes back as found so far — complete: false, one refusal of kind budget, stats.budget_expired — and every path search gets the remaining time as its cap; 100 ..= 3600000; none by default).

segments
integer

Tessellation segments for the placements (8 ..= 128, default 16).

units
string

The assembly's length unit: m (default) or mm.

Response

plan {schema, components, base, order, steps[], cost, complete, refusals[], stats, key}, plan_key, complete, order[], notes {paths, hands, tools, fasteners, refusals, oracles, units, poses, stats}, key, blob_uri, kind, steps, flat[], movers[], base[], sequence, placements[]