Skip to main content

MetaForge Gateway (0.3.0)

Download OpenAPI specification:Download

HTTP/WebSocket front door for the MetaForge platform

health

Health Check

Return the aggregated health of the gateway and its dependencies.

Responses

Response samples

Content type
application/json
{
  • "auth_mode": "off",
  • "components": [ ],
  • "status": "healthy",
  • "timestamp": "2019-08-24T14:15:22Z",
  • "uptime_seconds": 0,
  • "version": "string"
}

approvals

Get Account Approval Policy

Your account's approval settings, and the deployment's limits above them.

Responses

Response samples

Content type
application/json
{
  • "allow_human_authority": true,
  • "allow_release": true,
  • "deployment": {
    },
  • "max_mode": "string",
  • "modes": [
    ],
  • "policy": {
    }
}

Put Account Approval Policy

Set your account's approval settings. A person's decision only.

The ceiling cannot be above the deployment's; turning delegation on where the deployment has it off is refused, so the person sees why.

Request Body schema: application/json
required
Allow Human Authority (boolean) or Allow Human Authority (null) (Allow Human Authority)
Allow Release (boolean) or Allow Release (null) (Allow Release)
Max Mode (string) or Max Mode (null) (Max Mode)

Responses

Request samples

Content type
application/json
{
  • "allow_human_authority": true,
  • "allow_release": true,
  • "max_mode": "off"
}

Response samples

Content type
application/json
{
  • "allow_human_authority": true,
  • "allow_release": true,
  • "deployment": {
    },
  • "max_mode": "string",
  • "modes": [
    ],
  • "policy": {
    }
}

List Approvals

Every approval, normalized. status=decided and all are the audit views.

query Parameters
status
string (Status)
Default: "pending"
Enum: "pending" "decided" "all"
Project Id (string) or Project Id (null) (Project Id)
Kind (string) or Kind (null) (Kind)

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "unscoped_count": 0
}

Get Approval

path Parameters
approval_id
required
string (Approval Id)

Responses

Response samples

Content type
application/json
{
  • "allowed_decisions": [
    ],
  • "base_revision": "string",
  • "created_at": "string",
  • "deadline": "string",
  • "decidable": false,
  • "decision": {
    },
  • "detail": { },
  • "findings": [
    ],
  • "id": "string",
  • "kind": "gate",
  • "not_decidable_reason": "string",
  • "project_id": "string",
  • "reason_held": "string",
  • "reason_required_for": [
    ],
  • "requested_by": "string",
  • "requester": "string",
  • "review": {
    },
  • "rework_targets": [
    ],
  • "route": "dashboard",
  • "status": "pending",
  • "summary": "",
  • "title": "string"
}

Decide Approval

Decide an approval of any kind.

The deciding human is the authenticated principal for every kind. A reviewer or approved_by in the body is ignored and logged.

path Parameters
approval_id
required
string (Approval Id)
Request Body schema: application/json
required
Base Revision (string) or Base Revision (null) (Base Revision)
decision
required
string (Decision)
Enum: "approve" "reject" "retry" "rework"
reason
string (Reason) <= 2000 characters
Default: ""
to_phase
string (To Phase) <= 200 characters
Default: ""
property name*
additional property
any

Responses

Request samples

Content type
application/json
{
  • "base_revision": "string",
  • "decision": "approve",
  • "reason": "",
  • "to_phase": ""
}

Response samples

Content type
application/json
{
  • "allowed_decisions": [
    ],
  • "base_revision": "string",
  • "created_at": "string",
  • "deadline": "string",
  • "decidable": false,
  • "decision": {
    },
  • "detail": { },
  • "findings": [
    ],
  • "id": "string",
  • "kind": "gate",
  • "not_decidable_reason": "string",
  • "project_id": "string",
  • "reason_held": "string",
  • "reason_required_for": [
    ],
  • "requested_by": "string",
  • "requester": "string",
  • "review": {
    },
  • "rework_targets": [
    ],
  • "route": "dashboard",
  • "status": "pending",
  • "summary": "",
  • "title": "string"
}

Decide Inline

Record a decision a person gave in the MCP client's chat.

Gates from flow.await_gate, and any pending item from approvals.decide. The decision goes through the same service.decide as a dashboard click, so a gate that is not ready still cannot be approved, and retry and rework caps still apply. A held tool call is decidable here whichever route asked it; the first decision on it wins.

path Parameters
approval_id
required
string (Approval Id)
Request Body schema: application/json
required
Approver (string) or Approver (null) (Approver)
approver_verified
boolean (Approver Verified)
Default: false
Base Revision (string) or Base Revision (null) (Base Revision)
decision
required
string (Decision)
Enum: "approve" "reject" "retry" "rework"
reason
string (Reason) <= 2000 characters
Default: ""
to_phase
string (To Phase) <= 200 characters
Default: ""

Responses

Request samples

Content type
application/json
{
  • "approver": "string",
  • "approver_verified": false,
  • "base_revision": "string",
  • "decision": "approve",
  • "reason": "",
  • "to_phase": ""
}

Response samples

Content type
application/json
{
  • "allowed_decisions": [
    ],
  • "base_revision": "string",
  • "created_at": "string",
  • "deadline": "string",
  • "decidable": false,
  • "decision": {
    },
  • "detail": { },
  • "findings": [
    ],
  • "id": "string",
  • "kind": "gate",
  • "not_decidable_reason": "string",
  • "project_id": "string",
  • "reason_held": "string",
  • "reason_required_for": [
    ],
  • "requested_by": "string",
  • "requester": "string",
  • "review": {
    },
  • "rework_targets": [
    ],
  • "route": "dashboard",
  • "status": "pending",
  • "summary": "",
  • "title": "string"
}

Get Approval Policy

Who decides this project's gates and held writes right now, and why.

path Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{
  • "account_max_mode": "string",
  • "delegation": {
    },
  • "deployment": {
    },
  • "effective_mode": "string",
  • "limited_by": "string",
  • "max_mode": "string",
  • "modes": [
    ],
  • "policy": {
    }
}

Put Approval Policy

Set who decides this project's gates. A person's decision only.

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
required
Allow Human Authority (boolean) or Allow Human Authority (null) (Allow Human Authority)
Allow Release (boolean) or Allow Release (null) (Allow Release)
Expires In Hours (number) or Expires In Hours (null) (Expires In Hours)
mode
required
string (Mode)
Enum: "off" "advise" "auto_clean" "auto"
reviewer
string (Reviewer)
Default: "server"
Enum: "server" "client" "client_then_server"
reviewer_model
string (Reviewer Model) <= 200 characters
Default: ""

Responses

Request samples

Content type
application/json
{
  • "allow_human_authority": true,
  • "allow_release": true,
  • "expires_in_hours": 1,
  • "mode": "off",
  • "reviewer": "server",
  • "reviewer_model": ""
}

Response samples

Content type
application/json
{
  • "account_max_mode": "string",
  • "delegation": {
    },
  • "deployment": {
    },
  • "effective_mode": "string",
  • "limited_by": "string",
  • "max_mode": "string",
  • "modes": [
    ],
  • "policy": {
    }
}

List Review Tasks

Review tasks, open ones by default, optionally for one project.

query Parameters
Project Id (string) or Project Id (null) (Project Id)
Status (string) or Status (null) (Status)
Default: "open"

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Open Review Task

Open a review task for a gate (the design-flow worker's review step).

Request Body schema: application/json
required
Attempt (integer) or Attempt (null) (Attempt)
object (Brief)
gate
string (Gate)
Default: ""
phase
required
string (Phase) non-empty
Project Id (string) or Project Id (null) (Project Id)
requested_model
string (Requested Model)
Default: ""
run_id
required
string (Run Id) non-empty

Responses

Request samples

Content type
application/json
{
  • "attempt": 0,
  • "brief": { },
  • "gate": "",
  • "phase": "string",
  • "project_id": "string",
  • "requested_model": "",
  • "run_id": "string"
}

Response samples

Content type
application/json
{
  • "attempt": 0,
  • "brief": { },
  • "cancel_reason": "string",
  • "claimed_at": "string",
  • "claimed_by": "string",
  • "created_at": "string",
  • "gate": "",
  • "id": "string",
  • "phase": "string",
  • "project_id": "string",
  • "requested_model": "",
  • "run_id": "string",
  • "status": "open",
  • "submitted_at": "string"
}

Get Review Task

path Parameters
task_id
required
string (Task Id)

Responses

Response samples

Content type
application/json
{
  • "attempt": 0,
  • "brief": { },
  • "cancel_reason": "string",
  • "claimed_at": "string",
  • "claimed_by": "string",
  • "created_at": "string",
  • "gate": "",
  • "id": "string",
  • "phase": "string",
  • "project_id": "string",
  • "requested_model": "",
  • "run_id": "string",
  • "status": "open",
  • "submitted_at": "string"
}

Cancel Review Task

path Parameters
task_id
required
string (Task Id)
Request Body schema: application/json
required
reason
string (Reason)
Default: ""

Responses

Request samples

Content type
application/json
{
  • "reason": ""
}

Response samples

Content type
application/json
{
  • "attempt": 0,
  • "brief": { },
  • "cancel_reason": "string",
  • "claimed_at": "string",
  • "claimed_by": "string",
  • "created_at": "string",
  • "gate": "",
  • "id": "string",
  • "phase": "string",
  • "project_id": "string",
  • "requested_model": "",
  • "run_id": "string",
  • "status": "open",
  • "submitted_at": "string"
}

Claim Review Task

Take a review task. Returns it with its brief.

path Parameters
task_id
required
string (Task Id)
Request Body schema: application/json
required
client
string (Client) <= 200 characters
Default: "client"

Responses

Request samples

Content type
application/json
{
  • "client": "client"
}

Response samples

Content type
application/json
{
  • "attempt": 0,
  • "brief": { },
  • "cancel_reason": "string",
  • "claimed_at": "string",
  • "claimed_by": "string",
  • "created_at": "string",
  • "gate": "",
  • "id": "string",
  • "phase": "string",
  • "project_id": "string",
  • "requested_model": "",
  • "run_id": "string",
  • "status": "open",
  • "submitted_at": "string"
}

Submit Review

Record the client reviewer's review on the gate, then close the task.

path Parameters
task_id
required
string (Task Id)
Request Body schema: application/json
required
client
string (Client) <= 200 characters
Default: "client"
concerns
Array of strings (Concerns)
confidence
number (Confidence) [ 0 .. 1 ]
Default: 0
model
string (Model) <= 200 characters
Default: ""
reasons
string (Reasons) <= 4000 characters
Default: ""
recommendation
required
string (Recommendation)
Enum: "approve" "retry" "rework" "reject"
to_phase
string (To Phase)
Default: ""

Responses

Request samples

Content type
application/json
{
  • "client": "client",
  • "concerns": [
    ],
  • "confidence": 0,
  • "model": "",
  • "reasons": "",
  • "recommendation": "approve",
  • "to_phase": ""
}

Response samples

Content type
application/json
{ }

Post Gate Review

Record a reviewer agent's note on the run's open gate.

Called by the design-flow worker's review step (or on behalf of a client reviewer). The note is stored on the run and shown with the gate; the project's approval policy then decides what, if anything, it does: in off and advise nothing, in auto_clean and auto it may decide the gate as reviewer:<source>:<model>, never as a person.

path Parameters
run_id
required
string (Run Id)
Request Body schema: application/json
required
Applied (string) or Applied (null) (Applied)
Applied Note (string) or Applied Note (null) (Applied Note)
Attempt (integer) or Attempt (null) (Attempt)
concerns
Array of strings (Concerns)
confidence
number (Confidence) [ 0 .. 1 ]
Default: 0
Created At (string) or Created At (null) (Created At)
Error (string) or Error (null) (Error)
gate
string (Gate)
Default: ""
model
string (Model)
Default: ""
model_source
string (Model Source)
Default: ""
phase
required
string (Phase)
reasons
string (Reasons)
Default: ""
recommendation
required
string (Recommendation)
Enum: "approve" "retry" "rework" "reject" "none"
reviewer
string (Reviewer)
Default: ""
same_client
boolean (Same Client)
Default: false
source
string (Source)
Default: "server"
Enum: "server" "client"
to_phase
string (To Phase)
Default: ""

Responses

Request samples

Content type
application/json
{
  • "applied": "string",
  • "applied_note": "string",
  • "attempt": 0,
  • "concerns": [
    ],
  • "confidence": 0,
  • "created_at": "string",
  • "error": "string",
  • "gate": "",
  • "model": "",
  • "model_source": "",
  • "phase": "string",
  • "reasons": "",
  • "recommendation": "approve",
  • "reviewer": "",
  • "same_client": false,
  • "source": "server",
  • "to_phase": ""
}

Response samples

Content type
application/json
{
  • "applied": "string",
  • "applied_note": "string",
  • "attempt": 0,
  • "concerns": [
    ],
  • "confidence": 0,
  • "created_at": "string",
  • "error": "string",
  • "gate": "",
  • "model": "",
  • "model_source": "",
  • "phase": "string",
  • "reasons": "",
  • "recommendation": "approve",
  • "reviewer": "",
  • "same_client": false,
  • "source": "server",
  • "to_phase": ""
}

assistant

List Proposals

List pending design-change proposals, optionally filtered by session/project.

query Parameters
Session Id (string) or Session Id (null) (Session Id)
Project Id (string) or Project Id (null) (Project Id)

Responses

Response samples

Content type
application/json
{
  • "proposals": [
    ],
  • "total": 0
}

Create Proposal

Create a design-change proposal directly from a human.

Same underlying ApprovalWorkflow.propose_change an agent's twin.propose_change MCP call uses — a human (e.g. via a dashboard parameter panel) can submit one just as well, and it goes through the identical review/apply pipeline (decide → apply executor).

Request Body schema: application/json
required
agent_code
string (Agent Code) non-empty
Default: "human"

Code identifying who/what is proposing the change

description
required
string (Description) non-empty

What the change does

object (Diff)

Structured diff (e.g. {'action': 'regenerate_geometry'})

Project Id (string) or Project Id (null) (Project Id)
Session Id (string) or Session Id (null) (Session Id)
work_products_affected
Array of strings <uuid> (Work Products Affected) [ items <uuid > ]

Responses

Request samples

Content type
application/json
{
  • "agent_code": "human",
  • "description": "string",
  • "diff": { },
  • "project_id": "string",
  • "session_id": "1ffd059c-17ea-40a8-8aef-70fd0307db82",
  • "work_products_affected": [
    ]
}

Response samples

Content type
application/json
{
  • "agent_code": "string",
  • "change_id": "53a22efb-209d-4639-a6e7-7072a755c213",
  • "created_at": "2019-08-24T14:15:22Z",
  • "decided_at": "2019-08-24T14:15:22Z",
  • "decision_agent": "string",
  • "decision_on_behalf_of": "string",
  • "decision_reason": "string",
  • "decision_surface": "string",
  • "description": "string",
  • "diff": { },
  • "project_id": "string",
  • "requires_approval": true,
  • "reviewer": "string",
  • "reviewer_verified": false,
  • "session_id": "1ffd059c-17ea-40a8-8aef-70fd0307db82",
  • "status": "pending",
  • "work_products_affected": [
    ]
}

Get Proposal

Return a single design-change proposal.

path Parameters
change_id
required
string <uuid> (Change Id)

Responses

Response samples

Content type
application/json
{
  • "agent_code": "string",
  • "change_id": "53a22efb-209d-4639-a6e7-7072a755c213",
  • "created_at": "2019-08-24T14:15:22Z",
  • "decided_at": "2019-08-24T14:15:22Z",
  • "decision_agent": "string",
  • "decision_on_behalf_of": "string",
  • "decision_reason": "string",
  • "decision_surface": "string",
  • "description": "string",
  • "diff": { },
  • "project_id": "string",
  • "requires_approval": true,
  • "reviewer": "string",
  • "reviewer_verified": false,
  • "session_id": "1ffd059c-17ea-40a8-8aef-70fd0307db82",
  • "status": "pending",
  • "work_products_affected": [
    ]
}

Decide Proposal

Approve or reject a pending design-change proposal.

On approval, run the proposal's diff via the apply executor (if wired) so the change is actually applied to the twin (HITL: propose → approve → apply).

path Parameters
change_id
required
string <uuid> (Change Id)
Request Body schema: application/json
required
change_id
required
string <uuid> (Change Id)

UUID of the proposal to decide on

decision
required
string (ApprovalDecisionType)
Enum: "approve" "reject"

Approve or reject

reason
required
string (Reason) non-empty

Human-written justification for the decision

reviewer
required
string (Reviewer) non-empty

Identifier of the human reviewer

Responses

Request samples

Content type
application/json
{
  • "change_id": "53a22efb-209d-4639-a6e7-7072a755c213",
  • "decision": "approve",
  • "reason": "string",
  • "reviewer": "string"
}

Response samples

Content type
application/json
{
  • "agent_code": "string",
  • "change_id": "53a22efb-209d-4639-a6e7-7072a755c213",
  • "created_at": "2019-08-24T14:15:22Z",
  • "decided_at": "2019-08-24T14:15:22Z",
  • "decision_agent": "string",
  • "decision_on_behalf_of": "string",
  • "decision_reason": "string",
  • "decision_surface": "string",
  • "description": "string",
  • "diff": { },
  • "project_id": "string",
  • "requires_approval": true,
  • "reviewer": "string",
  • "reviewer_verified": false,
  • "session_id": "1ffd059c-17ea-40a8-8aef-70fd0307db82",
  • "status": "pending",
  • "work_products_affected": [
    ]
}

Submit Request

Submit a request to an agent via the orchestrator.

Looks up the workflow definition for body.action, creates a WorkflowRun, and dispatches it through the Scheduler.

Request Body schema: application/json
required
action
required
string (Action) non-empty

Agent action to perform (e.g. 'validate_stress', 'run_drc')

object (Parameters)

Action-specific parameters

project_id
required
string (Project Id) non-empty

Project this request belongs to

prompt
string (Prompt)
Default: ""

Free-text prompt or description for generative actions (e.g. generate_cad)

session_id
string <uuid> (Session Id)

Session ID for grouping related requests

Target Id (string) or Target Id (null) (Target Id)

UUID of the target work_product (optional for generative actions)

Responses

Request samples

Content type
application/json
{
  • "action": "string",
  • "parameters": { },
  • "project_id": "string",
  • "prompt": "",
  • "session_id": "1ffd059c-17ea-40a8-8aef-70fd0307db82",
  • "target_id": "d3bcdc92-4191-401b-ad0c-42056c6efab9"
}

Response samples

Content type
application/json
{
  • "errors": [
    ],
  • "request_id": "266ea41d-adf5-480b-af50-15b940c2b846",
  • "result": { },
  • "status": "string"
}

Get Run Status

Poll the status of a workflow run.

path Parameters
run_id
required
string (Run Id)

Responses

Response samples

Content type
application/json
{
  • "completed_at": "string",
  • "run_id": "string",
  • "status": "string",
  • "steps": { }
}

Session Events

SSE endpoint — streams real-time events for session_id.

path Parameters
session_id
required
string <uuid> (Session Id)

Responses

Response samples

Content type
application/json
null

bom

List Bom

List BOM components, optionally scoped to a project and/or filtered by category (case-insensitive exact match against BOMItem.specifications.category, e.g. category=fastener for a fastener list, gap G-H2).

Empty ({components: [], total: 0}) when the project has no BOM — not a 404, so the dashboard renders a clean empty state.

query Parameters
Project Id (string) or Project Id (null) (Project Id)
Category (string) or Category (null) (Category)

Responses

Response samples

Content type
application/json
{
  • "components": [
    ],
  • "total": 0
}

List Hierarchical Bom

Derive the hierarchical BOM (EBOM) from every "product"-kind HierarchyNode's CONTAINS tree in a project.

Empty (not an error) when the project has no product hierarchy yet (the hierarchy tools haven't been used for it) -- matches the flat BOM's own convention.

query Parameters
Project Id (string) or Project Id (null) (Project Id)

Responses

Response samples

Content type
application/json
{
  • "lines": [
    ],
  • "total": 0
}

Get Bom Risk

query Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{ }

bringup

List Bringup Checklists

query Parameters
work_product_id
required
string (Work Product Id)

Responses

Response samples

Content type
application/json
{
  • "entries": [
    ]
}

Create Bringup Checklist

Request Body schema: application/json
required
Project Id (string) or Project Id (null) (Project Id)
work_product_id
required
string (Work Product Id)

Responses

Request samples

Content type
application/json
{
  • "project_id": "string",
  • "work_product_id": "string"
}

Response samples

Content type
application/json
{
  • "node_id": "string",
  • "statement": "string",
  • "steps": [
    ]
}

cad-export

Download Export File

path Parameters
export_id
required
string (Export Id)
filename
required
string (Filename)

Responses

Response samples

Content type
application/json
null

Generate Ros2 Launch

Request Body schema: application/json
required
default_urdf_path
required
string (Default Urdf Path) non-empty

Default 'urdf_path' launch argument — e.g. a just-exported URDF's download_url.

include_joint_state_publisher_gui
boolean (Include Joint State Publisher Gui)
Default: true
include_rviz
boolean (Include Rviz)
Default: true
robot_name
required
string (Robot Name) non-empty

Responses

Request samples

Content type
application/json
{
  • "default_urdf_path": "string",
  • "include_joint_state_publisher_gui": true,
  • "include_rviz": true,
  • "robot_name": "string"
}

Response samples

Content type
application/json
{
  • "default_urdf_path": "string",
  • "output_file": {
    },
  • "robot_name": "string"
}

Export Sdf

Request Body schema: application/json
required
Density Kg M3 (number) or Density Kg M3 (null) (Density Kg M3)
link_name
string (Link Name)
Default: "link"
Material (string) or Material (null) (Material)
mesh_format
string (Mesh Format)
Default: "stl"
Enum: "stl" "obj"
model_name
string (Model Name)
Default: "model"
node_id
required
string (Node Id) non-empty

Twin work-product node id (STEP file).

static
boolean (Static)
Default: false
World Name (string) or World Name (null) (World Name)

Responses

Request samples

Content type
application/json
{
  • "density_kg_m3": 0,
  • "link_name": "link",
  • "material": "string",
  • "mesh_format": "stl",
  • "model_name": "model",
  • "node_id": "string",
  • "static": false,
  • "world_name": "string"
}

Response samples

Content type
application/json
{
  • "center_of_mass_m": {
    },
  • "density_kg_m3": 0,
  • "inertia_kgm2": {
    },
  • "link_name": "string",
  • "mass_kg": 0,
  • "mesh_file": {
    },
  • "model_name": "string",
  • "output_file": {
    }
}

Export Sdf Assembly

Request Body schema: application/json
required
Array of objects (Joints)
mesh_format
string (Mesh Format)
Default: "stl"
Enum: "stl" "obj"
model_name
string (Model Name)
Default: "model"
required
Array of objects (Parts) non-empty
persist
boolean (Persist)
Default: true

Commit this export as a robot_description Twin work product (default on). Set false to keep the earlier throwaway-only behavior.

Persist Name (string) or Persist Name (null) (Persist Name)

Work-product display name (default: ' robot description').

Project Id (string) or Project Id (null) (Project Id)

Project to link the persisted work product to.

static
boolean (Static)
Default: false
Update Node Id (string) or Update Node Id (null) (Update Node Id)

An existing robot_description node's id — when given, this export replaces that node's content and records a new version instead of creating a new node.

World Name (string) or World Name (null) (World Name)

Responses

Request samples

Content type
application/json
{
  • "joints": [
    ],
  • "mesh_format": "stl",
  • "model_name": "model",
  • "parts": [
    ],
  • "persist": true,
  • "persist_name": "string",
  • "project_id": "string",
  • "static": false,
  • "update_node_id": "string",
  • "world_name": "string"
}

Response samples

Content type
application/json
{
  • "joint_names": [
    ],
  • "joints": [ ],
  • "link_names": [
    ],
  • "mesh_files": [
    ],
  • "model_name": "string",
  • "output_file": {
    },
  • "robot_description_node_id": "string"
}

Get Session Summary

path Parameters
session_id
required
string (Session Id)

Responses

Response samples

Content type
application/json
{
  • "name": "string",
  • "object_count": 0,
  • "objects": [
    ],
  • "session_id": "string"
}

Get Session Joints

path Parameters
session_id
required
string (Session Id)

Responses

Response samples

Content type
application/json
{
  • "joints": [
    ]
}

Export Urdf

Request Body schema: application/json
required
Density Kg M3 (number) or Density Kg M3 (null) (Density Kg M3)
link_name
string (Link Name)
Default: "base_link"
Material (string) or Material (null) (Material)
mesh_format
string (Mesh Format)
Default: "stl"
Enum: "stl" "obj"
mesh_uri_prefix
string (Mesh Uri Prefix)
Default: ""
node_id
required
string (Node Id) non-empty

Twin work-product node id (STEP file).

xacro
boolean (Xacro)
Default: false

Responses

Request samples

Content type
application/json
{
  • "density_kg_m3": 0,
  • "link_name": "base_link",
  • "material": "string",
  • "mesh_format": "stl",
  • "mesh_uri_prefix": "",
  • "node_id": "string",
  • "xacro": false
}

Response samples

Content type
application/json
{
  • "center_of_mass_m": {
    },
  • "density_kg_m3": 0,
  • "inertia_kgm2": {
    },
  • "link_name": "string",
  • "mass_kg": 0,
  • "mesh_file": {
    },
  • "output_file": {
    }
}

Export Urdf Assembly

Request Body schema: application/json
required
Array of objects (Joints)
Mesh Angular Tolerance (number) or Mesh Angular Tolerance (null) (Mesh Angular Tolerance)

Max angle (radians) between adjacent facet normals. Omit for OCCT's default.

mesh_format
string (Mesh Format)
Default: "stl"
Enum: "stl" "obj"
Mesh Tolerance (number) or Mesh Tolerance (null) (Mesh Tolerance)

Max linear deviation (mm) between the tessellated mesh and the true CAD surface, applied to every part — smaller means more triangles on curves/fillets and less visible faceting. Omit to keep OCCT's default.

mesh_uri_prefix
string (Mesh Uri Prefix)
Default: ""
required
Array of objects (Parts) non-empty
persist
boolean (Persist)
Default: true

Commit this export as a robot_description Twin work product (default on). Set false to keep the earlier throwaway-only behavior.

Persist Name (string) or Persist Name (null) (Persist Name)

Work-product display name (default: ' robot description').

Project Id (string) or Project Id (null) (Project Id)

Project to link the persisted work product to.

robot_name
string (Robot Name)
Default: "robot"
Update Node Id (string) or Update Node Id (null) (Update Node Id)

An existing robot_description node's id — when given, this export replaces that node's content and records a new version instead of creating a new node.

xacro
boolean (Xacro)
Default: false

Responses

Request samples

Content type
application/json
{
  • "joints": [
    ],
  • "mesh_angular_tolerance": 1,
  • "mesh_format": "stl",
  • "mesh_tolerance": 1,
  • "mesh_uri_prefix": "",
  • "parts": [
    ],
  • "persist": true,
  • "persist_name": "string",
  • "project_id": "string",
  • "robot_name": "robot",
  • "update_node_id": "string",
  • "xacro": false
}

Response samples

Content type
application/json
{
  • "joint_names": [
    ],
  • "joints": [ ],
  • "link_names": [
    ],
  • "mesh_files": [
    ],
  • "output_file": {
    },
  • "robot_description_node_id": "string",
  • "robot_name": "string"
}

Export Usd

Request Body schema: application/json
required
Density Kg M3 (number) or Density Kg M3 (null) (Density Kg M3)
Material (string) or Material (null) (Material)
node_id
required
string (Node Id) non-empty

Twin work-product node id (STEP file).

prim_name
string (Prim Name)
Default: "model"

Responses

Request samples

Content type
application/json
{
  • "density_kg_m3": 0,
  • "material": "string",
  • "node_id": "string",
  • "prim_name": "model"
}

Response samples

Content type
application/json
{
  • "center_of_mass_m": {
    },
  • "density_kg_m3": 0,
  • "inertia_kgm2": {
    },
  • "mass_kg": 0,
  • "mesh_file": {
    },
  • "output_file": {
    },
  • "prim_name": "string",
  • "triangle_count": 0
}

Export Usd Assembly

Request Body schema: application/json
required
Array of objects (Joints)
required
Array of objects (Parts) non-empty
persist
boolean (Persist)
Default: true

Commit this export as a robot_description Twin work product (default on). Set false to keep the earlier throwaway-only behavior.

Persist Name (string) or Persist Name (null) (Persist Name)

Work-product display name (default: ' robot description').

Project Id (string) or Project Id (null) (Project Id)

Project to link the persisted work product to.

robot_name
string (Robot Name)
Default: "robot"
Update Node Id (string) or Update Node Id (null) (Update Node Id)

An existing robot_description node's id — when given, this export replaces that node's content and records a new version instead of creating a new node.

Responses

Request samples

Content type
application/json
{
  • "joints": [
    ],
  • "parts": [
    ],
  • "persist": true,
  • "persist_name": "string",
  • "project_id": "string",
  • "robot_name": "robot",
  • "update_node_id": "string"
}

Response samples

Content type
application/json
{
  • "joint_names": [
    ],
  • "joints": [ ],
  • "link_names": [
    ],
  • "mesh_files": [
    ],
  • "output_file": {
    },
  • "robot_description_node_id": "string",
  • "robot_name": "string"
}

cad

Create Assembly

Author + commit a multi-part assembly from a declarative spec.

Request Body schema: application/json
required
name
required
string (Name) non-empty

Assembly name.

required
Array of objects (Parts) non-empty

Parts to author + assemble.

Project Id (string) or Project Id (null) (Project Id)

Project to scope the cad_model to.

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "parts": [
    ],
  • "project_id": "string"
}

Response samples

Content type
application/json
{
  • "content_hash": "string",
  • "minio_object_key": "string",
  • "model_url": "string",
  • "node_id": "string",
  • "part_count": 0
}

Compile Assembly

Compile a description into a spec and check it — but do NOT build (dry run).

Returns the spec for review plus any geometric-feasibility warnings, so the caller can tweak it (or save it and run /assembly) before committing.

Request Body schema: application/json
required
description
required
string (Description) non-empty

Plain-English description.

Model (string) or Model (null) (Model)

LLM model override.

Name (string) or Name (null) (Name)

Override the assembly name.

Provider (string) or Provider (null) (Provider)

LLM provider override.

Responses

Request samples

Content type
application/json
{
  • "description": "string",
  • "model": "string",
  • "name": "string",
  • "provider": "string"
}

Response samples

Content type
application/json
{
  • "buildable": true,
  • "errors": [
    ],
  • "spec": {
    }
}

Create Assembly From Text

Compile a plain-English description into a spec (LLM), then build it.

The LLM only produces the small declarative spec — the geometry itself is authored deterministically by the same builder as /assembly, so the output is reproducible and the spec is returned for review.

Request Body schema: application/json
required
description
required
string (Description) non-empty

Plain-English description of the part/assembly.

Model (string) or Model (null) (Model)

LLM model override for translation.

Name (string) or Name (null) (Name)

Override the assembly name (else the model chooses one).

Project Id (string) or Project Id (null) (Project Id)

Project to scope the cad_model to.

Provider (string) or Provider (null) (Provider)

LLM provider override for translation.

Responses

Request samples

Content type
application/json
{
  • "description": "string",
  • "model": "string",
  • "name": "string",
  • "project_id": "string",
  • "provider": "string"
}

Response samples

Content type
application/json
{
  • "content_hash": "string",
  • "minio_object_key": "string",
  • "model_url": "string",
  • "node_id": "string",
  • "part_count": 0,
  • "spec": {
    }
}

chat

List Channels

Return all available chat channels.

Responses

Response samples

Content type
application/json
{
  • "channels": [
    ]
}

List Threads

List threads with optional filtering and pagination.

query Parameters
Channel Id (string) or Channel Id (null) (Channel Id)

Filter by channel ID

Scope Kind (string) or Scope Kind (null) (Scope Kind)

Filter by scope kind

Entity Id (string) or Entity Id (null) (Entity Id)

Filter by scope entity ID

include_archived
boolean (Include Archived)
Default: false

Include archived threads

page
integer (Page) >= 1
Default: 1

Page number (1-indexed)

per_page
integer (Per Page) [ 1 .. 100 ]
Default: 20

Results per page

Responses

Response samples

Content type
application/json
{
  • "page": 0,
  • "per_page": 0,
  • "threads": [
    ],
  • "total": 0
}

Create Thread

Create a new thread, optionally with an initial message.

Request Body schema: application/json
required
Initial Message (string) or Initial Message (null) (Initial Message)

If provided, a first message is created automatically

scope_entity_id
required
string (Scope Entity Id)

ID of the scoped entity

scope_kind
required
string (Scope Kind)

Scope type (session, approval, bom-entry, ...)

Title (string) or Title (null) (Title)

Optional thread title

Responses

Request samples

Content type
application/json
{
  • "initial_message": "string",
  • "scope_entity_id": "string",
  • "scope_kind": "string",
  • "title": "string"
}

Response samples

Content type
application/json
{
  • "archived": true,
  • "channel_id": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "id": "string",
  • "last_message_at": "2019-08-24T14:15:22Z",
  • "messages": [
    ],
  • "scope_entity_id": "string",
  • "scope_kind": "string",
  • "title": "string"
}

Get Thread

Return a single thread with all its messages.

path Parameters
thread_id
required
string (Thread Id)

Responses

Response samples

Content type
application/json
{
  • "archived": true,
  • "channel_id": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "id": "string",
  • "last_message_at": "2019-08-24T14:15:22Z",
  • "messages": [
    ],
  • "scope_entity_id": "string",
  • "scope_kind": "string",
  • "title": "string"
}

Send Message

Append a message to an existing thread.

After persisting the user message, the handler routes it to the appropriate domain agent (when an LLM is configured). The agent's response is inserted into the thread automatically.

path Parameters
thread_id
required
string (Thread Id)
Request Body schema: application/json
required
actor_id
required
string (Actor Id)

ID of the actor sending the message

actor_kind
required
string (Actor Kind)

Actor type: user | agent | system

Client Turn Id (string) or Client Turn Id (null) (Client Turn Id)

Client-chosen turn id; the turn's operation is chat:

content
required
string (Content) non-empty

Message content

Create Stage (string) or Create Stage (null) (Create Stage)

Create view stage of a design turn. When set, the gateway uses that stage's tool set and ignores tools.

Graph Ref Label (string) or Graph Ref Label (null) (Graph Ref Label)

Digital-twin ref label

Graph Ref Node (string) or Graph Ref Node (null) (Graph Ref Node)

Digital-twin node reference

Graph Ref Type (string) or Graph Ref Type (null) (Graph Ref Type)

Digital-twin ref type

Model (string) or Model (null) (Model)

Override model for this turn

Provider (string) or Provider (null) (Provider)

Override provider id for this turn

Array of Tools (strings) or Tools (null) (Tools)

Enabled MCP tool ids for this turn (None = all available)

Responses

Request samples

Content type
application/json
{
  • "actor_id": "string",
  • "actor_kind": "string",
  • "client_turn_id": "string",
  • "content": "string",
  • "create_stage": "imagine",
  • "graph_ref_label": "string",
  • "graph_ref_node": "string",
  • "graph_ref_type": "string",
  • "model": "string",
  • "provider": "string",
  • "tools": [
    ]
}

Response samples

Content type
application/json
{
  • "actor_id": "string",
  • "actor_kind": "string",
  • "blocks": [
    ],
  • "classification": {
    },
  • "content": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "graph_ref_label": "string",
  • "graph_ref_node": "string",
  • "graph_ref_type": "string",
  • "id": "string",
  • "operation_id": "string",
  • "status": "string",
  • "thread_id": "string",
  • "updated_at": "2019-08-24T14:15:22Z"
}

Update Thread Scope

Rescope an EXISTING thread in place.

Unlike POST /threads, this preserves the conversation — the same thread continues, and its next turn's project brief (if scoped to a project) reflects the new scope. The agent-callable chat.set_project_scope native tool goes through the same apply_thread_scope helper, so a human hitting this endpoint and the agent switching scope mid-turn behave identically and both broadcast the same scope.changed SSE event.

path Parameters
thread_id
required
string (Thread Id)
Request Body schema: application/json
required
scope_entity_id
required
string (Scope Entity Id)

ID of the scoped entity

scope_kind
required
string (Scope Kind)

Scope type (session, approval, project, ...)

Responses

Request samples

Content type
application/json
{
  • "scope_entity_id": "string",
  • "scope_kind": "string"
}

Response samples

Content type
application/json
{
  • "archived": true,
  • "channel_id": "string",
  • "created_at": "2019-08-24T14:15:22Z",
  • "id": "string",
  • "last_message_at": "2019-08-24T14:15:22Z",
  • "messages": [
    ],
  • "scope_entity_id": "string",
  • "scope_kind": "string",
  • "title": "string"
}

Stream Thread Events

Stream real-time events for a chat thread via Server-Sent Events.

The client receives events as they occur:

  • message.created -- a new message was added
  • agent.typing -- an agent is processing
  • context.stats -- the turn's context-window snapshot: tokens used vs. the model's window, broken down by system prompt / project brief / history / tool schemas / message, with included-vs-available counts (harness turns)
  • agent.step -- one reasoning/tool-call step in the agent's trace
  • message.delta -- one token/chunk of the streaming answer
  • agent.done -- an agent finished
  • error -- an error occurred

The connection stays open until the client disconnects or the server closes the stream.

path Parameters
thread_id
required
string (Thread Id)

Responses

Response samples

Content type
application/json
null

chat-tool-approvals

List Pending Approvals

Tool-call approvals: the ones awaiting a decision, or every one.

Overdue holds are expired first, so nothing listed as pending is a call whose waiter has already given up. status=all is the audit view: every entry whichever route answered it, each carrying its route, outcome and approver.

project_id scopes the queue. Unscoped before, so a reviewer working on one project saw every project's held writes in one list -- and a held write names a tool and a caller, not a product, so there was no way to tell from the row which one it belonged to. Approvals whose tool call carried no project are counted rather than dropped: an approval that quietly disappears is the one nobody answers.

query Parameters
status
string (Status)
Default: "pending"
Enum: "pending" "all"
Project Id (string) or Project Id (null) (Project Id)

Responses

Response samples

Content type
application/json
{
  • "runs": [
    ],
  • "unscoped_count": 0
}

Hold Tool Call

Create a held approval and return it.

This exists because the approval store is process-level (an InMemoryRunStore in this process), and the MCP sidecar is a different process. A sidecar used to hold calls only in its own memory, where the dashboard — served from here — would never see them. So the sidecar parks them here instead, and there is exactly one ledger rather than one per process.

A second store would have been the more obvious fix and the wrong one: two queues means a reviewer clearing one while the other fills, and no page that shows both.

With an approval_key the hold is a durable approval: a live one with the same key is returned rather than a second opened.

requested_by follows :func:~api_gateway.auth.approver.requester_from_request.

Request Body schema: application/json
required
Approval Key (string) or Approval Key (null) (Approval Key)
object (Arguments)
Arguments Hash (string) or Arguments Hash (null) (Arguments Hash)
caller
string (Caller)
Default: "untrusted"
Client (string) or Client (null) (Client)
Project (string) or Project (null) (Project)
reason
required
string (Reason)
Requested By (string) or Requested By (null) (Requested By)
route
string (Route)
Default: "dashboard"
Enum: "dashboard" "elicitation"
Session Id (string) or Session Id (null) (Session Id)
source
string (Source)
Default: "mcp"
Timeout Seconds (number) or Timeout Seconds (null) (Timeout Seconds)
tool
required
string (Tool)

Responses

Request samples

Content type
application/json
{
  • "approval_key": "string",
  • "arguments": { },
  • "arguments_hash": "string",
  • "caller": "untrusted",
  • "client": "string",
  • "project": "string",
  • "reason": "string",
  • "requested_by": "string",
  • "route": "dashboard",
  • "session_id": "string",
  • "source": "mcp",
  • "timeout_seconds": 1,
  • "tool": "string"
}

Response samples

Content type
application/json
{
  • "approval_deadline": 0,
  • "approval_reason": "string",
  • "approved_by": "string",
  • "approver_verified": false,
  • "created_at": 0,
  • "engine": "string",
  • "error": "string",
  • "flow_content_hash": "string",
  • "flow_version_id": "string",
  • "history": [
    ],
  • "id": "string",
  • "project_id": "string",
  • "request": { },
  • "result": { },
  • "status": "string",
  • "updated_at": 0,
  • "usage": { }
}

Get Live Hold

The live durable hold for a key: pending, or decided and not yet used.

path Parameters
approval_key
required
string (Approval Key)

Responses

Response samples

Content type
application/json
{
  • "approval_deadline": 0,
  • "approval_reason": "string",
  • "approved_by": "string",
  • "approver_verified": false,
  • "created_at": 0,
  • "engine": "string",
  • "error": "string",
  • "flow_content_hash": "string",
  • "flow_version_id": "string",
  • "history": [
    ],
  • "id": "string",
  • "project_id": "string",
  • "request": { },
  • "result": { },
  • "status": "string",
  • "updated_at": 0,
  • "usage": { }
}

Record Delegated Approval

Record a human-authority call an agent decided for a person.

The MCP server calls this instead of holding the call on a client prompt when the owner delegates human authority and the agent named itself and the person. A claim of approver_verified stands only when this request is authenticated, as for an inline answer.

Request Body schema: application/json
required
agent
required
string (Agent) [ 1 .. 100 ] characters
Approval Key (string) or Approval Key (null) (Approval Key)
approver
required
string (Approver) [ 1 .. 200 ] characters
approver_verified
boolean (Approver Verified)
Default: false
object (Arguments)
Arguments Hash (string) or Arguments Hash (null) (Arguments Hash)
caller
string (Caller)
Default: "untrusted"
Client (string) or Client (null) (Client)
on_behalf_of
required
string (On Behalf Of) [ 1 .. 200 ] characters
Project (string) or Project (null) (Project)
Requested By (string) or Requested By (null) (Requested By)
Session Id (string) or Session Id (null) (Session Id)
tool
required
string (Tool)

Responses

Request samples

Content type
application/json
{
  • "agent": "string",
  • "approval_key": "string",
  • "approver": "string",
  • "approver_verified": false,
  • "arguments": { },
  • "arguments_hash": "string",
  • "caller": "untrusted",
  • "client": "string",
  • "on_behalf_of": "string",
  • "project": "string",
  • "requested_by": "string",
  • "session_id": "string",
  • "tool": "string"
}

Response samples

Content type
application/json
{
  • "approval_deadline": 0,
  • "approval_reason": "string",
  • "approved_by": "string",
  • "approver_verified": false,
  • "created_at": 0,
  • "engine": "string",
  • "error": "string",
  • "flow_content_hash": "string",
  • "flow_version_id": "string",
  • "history": [
    ],
  • "id": "string",
  • "project_id": "string",
  • "request": { },
  • "result": { },
  • "status": "string",
  • "updated_at": 0,
  • "usage": { }
}

Approve By Policy

Approve a held call the project's policy covers, or say it does not.

A phase.claim on an open task of the project's own client-mode run under an auto policy is covered (see :mod:api_gateway.approvals.claim_policy), approved by policy:auto:<who set it>. Any other held write is decided by :mod:api_gateway.approvals.tool_write_policy, approved by policy:<mode>:<project>. A covered call is written to the ledger like any other, on route policy; anything else records nothing and the caller holds it for a person as before.

requested_by follows :func:~api_gateway.auth.approver.requester_from_request.

Request Body schema: application/json
required
Approval Key (string) or Approval Key (null) (Approval Key)
object (Arguments)
Arguments Hash (string) or Arguments Hash (null) (Arguments Hash)
caller
string (Caller)
Default: "untrusted"
Client (string) or Client (null) (Client)
Project (string) or Project (null) (Project)
Requested By (string) or Requested By (null) (Requested By)
Session Id (string) or Session Id (null) (Session Id)
tool
required
string (Tool)

Responses

Request samples

Content type
application/json
{
  • "approval_key": "string",
  • "arguments": { },
  • "arguments_hash": "string",
  • "caller": "untrusted",
  • "client": "string",
  • "project": "string",
  • "requested_by": "string",
  • "session_id": "string",
  • "tool": "string"
}

Response samples

Content type
application/json
{
  • "approved": true,
  • "approved_by": "string",
  • "cap_held": false,
  • "id": "string",
  • "mode": "string",
  • "reason": "string"
}

Get Approval

path Parameters
run_id
required
string (Run Id)

Responses

Response samples

Content type
application/json
{
  • "approval_deadline": 0,
  • "approval_reason": "string",
  • "approved_by": "string",
  • "approver_verified": false,
  • "created_at": 0,
  • "engine": "string",
  • "error": "string",
  • "flow_content_hash": "string",
  • "flow_version_id": "string",
  • "history": [
    ],
  • "id": "string",
  • "project_id": "string",
  • "request": { },
  • "result": { },
  • "status": "string",
  • "updated_at": 0,
  • "usage": { }
}

Submit Tool Approval

Record the decision, attributed to whoever made this request.

The identity comes from the request, not the body. A client cannot nominate the approver, which is the whole point: some tools write the approver's name down as their result.

path Parameters
run_id
required
string (Run Id)
Request Body schema: application/json
required
Base Revision (string) or Base Revision (null) (Base Revision)
decision
required
string (Decision)
Enum: "approve" "reject" "retry" "rework"
reason
string (Reason) <= 2000 characters
Default: ""
to_phase
string (To Phase) <= 200 characters
Default: ""

Responses

Request samples

Content type
application/json
{
  • "base_revision": "string",
  • "decision": "approve",
  • "reason": "",
  • "to_phase": ""
}

Response samples

Content type
application/json
{
  • "approval_deadline": 0,
  • "approval_reason": "string",
  • "approved_by": "string",
  • "approver_verified": false,
  • "created_at": 0,
  • "engine": "string",
  • "error": "string",
  • "flow_content_hash": "string",
  • "flow_version_id": "string",
  • "history": [
    ],
  • "id": "string",
  • "project_id": "string",
  • "request": { },
  • "result": { },
  • "status": "string",
  • "updated_at": 0,
  • "usage": { }
}

Consume Tool Approval

Mark a decided durable hold used: one approval runs one call.

path Parameters
run_id
required
string (Run Id)
Request Body schema: application/json
required
retry
boolean (Retry)
Default: false

Responses

Request samples

Content type
application/json
{
  • "retry": false
}

Response samples

Content type
application/json
{
  • "approval_deadline": 0,
  • "approval_reason": "string",
  • "approved_by": "string",
  • "approver_verified": false,
  • "created_at": 0,
  • "engine": "string",
  • "error": "string",
  • "flow_content_hash": "string",
  • "flow_version_id": "string",
  • "history": [
    ],
  • "id": "string",
  • "project_id": "string",
  • "request": { },
  • "result": { },
  • "status": "string",
  • "updated_at": 0,
  • "usage": { }
}

Resolve Unanswered Hold

The waiting side stopped waiting: close the hold so nobody answers it.

Idempotent. A hold already timed_out or canceled comes back as it is with 200, so a retry after a lost response is harmless. A hold a human already decided is 409: the waiter must read the decision back rather than overwrite it, because an approval that landed in the last instant is still an approval.

path Parameters
run_id
required
string (Run Id)
Request Body schema: application/json
required
Approver (string) or Approver (null) (Approver)
approver_verified
boolean (Approver Verified)
Default: false
outcome
required
string (Outcome)
Enum: "timed_out" "canceled" "approved" "rejected"
Reason (string) or Reason (null) (Reason)

Responses

Request samples

Content type
application/json
{
  • "approver": "string",
  • "approver_verified": false,
  • "outcome": "timed_out",
  • "reason": "string"
}

Response samples

Content type
application/json
{
  • "approval_deadline": 0,
  • "approval_reason": "string",
  • "approved_by": "string",
  • "approver_verified": false,
  • "created_at": 0,
  • "engine": "string",
  • "error": "string",
  • "flow_content_hash": "string",
  • "flow_version_id": "string",
  • "history": [
    ],
  • "id": "string",
  • "project_id": "string",
  • "request": { },
  • "result": { },
  • "status": "string",
  • "updated_at": 0,
  • "usage": { }
}

client-tasks

List Tasks

Tasks, open ones by default. status=all lists every state.

query Parameters
Status (string) or Status (null) (Status)
Default: "open"
Project Id (string) or Project Id (null) (Project Id)
Run Id (string) or Run Id (null) (Run Id)

Responses

Response samples

Content type
application/json
{ }

Open Task

Post a phase for the client. Idempotent on run:phase:attempt[.r<cycle>].

Request Body schema: application/json
required
attempt
integer (Attempt)
Default: 1
object (Brief)
phaseId
required
string (Phaseid)
Projectid (string) or Projectid (null) (Projectid)
reworkCycle
integer (Reworkcycle) >= 0
Default: 0
runId
required
string (Runid)

Responses

Request samples

Content type
application/json
{
  • "attempt": 1,
  • "brief": { },
  • "phaseId": "string",
  • "projectId": "string",
  • "reworkCycle": 0,
  • "runId": "string"
}

Response samples

Content type
application/json
{ }

Get Task

path Parameters
task_id
required
string (Task Id)

Responses

Response samples

Content type
application/json
{ }

Cancel Task

Withdraw a task nobody will wait on any more (the worker's activity ended).

path Parameters
task_id
required
string (Task Id)
Request Body schema: application/json
required
reason
string (Reason)
Default: ""

Responses

Request samples

Content type
application/json
{
  • "reason": ""
}

Response samples

Content type
application/json
{ }

Claim Task

Take a task and get its full brief.

path Parameters
task_id
required
string (Task Id)
Request Body schema: application/json
required
client
string (Client)
Default: ""

Responses

Request samples

Content type
application/json
{
  • "client": ""
}

Response samples

Content type
application/json
{ }

Submit Task

Hand the phase back. The run's gate then checks the twin as usual.

path Parameters
task_id
required
string (Task Id)
Request Body schema: application/json
required
artifacts
Array of strings (Artifacts)
client
string (Client)
Default: ""
outcome
string (Outcome)
Default: "complete"
Enum: "complete" "incomplete"
summary
required
string (Summary)

Responses

Request samples

Content type
application/json
{
  • "artifacts": [
    ],
  • "client": "",
  • "outcome": "complete",
  • "summary": "string"
}

Response samples

Content type
application/json
{ }

compliance

Get Checklist

Generate a compliance checklist for the given project and markets.

Markets are provided as a comma-separated query parameter, e.g. ?markets=UKCA,CE,FCC.

path Parameters
project_id
required
string (Project Id)
query Parameters
markets
string (Markets)
Default: "UKCA,CE"

Comma-separated regime codes

Responses

Response samples

Content type
application/json
{
  • "coverage_percent": 0,
  • "evidenced_items": 0,
  • "items": [
    ],
  • "project_id": "string",
  • "target_markets": [
    ],
  • "total_items": 0
}

Get Coverage

Get evidence coverage statistics for a project.

path Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{
  • "coverage_percent": 0,
  • "evidenced_items": 0,
  • "project_id": "string",
  • "total_items": 0
}

Link Evidence

Link a piece of evidence to a compliance checklist item.

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
required
checklist_item_id
required
string (Checklist Item Id)

Checklist item ID to link to

description
string (Description)
Default: ""

Evidence description

evidence_type
required
string (EvidenceType)
Enum: "TEST_REPORT" "DECLARATION" "CERTIFICATE" "TECHNICAL_FILE" "RISK_ASSESSMENT"

Type of evidence

title
required
string (Title)

Evidence title

Work Product Id (string) or Work Product Id (null) (Work Product Id)

WorkProduct UUID

Responses

Request samples

Content type
application/json
{
  • "checklist_item_id": "string",
  • "description": "",
  • "evidence_type": "TEST_REPORT",
  • "title": "string",
  • "work_product_id": "224aa6cf-be77-49ce-9c79-b3b38dfd40f4"
}

Response samples

Content type
application/json
{
  • "checklist_item_id": "string",
  • "description": "string",
  • "evidence_type": "string",
  • "id": "string",
  • "status": "string",
  • "title": "string",
  • "uploaded_at": "string"
}

Get Evidence

Retrieve all evidence records for a checklist item.

path Parameters
project_id
required
string (Project Id)
item_id
required
string (Item Id)

Responses

Response samples

Content type
application/json
[
  • {
    }
]

component-selection

Select Component

Request Body schema: application/json
required
required
Array of objects (Candidates)
category
required
string (Category)
Projectid (string) or Projectid (null) (Projectid)
purchaseUnit
required
string (Purchaseunit)
quantity
integer (Quantity)
Default: 1
rationale
required
string (Rationale)
required
object (Requiredspecs)
Array of Requirementids (strings) or Requirementids (null) (Requirementids)
selectedMpn
required
string (Selectedmpn)
title
required
string (Title)

Responses

Request samples

Content type
application/json
{
  • "candidates": [
    ],
  • "category": "string",
  • "projectId": "string",
  • "purchaseUnit": "string",
  • "quantity": 1,
  • "rationale": "string",
  • "requiredSpecs": {
    },
  • "requirementIds": [
    ],
  • "selectedMpn": "string",
  • "title": "string"
}

Response samples

Content type
application/json
{ }

constraint

Synthesize Constraint

Turn a drag delta into a parametric constraint, and — when the dragged group maps to a live FreeCAD session object (session_id + obj_id) — bind it into the model so Apply re-parameterizes and re-solves.

Without a session/object it stays a suggestion-only stub. Binding is best-effort: an adapter error leaves the suggestion intact with bound=False and a binding_error.

Request Body schema: application/json
required
required
object (DeltaTransform)

Delta of a dragged group: translation (mm), or, additively, a single-axis rotation or scale. Exactly one kind is populated per request, matching whichever gizmo mode produced it on the client.

group_name
required
string (Group Name) non-empty
Obj Id (string) or Obj Id (null) (Obj Id)
Property Path (string) or Property Path (null) (Property Path)
Session Id (string) or Session Id (null) (Session Id)

Responses

Request samples

Content type
application/json
{
  • "delta": {
    },
  • "group_name": "string",
  • "obj_id": "string",
  • "property_path": "string",
  • "session_id": "string"
}

Response samples

Content type
application/json
{
  • "binding_error": "string",
  • "bound": false,
  • "conflict_reason": "string",
  • "constraint": {
    },
  • "expression": "string",
  • "status": "ok",
  • "suggestion": "string"
}

controls

Get Repeatability Estimate

query Parameters
work_product_id
required
string (Work Product Id)
requirement_mm
number (Requirement Mm)
Default: 0.5
End Effector Part (string) or End Effector Part (null) (End Effector Part)

Responses

Response samples

Content type
application/json
{
  • "contributions": [
    ],
  • "passes": true,
  • "requirement_mm": 0,
  • "target_part": "string",
  • "warnings": [
    ],
  • "work_product_id": "string",
  • "worst_case_repeatability_mm": 0
}

convert

Upload And Convert

Upload a STEP/IGES file and convert to GLB.

Returns the conversion result with a URL to the GLB file and metadata. Results are cached by content hash — re-uploading the same file is instant.

query Parameters
quality
string (Quality) ^(preview|standard|fine)$
Default: "standard"
Request Body schema: multipart/form-data
required
file
required
string <application/octet-stream> (File)

STEP or IGES CAD file

Responses

Response samples

Content type
application/json
{
  • "cached": true,
  • "glb_url": "string",
  • "hash": "string",
  • "metadata": { }
}

Get Conversion

Retrieve a cached conversion result by content hash.

path Parameters
file_hash
required
string (File Hash)
query Parameters
quality
string (Quality) ^(preview|standard|fine)$
Default: "standard"

Responses

Response samples

Content type
application/json
{
  • "cached": true,
  • "glb_url": "string",
  • "hash": "string",
  • "metadata": { }
}

Get Glb

Download the converted GLB file.

path Parameters
file_hash
required
string (File Hash)
query Parameters
quality
string (Quality) ^(preview|standard|fine)$
Default: "standard"

Responses

Response samples

Content type
application/json
null

Get Metadata

Retrieve conversion metadata (part tree, stats, materials).

path Parameters
file_hash
required
string (File Hash)
query Parameters
quality
string (Quality) ^(preview|standard|fine)$
Default: "standard"

Responses

Response samples

Content type
application/json
{ }

create

Delete Creation

Remove the Create records. Refused while a build is released or being made.

path Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{
  • "detail": [
    ]
}

Get Creation

The creation's records and where it stands.

path Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{
  • "brief_keys": [
    ],
  • "creation": {
    },
  • "readiness": {
    }
}

Put Brief

Replace the brief: items, measurements, assumptions and references.

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
required
required
object (Brief)
Expected Version (integer) or Expected Version (null) (Expected Version)

The version this edit was made against; 409 if it has moved on

summary
string (Summary) <= 500 characters
Default: ""

One line for the history

Responses

Request samples

Content type
application/json
{
  • "brief": {
    },
  • "expected_version": 0,
  • "summary": ""
}

Response samples

Content type
application/json
{
  • "brief_keys": [
    ],
  • "creation": {
    },
  • "readiness": {
    }
}

Create Build

Prepare a manufacturing attempt of one exact revision.

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
required
object (Estimates)
Expected Version (integer) or Expected Version (null) (Expected Version)

The version this edit was made against; 409 if it has moved on

Machine Id (string) or Machine Id (null) (Machine Id)
Material (string) or Material (null) (Material)
Process (string) or Process (null) (Process)
required
object (Revision)

The exact design a build makes: a work product and, when known, its version.

object (Settings)
summary
string (Summary) <= 500 characters
Default: ""

One line for the history

Responses

Request samples

Content type
application/json
{
  • "estimates": {
    },
  • "expected_version": 0,
  • "machine_id": "string",
  • "material": "string",
  • "process": "string",
  • "revision": {
    },
  • "settings": {
    },
  • "summary": ""
}

Response samples

Content type
application/json
{
  • "brief_keys": [
    ],
  • "creation": {
    },
  • "readiness": {
    }
}

Edit Build

Change a prepared build. A released one keeps its instructions: prepare a new one.

path Parameters
project_id
required
string (Project Id)
build_id
required
string (Build Id)
Request Body schema: application/json
required
Estimates (object) or Estimates (null) (Estimates)
Expected Version (integer) or Expected Version (null) (Expected Version)

The version this edit was made against; 409 if it has moved on

Machine Id (string) or Machine Id (null) (Machine Id)
Material (string) or Material (null) (Material)
Process (string) or Process (null) (Process)
Revision (object) or null
Settings (object) or Settings (null) (Settings)
summary
string (Summary) <= 500 characters
Default: ""

One line for the history

Responses

Request samples

Content type
application/json
{
  • "estimates": {
    },
  • "expected_version": 0,
  • "machine_id": "string",
  • "material": "string",
  • "process": "string",
  • "revision": {
    },
  • "settings": {
    },
  • "summary": ""
}

Response samples

Content type
application/json
{
  • "brief_keys": [
    ],
  • "creation": {
    },
  • "readiness": {
    }
}

Decide Build

A person accepts or rejects a finished build. Completion is not acceptance.

path Parameters
project_id
required
string (Project Id)
build_id
required
string (Build Id)
Request Body schema: application/json
required
decision
required
string (Decision) ^(accept|reject)$
Expected Version (integer) or Expected Version (null) (Expected Version)

The version this edit was made against; 409 if it has moved on

limitations
Array of strings (Limitations)
reason
string (Reason) <= 2000 characters
Default: ""
summary
string (Summary) <= 500 characters
Default: ""

One line for the history

Responses

Request samples

Content type
application/json
{
  • "decision": "string",
  • "expected_version": 0,
  • "limitations": [
    ],
  • "reason": "",
  • "summary": ""
}

Response samples

Content type
application/json
{
  • "brief_keys": [
    ],
  • "creation": {
    },
  • "readiness": {
    }
}

Add Evidence

Attach a photo, measurement, telemetry reading or note to a build.

path Parameters
project_id
required
string (Project Id)
build_id
required
string (Build Id)
Request Body schema: application/json
required
Check Id (string) or Check Id (null) (Check Id)
Expected Version (integer) or Expected Version (null) (Expected Version)

The version this edit was made against; 409 if it has moved on

kind
required
string (Kind)
Enum: "photo" "measurement" "telemetry" "note"
note
string (Note) <= 2000 characters
Default: ""
summary
string (Summary) <= 500 characters
Default: ""

One line for the history

Unit (string) or Unit (null) (Unit)
Upload Id (string) or Upload Id (null) (Upload Id)
Value (number) or Value (null) (Value)
Work Product Id (string) or Work Product Id (null) (Work Product Id)

Responses

Request samples

Content type
application/json
{
  • "check_id": "string",
  • "expected_version": 0,
  • "kind": "photo",
  • "note": "",
  • "summary": "",
  • "unit": "string",
  • "upload_id": "string",
  • "value": 0,
  • "work_product_id": "string"
}

Response samples

Content type
application/json
{
  • "brief_keys": [
    ],
  • "creation": {
    },
  • "readiness": {
    }
}

Release Build

A person releases this exact revision for making; starting a machine is separate.

path Parameters
project_id
required
string (Project Id)
build_id
required
string (Build Id)
Request Body schema: application/json
required
Expected Version (integer) or Expected Version (null) (Expected Version)

The version this edit was made against; 409 if it has moved on

summary
string (Summary) <= 500 characters
Default: ""

One line for the history

Responses

Request samples

Content type
application/json
{
  • "expected_version": 0,
  • "summary": ""
}

Response samples

Content type
application/json
{
  • "brief_keys": [
    ],
  • "creation": {
    },
  • "readiness": {
    }
}

Set Result

Record one check's outcome. A check a person reviews cannot be passed by an agent.

path Parameters
project_id
required
string (Project Id)
build_id
required
string (Build Id)
check_id
required
string (Check Id)
Request Body schema: application/json
required
Confidence (number) or Confidence (null) (Confidence)
evidence_ids
Array of strings (Evidence Ids)
Expected Version (integer) or Expected Version (null) (Expected Version)

The version this edit was made against; 409 if it has moved on

note
string (Note) <= 2000 characters
Default: ""
status
required
string (Status)
Enum: "passed" "failed" "inconclusive" "awaiting_review"
summary
string (Summary) <= 500 characters
Default: ""

One line for the history

Responses

Request samples

Content type
application/json
{
  • "confidence": 0,
  • "evidence_ids": [
    ],
  • "expected_version": 0,
  • "note": "",
  • "status": "passed",
  • "summary": ""
}

Response samples

Content type
application/json
{
  • "brief_keys": [
    ],
  • "creation": {
    },
  • "readiness": {
    }
}

Set Build Status

Record that a released build started, finished, failed or was cancelled.

path Parameters
project_id
required
string (Project Id)
build_id
required
string (Build Id)
Request Body schema: application/json
required
Expected Version (integer) or Expected Version (null) (Expected Version)

The version this edit was made against; 409 if it has moved on

note
string (Note) <= 1000 characters
Default: ""
status
required
string (Status)
Enum: "preparing" "released" "making" "completed" "failed" "cancelled"
summary
string (Summary) <= 500 characters
Default: ""

One line for the history

Responses

Request samples

Content type
application/json
{
  • "expected_version": 0,
  • "note": "",
  • "status": "preparing",
  • "summary": ""
}

Response samples

Content type
application/json
{
  • "brief_keys": [
    ],
  • "creation": {
    },
  • "readiness": {
    }
}

Duplicate Creation

A new project with this creation's brief, route and inspection plan; no builds.

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
required
name
required
string (Name) [ 1 .. 200 ] characters

Responses

Request samples

Content type
application/json
{
  • "name": "string"
}

Response samples

Content type
application/json
{
  • "name": "string",
  • "project_id": "string"
}

Put Inspection Plan

Replace the inspection plan. A released build keeps the checks it was released with.

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
required
Array of objects (Checks) <= 100 items
Expected Version (integer) or Expected Version (null) (Expected Version)

The version this edit was made against; 409 if it has moved on

summary
string (Summary) <= 500 characters
Default: ""

One line for the history

Responses

Request samples

Content type
application/json
{
  • "checks": [
    ],
  • "expected_version": 0,
  • "summary": ""
}

Response samples

Content type
application/json
{
  • "brief_keys": [
    ],
  • "creation": {
    },
  • "readiness": {
    }
}

Get Reference Conflicts

Authoritative references that state different values for one parameter.

path Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{ }

Put Reference

Set a reference's role, associations, inclusion or protected features.

Each change is a version in the reference's history. Two authoritative references that now state different values are raised for review.

path Parameters
project_id
required
string (Project Id)
wp_id
required
string (Wp Id)
Request Body schema: application/json
required
Active (boolean) or Active (null) (Active)

Include it in the next instruction

Array of Associations (objects) or Associations (null) (Associations)
Expected Version (integer) or Expected Version (null) (Expected Version)

The version this edit was made against; 409 if it has moved on

Array of Protected Features (strings) or Protected Features (null) (Protected Features)
Role (string) or Role (null) (Role)
summary
string (Summary) <= 500 characters
Default: ""

One line for the history

Responses

Request samples

Content type
application/json
{
  • "active": true,
  • "associations": [
    ],
  • "expected_version": 0,
  • "protected_features": [
    ],
  • "role": "inspiration",
  • "summary": ""
}

Response samples

Content type
application/json
{
  • "brief_keys": [
    ],
  • "conflicts": [
    ],
  • "creation": {
    },
  • "readiness": {
    },
  • "reference": {
    }
}

Extract Reference Facts

Extract candidate facts from a reference, each with a citation (REF-005).

A specification or manufacturing rule's explicit values are stated; everything read off an image, or from a non-authoritative text, is estimated. Nothing is ever measured. Conflicts between authoritative references are raised for review (REF-006).

path Parameters
project_id
required
string (Project Id)
wp_id
required
string (Wp Id)
Request Body schema: application/json
required
Expected Version (integer) or Expected Version (null) (Expected Version)

The version this edit was made against; 409 if it has moved on

note
string (Note) <= 500 characters
Default: ""

What the person says the reference shows

summary
string (Summary) <= 500 characters
Default: ""

One line for the history

Responses

Request samples

Content type
application/json
{
  • "expected_version": 0,
  • "note": "",
  • "summary": ""
}

Response samples

Content type
application/json
{
  • "brief_keys": [
    ],
  • "conflicts": [
    ],
  • "creation": {
    },
  • "readiness": {
    },
  • "reference": {
    }
}

Put Route

Choose how it will be made: at home, in a workshop or by a manufacturer.

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
required
Expected Version (integer) or Expected Version (null) (Expected Version)

The version this edit was made against; 409 if it has moved on

required
object (RouteChoice)
summary
string (Summary) <= 500 characters
Default: ""

One line for the history

Responses

Request samples

Content type
application/json
{
  • "expected_version": 0,
  • "route": {
    },
  • "summary": ""
}

Response samples

Content type
application/json
{
  • "brief_keys": [
    ],
  • "creation": {
    },
  • "readiness": {
    }
}

decisions

design-flows

List Design Flows

Every launchable flow, as the gateway will actually run it.

Responses

Response samples

Content type
application/json
{
  • "defaultFlowId": "string",
  • "flows": [
    ]
}

List Fragments

Every domain fragment a proposal can compose in with add_fragment.

Registered before /{flow_id} so it is not read as a flow id.

Responses

Response samples

Content type
application/json
{
  • "fragments": [
    ]
}

Compile Flow Intent

Compile an intent into its structured model. Stores nothing, starts nothing.

Deterministic: no model call, and no value the person did not state. Use it before proposing to see what was understood and what is still unknown.

Request Body schema: application/json
required
Budget (string) or Budget (null) (Budget)
CallerBody (object) or null
intent
required
string (Intent)
Loadsanduse (string) or Loadsanduse (null) (Loadsanduse)
ManufacturingContextBody (object) or null
Model (string) or Model (null) (Model)
Array of Operations (objects) or Operations (null) (Operations)
Projectid (string) or Projectid (null) (Projectid)
Provider (string) or Provider (null) (Provider)
requirements
Array of strings (Requirements)
TargetMaturity (string) or null
Template (string) or Template (null) (Template)

Responses

Request samples

Content type
application/json
{
  • "budget": "string",
  • "caller": {
    },
  • "intent": "string",
  • "loadsAndUse": "string",
  • "manufacturingContext": {
    },
  • "model": "string",
  • "operations": [
    ],
  • "projectId": "string",
  • "provider": "string",
  • "requirements": [
    ],
  • "targetMaturity": "concept",
  • "template": "string"
}

Response samples

Content type
application/json
{
  • "intent": { },
  • "missingInputs": [
    ]
}

Propose Flow

Tailor a template to a project's intent, and hold it for a human.

The response carries an approvalId, not a run. The rule is that nothing starts before approval, and the way to make that true is for the endpoint that generates a flow to have no ability to start one.

If the manufacturing route, target maturity or loads are missing, the answer is 200 with status: "needs_input" and the questions to answer -- no flow, no stored version, no held approval. A generator that guesses those produces a flow that reads as tailored and is not.

Request Body schema: application/json
required
Budget (string) or Budget (null) (Budget)
CallerBody (object) or null
intent
required
string (Intent)
Loadsanduse (string) or Loadsanduse (null) (Loadsanduse)
ManufacturingContextBody (object) or null
Model (string) or Model (null) (Model)
Array of Operations (objects) or Operations (null) (Operations)
Projectid (string) or Projectid (null) (Projectid)
Provider (string) or Provider (null) (Provider)
requirements
Array of strings (Requirements)
TargetMaturity (string) or null
Template (string) or Template (null) (Template)

Responses

Request samples

Content type
application/json
{
  • "budget": "string",
  • "caller": {
    },
  • "intent": "string",
  • "loadsAndUse": "string",
  • "manufacturingContext": {
    },
  • "model": "string",
  • "operations": [
    ],
  • "projectId": "string",
  • "provider": "string",
  • "requirements": [
    ],
  • "targetMaturity": "concept",
  • "template": "string"
}

Response samples

Content type
application/json
{
  • "intent": "string",
  • "message": "string",
  • "notes": [
    ],
  • "questions": [
    ],
  • "status": "needs_input"
}

Validate Edited Flow

Check an edit without saving it.

The editor calls this as the canvas changes, so a person sees a rule break while they are looking at the thing that broke it -- rather than at save, by which point they have made five more changes and have to work out which one the message is about.

Request Body schema: application/json
required
baseTemplateId
required
string (Basetemplateid)
Name (string) or Name (null) (Name)
required
Array of objects (Phases)

Responses

Request samples

Content type
application/json
{
  • "baseTemplateId": "string",
  • "name": "string",
  • "phases": [
    ]
}

Response samples

Content type
application/json
{
  • "valid": true,
  • "violations": [
    ]
}

Save Edited Flow

Save an edit as a new version, held for approval.

Never mutates an existing version. A run pins the version it started on, so a version changing underneath would make a completed run's provenance a lie -- and an approval that can be edited afterwards is not an approval.

Request Body schema: application/json
required
baseTemplateId
required
string (Basetemplateid)
Name (string) or Name (null) (Name)
required
Array of objects (Phases)

Responses

Request samples

Content type
application/json
{
  • "baseTemplateId": "string",
  • "name": "string",
  • "phases": [
    ]
}

Response samples

Content type
application/json
{
  • "approvalId": "string",
  • "baseTemplateId": "string",
  • "baseVersion": "string",
  • "changes": [
    ],
  • "context": "",
  • "flow": {
    },
  • "origin": "string",
  • "status": "string",
  • "valid": true,
  • "versionId": "string",
  • "violations": [
    ]
}

Get Flow Version

path Parameters
version_id
required
string (Version Id)

Responses

Response samples

Content type
application/json
{
  • "approvalId": "string",
  • "baseTemplateId": "string",
  • "baseVersion": "string",
  • "changes": [
    ],
  • "context": "",
  • "flow": {
    },
  • "origin": "string",
  • "status": "string",
  • "valid": true,
  • "versionId": "string",
  • "violations": [
    ]
}

Version Capabilities

The same assessment for a saved (tailored or edited) flow version.

path Parameters
version_id
required
string (Version Id)
query Parameters
Profile (string) or Profile (null) (Profile)

Responses

Response samples

Content type
application/json
{
  • "flowId": "string",
  • "profile": "string",
  • "report": { },
  • "versionId": "string"
}

Get Design Flow

One flow, for the run detail view and the plan canvas.

path Parameters
flow_id
required
string (Flow Id)

Responses

Response samples

Content type
application/json
{
  • "contentHash": "",
  • "description": "string",
  • "graph": { },
  • "id": "string",
  • "isDefault": false,
  • "label": "string",
  • "name": "string",
  • "phases": [
    ],
  • "valid": true,
  • "version": "string",
  • "violations": [
    ]
}

Flow Capabilities

Can this template be run with the tools that exist and answer right now?

profile narrows coverage to the tools a client connected with that MCP profile is served.

path Parameters
flow_id
required
string (Flow Id)
query Parameters
Profile (string) or Profile (null) (Profile)

Responses

Response samples

Content type
application/json
{
  • "flowId": "string",
  • "profile": "string",
  • "report": { },
  • "versionId": "string"
}

design-loop

Start Design Loop

Request Body schema: application/json
required
deflectionLimitMm
required
number (Deflectionlimitmm)
loadN
required
number (Loadn)
material
string (Material)
Default: "aluminium_6061_t6"
maxIterations
integer (Maxiterations)
Default: 60
Projectid (string) or Projectid (null) (Projectid)
Array of Requirementids (strings) or Requirementids (null) (Requirementids)
sfLimit
number (Sflimit)
Default: 2
Wallmaxmm (number) or Wallmaxmm (null) (Wallmaxmm)
wallMinMm
number (Wallminmm)
Default: 0.5
workProductId
required
string (Workproductid)

Responses

Request samples

Content type
application/json
{
  • "deflectionLimitMm": 0,
  • "loadN": 0,
  • "material": "aluminium_6061_t6",
  • "maxIterations": 60,
  • "projectId": "string",
  • "requirementIds": [
    ],
  • "sfLimit": 2,
  • "wallMaxMm": 0,
  • "wallMinMm": 0.5,
  • "workProductId": "string"
}

Response samples

Content type
application/json
{ }

Get Design Loop

path Parameters
loop_id
required
string (Loop Id)

Responses

Response samples

Content type
application/json
{ }

Approve Design Loop

path Parameters
loop_id
required
string (Loop Id)
Request Body schema: application/json
required
approvedBy
required
string (Approvedby)

Responses

Request samples

Content type
application/json
{
  • "approvedBy": "string"
}

Response samples

Content type
application/json
{ }

dfm

Run Overhang Check

Request Body schema: application/json
required
Array of Build Axis (numbers) or Build Axis (null) (Build Axis)
mesh_file
required
string (Mesh File)
Project Id (string) or Project Id (null) (Project Id)
Threshold Deg (number) or Threshold Deg (null) (Threshold Deg)
work_product_id
required
string (Work Product Id)

Responses

Request samples

Content type
application/json
{
  • "build_axis": [
    ],
  • "mesh_file": "string",
  • "project_id": "string",
  • "threshold_deg": 0,
  • "work_product_id": "string"
}

Response samples

Content type
application/json
{
  • "build_axis": [
    ],
  • "dfm_pass": true,
  • "evidence_node_id": "string",
  • "faces": [
    ],
  • "flagged_count": 0,
  • "threshold_deg": 0,
  • "total_faces": 0
}

evals

Get Evals

Responses

Response samples

Content type
application/json
{ }

examples

List Examples

The golden-path examples this gateway can seed.

Responses

Response samples

Content type
application/json
{ }

Desk Lamp Manifest

What the golden path has produced so far, and what is still missing.

path Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{ }

Seed Desk Lamp Route

Create the desk lamp project, or complete it. Never overwrites.

Responses

Response samples

Content type
application/json
{ }

features

Generate Feature

Request Body schema: application/json
required
adapter
string (Adapter)
Default: "freecad"
commit
boolean (Commit)
Default: true
required
object (Feature)
material
string (Material)
Default: "aluminium_6061_t6"
name
required
string (Name)
Projectid (string) or Projectid (null) (Projectid)
Workproductid (string) or Workproductid (null) (Workproductid)

Responses

Request samples

Content type
application/json
{
  • "adapter": "freecad",
  • "commit": true,
  • "feature": { },
  • "material": "aluminium_6061_t6",
  • "name": "string",
  • "projectId": "string",
  • "workProductId": "string"
}

Response samples

Content type
application/json
{ }

Get Feature Diff

path Parameters
work_product_id
required
string (Work Product Id)

Responses

Response samples

Content type
application/json
{
  • "added": { },
  • "changed": { },
  • "currentWorkProductId": "string",
  • "hasPreviousVersion": true,
  • "previousWorkProductId": "string",
  • "removed": { }
}

files

List Files

The files a work product holds, primary first.

path Parameters
work_product_id
required
string (Work Product Id)

Responses

Response samples

Content type
application/json
{ }

Create Download Link

A signed link to the file: url for an object-store link, else path.

path Parameters
work_product_id
required
string (Work Product Id)
Request Body schema: application/json
required
Lifetime S (integer) or Lifetime S (null) (Lifetime S)

Seconds; default grows with the size

path
string (Path)
Default: ""

A named file; empty for the primary file

Responses

Request samples

Content type
application/json
{
  • "lifetime_s": 0,
  • "path": ""
}

Response samples

Content type
application/json
{ }

Read File

A file's content inline: text, or base64. Too large is refused with its size.

path Parameters
work_product_id
required
string (Work Product Id)
query Parameters
path
string (Path)
Default: ""

A named file; empty for the primary file

max_bytes
integer (Max Bytes) >= 1
Default: 2097152

Responses

Response samples

Content type
application/json
{ }

Upload Through Link

Add files to an open upload (the page, or curl -F files=@part.step).

path Parameters
token
required
string (Token)
Request Body schema: multipart/form-data
required
files
required
Array of strings (Files)

Files, or zips of folders

Responses

Response samples

Content type
application/json
{
  • "agent": "string",
  • "created_at": "string",
  • "decision": {
    },
  • "description": "",
  • "expires_at": "string",
  • "files": [
    ],
  • "id": "string",
  • "project_id": "string",
  • "requested_by": "string",
  • "source": "inline",
  • "status": "open"
}

Finish Upload

Close the upload; it then waits in /v1/approvals for a person.

path Parameters
token
required
string (Token)

Responses

Response samples

Content type
application/json
{ }

firmware

Create Firmware Scaffold

Request Body schema: application/json
required
Project Id (string) or Project Id (null) (Project Id)
work_product_id
required
string (Work Product Id)

Responses

Request samples

Content type
application/json
{
  • "project_id": "string",
  • "work_product_id": "string"
}

Response samples

Content type
application/json
{
  • "firmware_source_node_id": "string",
  • "joints": [
    ],
  • "pinmap_node_id": "string"
}

harness

Set Credential

Store a provider credential so the runtime uses it (no restart).

api_key → the gateway auth store; oauth → the Codex auth.json the codex adapter reads. Validates the provider against the registry.

header Parameters
X-Metaforge-Admin (string) or X-Metaforge-Admin (null) (X-Metaforge-Admin)
Request Body schema: application/json
required
Api Key (string) or Api Key (null) (Api Key)

Raw API key (method=api_key).

Base Url (string) or Base Url (null) (Base Url)

Optional base_url override.

method
string (Method)
Default: "api_key"

'api_key' or 'oauth'.

provider
required
string (Provider)

Registry provider id (e.g. openai, openai-codex).

Tokens (object) or Tokens (null) (Tokens)

OAuth token blob in auth.json shape (method=oauth).

Responses

Request samples

Content type
application/json
{
  • "api_key": "string",
  • "base_url": "string",
  • "method": "api_key",
  • "provider": "string",
  • "tokens": { }
}

Response samples

Content type
application/json
{
  • "method": "string",
  • "ok": true,
  • "provider": "string"
}

Delete Credential

Forget a provider's stored API key (and clear the selection if it pointed there).

path Parameters
provider
required
string (Provider)
header Parameters
X-Metaforge-Admin (string) or X-Metaforge-Admin (null) (X-Metaforge-Admin)

Responses

Response samples

Content type
application/json
{
  • "method": "string",
  • "ok": true,
  • "provider": "string"
}

List Models

Models for a provider. OpenAI-compatible + configured → live-fetched; else empty.

query Parameters
provider
required
string (Provider)

Provider id

Responses

Response samples

Content type
application/json
{
  • "models": [
    ],
  • "provider": "string",
  • "source": "string"
}

List Providers

List registered providers (configured ones first) + the active selection.

Responses

Response samples

Content type
application/json
{
  • "active_model": "string",
  • "active_provider": "string",
  • "fallback_count": 0,
  • "last_fallback": {
    },
  • "providers": [
    ]
}

Get Routing

Which provider and model each role is routed to.

A role absent from roles is served by the durable harness selection (default_provider / default_model).

query Parameters
Project Id (string) or Project Id (null) (Project Id)

Responses

Response samples

Content type
application/json
{
  • "default_model": "string",
  • "default_provider": "string",
  • "effective_for_project": {
    },
  • "problems": [
    ],
  • "projects": {
    },
  • "roles": {
    }
}

Set Selection

Set the durable active provider/model (overrides the METAFORGE_LLM_* env).

header Parameters
X-Metaforge-Admin (string) or X-Metaforge-Admin (null) (X-Metaforge-Admin)
Request Body schema: application/json
required
Model (string) or Model (null) (Model)

Optional model id.

provider
required
string (Provider)

Registry provider id to make active.

Responses

Request samples

Content type
application/json
{
  • "model": "string",
  • "provider": "string"
}

Response samples

Content type
application/json
{
  • "method": "string",
  • "ok": true,
  • "provider": "string"
}

List Tools

MCP tools/connectors reachable via the gateway's bridge (empty if none wired).

Responses

Response samples

Content type
application/json
[
  • {
    }
]

knowledge

Ingest Document

Ingest a document (markdown / plain text) via the L1 KnowledgeService.

Backs the forge ingest <path> CLI. Heading-aware chunking, dedup, and citation metadata are handled by the underlying provider — the route is a thin pass-through.

Request Body schema: application/json
required
content
required
string (Content) non-empty
knowledgeType
required
string (KnowledgeType)
Enum: "design_decision" "component" "failure" "constraint" "session"

Categories of knowledge stored in the knowledge layer.

object (Metadata)
Projectid (string) or Projectid (null) (Projectid)
sourcePath
required
string (Sourcepath) non-empty
Sourceworkproductid (string) or Sourceworkproductid (null) (Sourceworkproductid)

Responses

Request samples

Content type
application/json
{
  • "content": "string",
  • "knowledgeType": "design_decision",
  • "metadata": { },
  • "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",
  • "sourcePath": "string",
  • "sourceWorkProductId": "c83b8d43-b0ff-4427-847b-87295ebb87a8"
}

Response samples

Content type
application/json
{
  • "chunksIndexed": 0,
  • "entryIds": [
    ],
  • "sourcePath": "string"
}

Ingest Knowledge

Manually ingest a knowledge entry.

Routes through KnowledgeService when available so the chunk pipeline, dedup, and citation-field round-trip apply consistently with /documents and /search.

Request Body schema: application/json
required
content
required
string (Content) non-empty
knowledgeType
required
string (KnowledgeType)
Enum: "design_decision" "component" "failure" "constraint" "session"

Categories of knowledge stored in the knowledge layer.

object (Metadata)
Projectid (string) or Projectid (null) (Projectid)
Sourcepath (string) or Sourcepath (null) (Sourcepath)
Sourceworkproductid (string) or Sourceworkproductid (null) (Sourceworkproductid)

Responses

Request samples

Content type
application/json
{
  • "content": "string",
  • "knowledgeType": "design_decision",
  • "metadata": { },
  • "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",
  • "sourcePath": "string",
  • "sourceWorkProductId": "c83b8d43-b0ff-4427-847b-87295ebb87a8"
}

Response samples

Content type
application/json
{
  • "embedded": true,
  • "entryId": "09a8b554-45ca-4bab-a638-265db4b3e828"
}

Search Knowledge

Semantic search over indexed knowledge.

Routes through KnowledgeService when available so it shares the same backend as /ingest and /documents.

project_id mirrors the projectId filter already on /sources and /ingest: without it, KnowledgeService.search falls back to the default tenant, so a project-scoped ingest was never searchable from a project-scoped UI — the search box silently returned whatever unrelated content happened to live under default instead of the active project's own sources.

query Parameters
query
required
string (Query) non-empty

Search query

KnowledgeType (string) or Knowledgetype (null) (Knowledgetype)

Filter by knowledge type

Projectid (string) or Projectid (null) (Projectid)

Scope search to a project UUID

limit
integer (Limit) [ 1 .. 50 ]
Default: 5

Max results

Responses

Response samples

Content type
application/json
{
  • "query": "string",
  • "results": [
    ],
  • "totalFound": 0
}

List Knowledge Sources

List ingested knowledge sources via KnowledgeService.list_sources().

Backs the forge sources list CLI. Mirrors the schema surfaced by the metaforge://knowledge/sources MCP resource.

query Parameters
KnowledgeType (string) or Knowledgetype (null) (Knowledgetype)

Filter by knowledge type

Projectid (string) or Projectid (null) (Projectid)

Filter by project UUID

limit
integer (Limit) [ 1 .. 1000 ]
Default: 100

Max sources to return

offset
integer (Offset) >= 0
Default: 0

Pagination offset

Responses

Response samples

Content type
application/json
{
  • "sources": [
    ],
  • "total": 0
}

Delete Knowledge Source

Delete every chunk for a source via KnowledgeService.delete_by_source().

Backs the forge sources delete CLI. Returns the chunk count the backend removed; 0 when the source was already absent — callers treat that as a no-op rather than an error.

path Parameters
source_path
required
string (Source Path)

Responses

Response samples

Content type
application/json
{
  • "deletedChunks": 0,
  • "sourcePath": "string"
}

Get Knowledge Source

Per-source detail — looks up by exact source_path match.

No dedicated single-source accessor exists in the KnowledgeService contract, so we list and find — fine for CLI usage where the user has already picked a known path. Returns 404 when the source isn't registered.

path Parameters
source_path
required
string (Source Path)
query Parameters
Projectid (string) or Projectid (null) (Projectid)

Filter by project UUID

Responses

Response samples

Content type
application/json
{
  • "chunks": [
    ],
  • "fragmentCount": 0,
  • "indexedAt": "2019-08-24T14:15:22Z",
  • "knowledgeType": "string",
  • "metadata": { },
  • "sourcePath": "string"
}

Get Knowledge Entry

Retrieve a single knowledge entry by ID.

path Parameters
entry_id
required
string <uuid> (Entry Id)

Responses

Response samples

Content type
application/json
{
  • "chunkIndex": 0,
  • "content": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "knowledgeType": "design_decision",
  • "metadata": { },
  • "sourcePath": "string",
  • "sourceWorkProductId": "c83b8d43-b0ff-4427-847b-87295ebb87a8",
  • "totalChunks": 0
}

library

List Appearances

Appearances: colour, material and finish; family is the finish.

query Parameters
Family (string) or Family (null) (Family)

Responses

Response samples

Content type
application/json
{ }

Register Appearance

Request Body schema: application/json
required
property name*
additional property
any

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
{ }

Get Appearance

path Parameters
ref
required
string (Ref)

Responses

Response samples

Content type
application/json
{ }

Update Appearance

path Parameters
ref
required
string (Ref)
Request Body schema: application/json
required
by
string (By)
Default: ""
object (Changes)

Responses

Request samples

Content type
application/json
{
  • "by": "",
  • "changes": { }
}

Response samples

Content type
application/json
{ }

List Components

Mechanical components: standard and purchased parts.

query Parameters
Family (string) or Family (null) (Family)

Responses

Response samples

Content type
application/json
{ }

Register Component

Request Body schema: application/json
required
property name*
additional property
any

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
{ }

Standard Part

A standard part built from its standard's table; stores nothing.

query Parameters
family
required
string (Family)
size
required
string (Size)
Length Mm (number) or Length Mm (null) (Length Mm)

Responses

Response samples

Content type
application/json
{ }

Get Component

path Parameters
ref
required
string (Ref)

Responses

Response samples

Content type
application/json
{ }

Update Component

path Parameters
ref
required
string (Ref)
Request Body schema: application/json
required
by
string (By)
Default: ""
object (Changes)

Responses

Request samples

Content type
application/json
{
  • "by": "",
  • "changes": { }
}

Response samples

Content type
application/json
{ }

Component Mesh

The entry's attached maker model as a coloured, Y-up, centred mesh (2026-11-12).

For drawing in the studio and the library viewer only. A model whose licence MetaForge does not accept is shown for internal work, never handed to an engineering tool.

path Parameters
ref
required
string (Ref)

Responses

Response samples

Content type
application/json
{ }

Discover Machine

Read a printer's controller into a proposed instance. Registers nothing.

Request Body schema: application/json
required
required
object (Connection)
name
string (Name)
Default: ""

Responses

Request samples

Content type
application/json
{
  • "connection": { },
  • "name": ""
}

Response samples

Content type
application/json
{ }

Get Engine Asset

The drawing engine (authored.js) and its assets, for drawing an entry's form code.

The same files the Imagine studio loads; served here so a page that shows the library needs no project.

path Parameters
name
required
string (Name)

Responses

Response samples

Content type
application/json
{
  • "detail": [
    ]
}

List Ergonomic Limits

Ergonomic design limits; family is the feature kind they bound.

query Parameters
Family (string) or Family (null) (Family)

Responses

Response samples

Content type
application/json
{ }

Register Ergonomic Limit

Request Body schema: application/json
required
property name*
additional property
any

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
{ }

Get Ergonomic Limit

path Parameters
ref
required
string (Ref)

Responses

Response samples

Content type
application/json
{ }

Update Ergonomic Limit

path Parameters
ref
required
string (Ref)
Request Body schema: application/json
required
by
string (By)
Default: ""
object (Changes)

Responses

Request samples

Content type
application/json
{
  • "by": "",
  • "changes": { }
}

Response samples

Content type
application/json
{ }

Export Library

Every current catalog entry and machine as one JSON document, to keep or move.

history=true adds each entry's versions. Nothing secret is in it: a machine's connection names only the environment variable that holds its credential.

query Parameters
history
boolean (History)
Default: false

Responses

Response samples

Content type
application/json
{ }

Import Library

Add what an export holds and this library lacks; an entry already here is skipped.

Request Body schema: application/json
required
property name*
additional property
any

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
{ }

List Jobs

query Parameters
Machine Id (string) or Machine Id (null) (Machine Id)

Responses

Response samples

Content type
application/json
{ }

Dispatch Job

Send a G-code work product to an idle in-house machine and start it.

Request Body schema: application/json
required
by
string (By)
Default: ""
machine_id
required
string (Machine Id)
work_product_id
required
string (Work Product Id)

Responses

Request samples

Content type
application/json
{
  • "by": "",
  • "machine_id": "string",
  • "work_product_id": "string"
}

Response samples

Content type
application/json
{ }

Record Job Result

Record an ended job as evidence against the part revision it was sent for.

path Parameters
job_id
required
string (Job Id)
Request Body schema: application/json
required
by
string (By)
Default: ""

Responses

Request samples

Content type
application/json
{
  • "by": ""
}

Response samples

Content type
application/json
{ }

Job Status

The job as the machine reports it now. Writes nothing.

path Parameters
job_id
required
string (Job Id)

Responses

Response samples

Content type
application/json
{ }

List Machines

Models and instances; layer=model|instance and kind narrow it.

query Parameters
Layer (string) or Layer (null) (Layer)
Kind (string) or Kind (null) (Kind)

Responses

Response samples

Content type
application/json
{ }

Register Machine

Add a model (layer: model) or an instance (layer: instance).

Request Body schema: application/json
required
property name*
additional property
any

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
{ }

Get Machine

path Parameters
machine_id
required
string (Machine Id)

Responses

Response samples

Content type
application/json
{ }

Update Machine

Change a machine; the previous version is kept in its history.

path Parameters
machine_id
required
string (Machine Id)
Request Body schema: application/json
required
by
string (By)
Default: ""
object (Changes)

Responses

Request samples

Content type
application/json
{
  • "by": "",
  • "changes": { }
}

Response samples

Content type
application/json
{ }

Machine Limits

An instance's limits, shaped for the ranking and DFM skills.

path Parameters
machine_id
required
string (Machine Id)

Responses

Response samples

Content type
application/json
{ }

List Materials

query Parameters
Family (string) or Family (null) (Family)

Responses

Response samples

Content type
application/json
{ }

Register Material

Request Body schema: application/json
required
property name*
additional property
any

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
{ }

Resolve Material

The figures a tool call carries for name; 422 with candidates.

query Parameters
name
required
string (Name)

Responses

Response samples

Content type
application/json
{ }

Get Material

path Parameters
ref
required
string (Ref)

Responses

Response samples

Content type
application/json
{ }

Update Material

path Parameters
ref
required
string (Ref)
Request Body schema: application/json
required
by
string (By)
Default: ""
object (Changes)

Responses

Request samples

Content type
application/json
{
  • "by": "",
  • "changes": { }
}

Response samples

Content type
application/json
{ }

List Organisations

Manufacturers, distributors, fabricators and test labs, by role.

query Parameters
Role (string) or Role (null) (Role)

Responses

Response samples

Content type
application/json
{ }

Register Organisation

Request Body schema: application/json
required
property name*
additional property
any

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
{ }

Migrate Organisations

Organisations from the names the library already holds.

Without apply it only reports: the organisations it would create (merged spellings as aliases, roles from where each name appears), and related names left for a person to merge or keep apart. With apply=true it creates them as unreviewed and links components, offers and service-bureau machines. Shared library data, so an account on a shared gateway may not run it.

query Parameters
apply
boolean (Apply)
Default: false

Responses

Response samples

Content type
application/json
{ }

Resolve Organisation

The organisation a written name refers to, through its aliases; 404 when none.

query Parameters
name
required
string (Name)

Responses

Response samples

Content type
application/json
{ }

Get Organisation

path Parameters
ref
required
string (Ref)

Responses

Response samples

Content type
application/json
{ }

Update Organisation

path Parameters
ref
required
string (Ref)
Request Body schema: application/json
required
by
string (By)
Default: ""
object (Changes)

Responses

Request samples

Content type
application/json
{
  • "by": "",
  • "changes": { }
}

Response samples

Content type
application/json
{ }

List Processes

query Parameters
Family (string) or Family (null) (Family)

Responses

Response samples

Content type
application/json
{ }

Register Process

Request Body schema: application/json
required
property name*
additional property
any

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
{ }

Get Process

path Parameters
ref
required
string (Ref)

Responses

Response samples

Content type
application/json
{ }

Update Process

path Parameters
ref
required
string (Ref)
Request Body schema: application/json
required
by
string (By)
Default: ""
object (Changes)

Responses

Request samples

Content type
application/json
{
  • "by": "",
  • "changes": { }
}

Response samples

Content type
application/json
{ }

Process Limits

The process's rules as DFM limits and a ranking candidate, optionally for a material.

path Parameters
ref
required
string (Ref)
query Parameters
Material (string) or Material (null) (Material)

Responses

Response samples

Content type
application/json
{ }

Search Library

Every library entry matching every word of q, best first.

Searches components (name, MPN, title, maker and its aliases, suppliers, SKUs), organisations, materials, processes, machines (and their operators), appearances and ergonomic limits. kind (repeatable) narrows the kinds; role, region and status filter organisations and the components and machines linked to one. Each result names the fields that matched; a component made or sold only by a blocked organisation carries blocked.

query Parameters
q
string (Q)
Default: ""
Array of Kind (strings) or Kind (null) (Kind)
Role (string) or Role (null) (Role)
Region (string) or Region (null) (Region)
Status (string) or Status (null) (Status)
limit
integer (Limit)
Default: 50

Responses

Response samples

Content type
application/json
{ }

Publish Entry

Move an account's entry into the shared library (the deployment only).

Accounts are refused twice: the auth middleware blocks writes under /v1/library/ that are not their own entries, and this route refuses a service call that carries an account's library view (the MCP sidecar), so an account cannot publish through a tool either.

path Parameters
kind_path
required
string (Kind Path)
ref
required
string (Ref)

Responses

Response samples

Content type
application/json
{ }

manufacture

Release For Manufacture

query Parameters
work_product_id
required
string (Work Product Id)
process
required
string (Process)

'3d_print' (-> STL) or 'cnc' (-> STEP)

Responses

Response samples

Content type
application/json
{
  • "content_base64": "string",
  • "file_size_bytes": 0,
  • "filename": "string",
  • "format": "string",
  • "process": "string",
  • "work_product_id": "string"
}

memory

Get Component Context

Component usage / relationship knowledge for name.

Wraps MemoryClient.get_component_context: a typed convenience over the L1 knowledge base keyed off KnowledgeType.COMPONENT. Empty / whitespace name returns 422 — that's a client bug, not a backend gap.

path Parameters
name
required
string (Name)
query Parameters
limit
integer (Limit) [ 1 .. 50 ]
Default: 5
Projectid (string) or Projectid (null) (Projectid)

Responses

Response samples

Content type
application/json
{
  • "hits": [
    ],
  • "query": "string",
  • "totalFound": 0
}

Trigger Consolidation

Trigger one consolidation pass synchronously.

Defaults to on_demand mode (manual triage with the importance floor relaxed). Pass mode=background to run the standard pass or mode=janitor to re-validate previously-stored insights without synthesizing new ones.

Request Body schema: application/json
required
Fetchlimit (integer) or Fetchlimit (null) (Fetchlimit)
Minimportance (number) or Minimportance (null) (Minimportance)
mode
string (ConsolidationMode)
Default: "on_demand"
Enum: "background" "on_demand" "proactive" "janitor"

Consolidation mode. Defaults to on_demand since the REST endpoint is a manual trigger; the Temporal worker handles background.

Projectid (string) or Projectid (null) (Projectid)
Since (string) or Since (null) (Since)
ConsolidationTheme (string) or null
Until (string) or Until (null) (Until)

Responses

Request samples

Content type
application/json
{
  • "fetchLimit": 1,
  • "minImportance": 0,
  • "mode": "background",
  • "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",
  • "since": "2019-08-24T14:15:22Z",
  • "theme": "mechanical_validation",
  • "until": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "acceptedCount": 0,
  • "fetchedCount": 0,
  • "groupCount": 0,
  • "mode": "background",
  • "newlyFailedCount": 0,
  • "rejectedCount": 0,
  • "rejectedReasons": [
    ],
  • "revalidatedCount": 0,
  • "synthesizedCount": 0
}

List Insights

List consolidated insights, newest first.

Excludes STALE_WARN insights by default — agents should act on fresh lessons. Pass includeStale=true for an audit / review view that includes faded insights. Optional theme narrows to one consolidation theme.

query Parameters
ConsolidationTheme (string) or Theme (null) (Theme)
includeStale
boolean (Includestale)
Default: false
limit
integer (Limit) [ 1 .. 500 ]
Default: 50

Responses

Response samples

Content type
application/json
{
  • "includeStale": true,
  • "insights": [
    ],
  • "theme": "mechanical_validation",
  • "total": 0
}

Retrieve Similar Experience

Return experiences most similar to the supplied goal.

Body shape matches MemoryRetrieveRequest. The response carries hits sorted by descending similarity, plus the echoed query and total_found so callers can paginate without re-derivation.

Request Body schema: application/json
required
Agentcode (string) or Agentcode (null) (Agentcode)

Optional filter to a specific agent.

goal
required
string (Goal) non-empty

Natural-language description of the task.

limit
integer (Limit) [ 1 .. 50 ]
Default: 5

Maximum number of experiences to return.

Minsimilarity (number) or Minsimilarity (null) (Minsimilarity)

Optional retrieval-confidence floor: drop hits whose cosine similarity is below this value. None = no floor.

Onlysuccess (boolean) or Onlysuccess (null) (Onlysuccess)

True = success-only, False = failures-only, None = no filter.

Projectid (string) or Projectid (null) (Projectid)

Optional project scope.

Responses

Request samples

Content type
application/json
{
  • "agentCode": "string",
  • "goal": "string",
  • "limit": 5,
  • "minSimilarity": -1,
  • "onlySuccess": true,
  • "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8"
}

Response samples

Content type
application/json
{
  • "hits": [
    ],
  • "query": "string",
  • "totalFound": 0
}

Search Design Rationale

Semantic search over design-decision knowledge.

Wraps MemoryClient.search_design_rationale: a typed convenience over the L1 knowledge base that asks "why was X decided?" and returns ranked hits keyed off KnowledgeType.DESIGN_DECISION. Requires the gateway to have wired a knowledge_service on app.state.knowledge_service; the 503 from _get_client covers the case where the service hasn't initialised.

Request Body schema: application/json
required
limit
integer (Limit) [ 1 .. 50 ]
Default: 5

Maximum number of hits to return.

Projectid (string) or Projectid (null) (Projectid)

Optional project scope.

query
required
string (Query) non-empty

Natural-language query against design-decision knowledge.

Responses

Request samples

Content type
application/json
{
  • "limit": 5,
  • "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",
  • "query": "string"
}

Response samples

Content type
application/json
{
  • "hits": [
    ],
  • "query": "string",
  • "totalFound": 0
}

projects

List Projects

List hardware projects: all of them, or the caller's on a shared gateway.

Responses

Response samples

Content type
application/json
{
  • "projects": [
    ],
  • "total": 0
}

Create Project

Create a new hardware project (starts with no work products).

Request Body schema: application/json
required
description
string (Description) <= 2000 characters
Default: ""

Project description

name
required
string (Name) [ 1 .. 200 ] characters

Project name

status
string (Status)
Default: "draft"

Initial project status

Responses

Request samples

Content type
application/json
{
  • "description": "",
  • "name": "string",
  • "status": "draft"
}

Response samples

Content type
application/json
{
  • "agent_count": 0,
  • "created_at": "string",
  • "description": "string",
  • "id": "string",
  • "last_updated": "string",
  • "name": "string",
  • "status": "string",
  • "work_products": [
    ]
}

Delete Project

Delete a project by ID.

path Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{
  • "detail": [
    ]
}

Get Project

Get a single project by ID.

path Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{
  • "agent_count": 0,
  • "created_at": "string",
  • "description": "string",
  • "id": "string",
  • "last_updated": "string",
  • "name": "string",
  • "status": "string",
  • "work_products": [
    ]
}

Update Project

Rename, redescribe, or change the status of an existing project.

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
required
Description (string) or Description (null) (Description)
Name (string) or Name (null) (Name)
Status (string) or Status (null) (Status)

Responses

Request samples

Content type
application/json
{
  • "description": "string",
  • "name": "string",
  • "status": "string"
}

Response samples

Content type
application/json
{
  • "agent_count": 0,
  • "created_at": "string",
  • "description": "string",
  • "id": "string",
  • "last_updated": "string",
  • "name": "string",
  • "status": "string",
  • "work_products": [
    ]
}

operations

List Operations

The project's operations, most recently updated first, and the cursor.

Open the stream with ?after=<cursor> to receive every event after this snapshot.

path Parameters
project_id
required
string (Project Id)
query Parameters
active
boolean (Active)
Default: false

Only operations not yet terminal

limit
integer (Limit) [ 1 .. 200 ]
Default: 50

Responses

Response samples

Content type
application/json
{
  • "cursor": 0,
  • "operations": [
    ],
  • "project_id": "string"
}

Ingest Operation Event

Accept an operation event from a process that has no stream of its own.

202 with the stored project_seq. A duplicate event_id is 200 with the seq stored the first time. An event out of order, or a non-terminal one after the operation ended, is 409. A completed event whose base_revision is no longer its target's head is stored as stale.

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
required
Array of objects (Action Refs) <= 10 items
Array of objects (Artifact Refs) <= 50 items
Base Revision (string) or Base Revision (null) (Base Revision)
domain
string (OperationDomain)
Default: "general"
Enum: "concept" "sketch" "mechanical" "electronics" "firmware" "simulation" "manufacturing" "cross_domain" "general"
Event Id (string) or Event Id (null) (Event Id)
OperationKind (string) or null
message
string (Message) <= 500 characters
Default: ""
Occurred At (string) or Occurred At (null) (Occurred At)
operation_id
required
string (Operation Id) [ 3 .. 200 ] characters
Progress (object) or null
Project Id (string) or Project Id (null) (Project Id)
requires_action
boolean (Requires Action)
Default: false
Retry Of (string) or Retry Of (null) (Retry Of)
Run Id (string) or Run Id (null) (Run Id)
Sequence (integer) or Sequence (null) (Sequence)
severity
string (Severity)
Default: "info"
Enum: "info" "warning" "error"
Stage Id (string) or Stage Id (null) (Stage Id)
Stage Title (string) or Stage Title (null) (Stage Title)
state
required
string (OperationState)
Enum: "queued" "running" "waiting_for_user" "blocked" "completed" "failed" "cancelled" "superseded" "stale"
Target Key (string) or Target Key (null) (Target Key)
Target Revision (string) or Target Revision (null) (Target Revision)
title
string (Title) <= 200 characters
Default: ""
type
required
string (OperationEventType)
Enum: "accepted" "queued" "started" "milestone" "partial_result" "preview_ready" "review_required" "blocked" "resumed" "completed" "failed" "cancelled" "superseded" "stale"

Responses

Request samples

Content type
application/json
{
  • "action_refs": [
    ],
  • "artifact_refs": [
    ],
  • "base_revision": "string",
  • "domain": "concept",
  • "event_id": "string",
  • "kind": "run",
  • "message": "",
  • "occurred_at": "2019-08-24T14:15:22Z",
  • "operation_id": "string",
  • "progress": {
    },
  • "project_id": "string",
  • "requires_action": false,
  • "retry_of": "string",
  • "run_id": "string",
  • "sequence": 1,
  • "severity": "info",
  • "stage_id": "string",
  • "stage_title": "string",
  • "state": "queued",
  • "target_key": "string",
  • "target_revision": "string",
  • "title": "",
  • "type": "accepted"
}

Response samples

Content type
application/json
{
  • "duplicate": false,
  • "event_id": "string",
  • "project_seq": 0,
  • "sequence": 0
}

Stream Operations

SSE of the project's operation events.

Frames: operation (id: is the project_seq), heartbeat every 15 s with the cursor, and resync when the resume point is unknown or older than the log keeps (refetch the snapshot).

path Parameters
project_id
required
string (Project Id)
query Parameters
After (integer) or After (null) (After)

Resume after this project_seq

header Parameters
Last-Event-Id (string) or Last-Event-Id (null) (Last-Event-Id)

Responses

Response samples

Content type
application/json
null

Cancel Operation

Cancel an operation that supports it: 202, 409 when not cancellable, 404 when unknown.

A design-flow run stops at its next step and is marked cancelled; what it already committed to the twin stays. A job stops in this gateway, or in the MCP sidecar when the sidecar runs it.

path Parameters
project_id
required
string (Project Id)
operation_id
required
string (Operation Id)

Responses

Response samples

Content type
application/json
{
  • "operation_id": "string",
  • "state": "queued"
}

Retry Operation

Run a failed operation again, as a new operation naming it in retry_of.

202 with the new operation_id (its accepted event is on the stream); 409 when the operation did not fail or its kind cannot be re-run safely; 404 when unknown. Supported: failed design-flow runs and failed jobs of tools that can be retried.

path Parameters
project_id
required
string (Project Id)
operation_id
required
string (Operation Id)

Responses

Response samples

Content type
application/json
{
  • "operation_id": "string",
  • "retry_of": "string",
  • "state": "queued"
}

promotion

List Promotions

query Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{
  • "gates": [
    ]
}

Attempt Promotion Route

Promote (or veto), attributed to whoever made this request.

A dashboard click is a human act, so this route needs no separate approval hop the way the MCP path does — but the authority is still read off the request rather than the body.

Request Body schema: application/json
required
Comment (string) or Comment (null) (Comment)
k
number (K)
Default: 1
level
required
string (Level)
projectId
required
string (Projectid)
reject
boolean (Reject)
Default: false
requiredClaimIds
required
Array of strings (Requiredclaimids)

Responses

Request samples

Content type
application/json
{
  • "comment": "string",
  • "k": 1,
  • "level": "string",
  • "projectId": "string",
  • "reject": false,
  • "requiredClaimIds": [
    ]
}

Response samples

Content type
application/json
{
  • "blockedReason": "string",
  • "comment": "string",
  • "decidedBy": "string",
  • "gateId": "string",
  • "level": "string",
  • "promoted": true,
  • "results": [
    ]
}

releases

List Releases

query Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{
  • "releases": [
    ]
}

Create Release

Request Body schema: application/json
required
Notes (string) or Notes (null) (Notes)
project_id
required
string (Project Id)

Responses

Request samples

Content type
application/json
{
  • "notes": "string",
  • "project_id": "string"
}

Response samples

Content type
application/json
{
  • "created_at": "string",
  • "diff_from_previous": {
    },
  • "gate_status": "string",
  • "node_id": "string",
  • "snapshot": {
    },
  • "statement": "string",
  • "title": "string"
}

requirements

Create Constraint

create one structured constraint (metric/operator/limit/ unit/target_node_type) from the dashboard's constraint editor. Live pass/fail/no_data status for it then comes from the existing GET /v1/requirements/matrix, computed from real Claim/Evidence data -- this route only ever records the requirement's own declaration.

Request Body schema: application/json
required
expectedEvidence
string (Expectedevidence)
Default: ""
limit
required
number (Limit)
message
string (Message)
Default: ""
metric
required
string (Metric)
name
required
string (Name)
operator
string (Operator)
Default: "<="
projectId
required
string (Projectid)
severity
string (Severity)
Default: "error"
targetNodeType
string (Targetnodetype)
Default: ""
unit
string (Unit)
Default: ""
verificationMethod
string (Verificationmethod)
Default: ""

Responses

Request samples

Content type
application/json
{
  • "expectedEvidence": "",
  • "limit": 0,
  • "message": "",
  • "metric": "string",
  • "name": "string",
  • "operator": "<=",
  • "projectId": "string",
  • "severity": "error",
  • "targetNodeType": "",
  • "unit": "",
  • "verificationMethod": ""
}

Response samples

Content type
application/json
{
  • "constraintId": "string",
  • "setWorkProductId": "string"
}

Get Requirement Coverage

the 5 traceability coverage percentages (needs->requirements, requirements->architecture, requirements-> verification, verification->evidence, critical_requirements->evidence), computed live by TraceabilityAgent -- previously real, tested code with no gateway route exposing it at all.

query Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{
  • "critical_requirements_to_evidence": 0,
  • "needs_to_requirements": 0,
  • "requirements_to_architecture": 0,
  • "requirements_to_verification": 0,
  • "verification_to_evidence": 0
}

Get Requirement Matrix

requirements x claims x evidence, one row per real requirement -- status (pass/uncertain/fail/no_data/stale) derived live from current claim + evidence staleness state, never cached.

query Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{
  • "revisionRefs": [ ],
  • "rows": [
    ]
}

Get Requirement Quality

query Parameters
project_id
required
string (Project Id)
product_type
string (Product Type)
Default: "generic"

Responses

Response samples

Content type
application/json
{
  • "completeness": {
    },
  • "conflicts": [
    ],
  • "requirements": [
    ]
}

Propose Requirement Fix

Generate a proposed rewrite for one flawed requirement -- diagnoses with the same deterministic linter the quality report already used, then asks the Requirement Author agent for a corrected version linked back to the original via REFINES. Never writes anything itself; the caller applies the resulting patch through the normal review path.

path Parameters
requirement_id
required
string (Requirement Id)

Responses

Response samples

Content type
application/json
{
  • "conclusions": [
    ],
  • "proposedText": "string",
  • "rationale": "string"
}

robot-loads

Compute Joint Loads

Request Body schema: application/json
required
required
Array of objects (Joints)
required
Array of objects (Links)
payload_mass_kg
number (Payload Mass Kg)
Default: 0
Array of Payload Position World Mm (items) or Payload Position World Mm (null) (Payload Position World Mm)

Responses

Request samples

Content type
application/json
{
  • "joints": [
    ],
  • "links": [
    ],
  • "payload_mass_kg": 0,
  • "payload_position_world_mm": [
    ]
}

Response samples

Content type
application/json
{
  • "loads": [
    ],
  • "worst_joint": {
    }
}

runs

List Runs

Every run, or one project's.

Unfiltered before: /runs showed every project's work in one list, and the project a run belonged to was only inside its request blob. Passing project_id scopes it; the response says how many runs were left out for having no project, so they do not simply vanish.

query Parameters
Project Id (string) or Project Id (null) (Project Id)

Responses

Response samples

Content type
application/json
{
  • "runs": [
    ],
  • "unscoped_count": 0
}

Create Run

Request Body schema: application/json
required
object (Request)

Opaque run input (goal, spec, config) handed to the harness.

start
boolean (Start)
Default: true

Transition queued -> running immediately after creation.

Responses

Request samples

Content type
application/json
{
  • "request": { },
  • "start": true
}

Response samples

Content type
application/json
{
  • "approval_deadline": 0,
  • "approval_reason": "string",
  • "approved_by": "string",
  • "approver_verified": false,
  • "created_at": 0,
  • "engine": "string",
  • "error": "string",
  • "flow_content_hash": "string",
  • "flow_version_id": "string",
  • "history": [
    ],
  • "id": "string",
  • "project_id": "string",
  • "request": { },
  • "result": { },
  • "status": "string",
  • "updated_at": 0,
  • "usage": { }
}

Get Budget

Where the AI budget that pays for project_id's model calls stands.

On a hosted gateway this is the budget of the account owning the project: the monthly amount, what has been spent this month and what is left. A gateway with no budget answers {"enabled": false}.

query Parameters
Project Id (string) or Project Id (null) (Project Id)

Responses

Response samples

Content type
application/json
{ }

Get Usage Summary

LLM tokens and cost across all runs for the trailing window.

query Parameters
window_hours
number (Window Hours)
Default: 24

Responses

Response samples

Content type
application/json
{ }

Get Run

path Parameters
run_id
required
string (Run Id)

Responses

Response samples

Content type
application/json
{
  • "approval_deadline": 0,
  • "approval_reason": "string",
  • "approved_by": "string",
  • "approver_verified": false,
  • "created_at": 0,
  • "engine": "string",
  • "error": "string",
  • "flow_content_hash": "string",
  • "flow_version_id": "string",
  • "history": [
    ],
  • "id": "string",
  • "project_id": "string",
  • "request": { },
  • "result": { },
  • "status": "string",
  • "updated_at": 0,
  • "usage": { }
}

Submit Approval

Answer the gate this run is parked at.

Async so the store transition — which resolves the in-process executor's gate future via the coordinator — runs on the event-loop thread (future resolution is not thread-safe from FastAPI's sync worker pool).

On Temporal the decision is also signalled into the workflow, which is what actually resumes it. The store transition stays, because the run list, the SSE stream and the ledger all read from it.

The deciding human comes from the request, never the body.

FORGE-788 (RT-030): a base_revision that is no longer the gate's (the run re-drafted, retried or moved on since the person looked) is 409.

path Parameters
run_id
required
string (Run Id)
Request Body schema: application/json
required
Base Revision (string) or Base Revision (null) (Base Revision)
decision
required
string (Decision)
Enum: "approve" "reject" "retry" "rework"
reason
string (Reason) <= 2000 characters
Default: ""
to_phase
string (To Phase) <= 200 characters
Default: ""

Responses

Request samples

Content type
application/json
{
  • "base_revision": "string",
  • "decision": "approve",
  • "reason": "",
  • "to_phase": ""
}

Response samples

Content type
application/json
{
  • "approval_deadline": 0,
  • "approval_reason": "string",
  • "approved_by": "string",
  • "approver_verified": false,
  • "created_at": 0,
  • "engine": "string",
  • "error": "string",
  • "flow_content_hash": "string",
  • "flow_version_id": "string",
  • "history": [
    ],
  • "id": "string",
  • "project_id": "string",
  • "request": { },
  • "result": { },
  • "status": "string",
  • "updated_at": 0,
  • "usage": { }
}

Stream Run Events

SSE stream of a run: status transitions plus tool progress.

run.status frames carry the run's state and end the stream when the run is terminal. tool.progress frames carry an id: so a client that reconnects with Last-Event-ID is sent the ones it missed.

path Parameters
run_id
required
string (Run Id)
header Parameters
Last-Event-Id (string) or Last-Event-Id (null) (Last-Event-Id)

Responses

Response samples

Content type
application/json
null

Get Flow State

Phase-by-phase state of a design-flow run.

Queries the Temporal workflow. A workflow query is answered by a worker, so with none running there is nobody to answer -- which is reported as live: false with a reason rather than as an empty flow, because an empty flow and a flow nobody can see render identically and mean opposite things.

path Parameters
run_id
required
string (Run Id)

Responses

Response samples

Content type
application/json
{
  • "attempt": 1,
  • "awaitingGate": "string",
  • "currentPhase": "string",
  • "detail": "",
  • "error": "string",
  • "events": [
    ],
  • "flow": "string",
  • "flowContentHash": "string",
  • "flowVersion": "string",
  • "flowVersionId": "string",
  • "gateFindings": [
    ],
  • "gateReady": true,
  • "live": true,
  • "maxReworkCycles": 0,
  • "phases": [
    ],
  • "retriesLeft": 0,
  • "reworkCycles": 0,
  • "reworksLeft": 0,
  • "runId": "string",
  • "status": "string",
  • "usage": { }
}

Gate Opened

Record that a run's workflow has opened a gate.

Called by the design-flow worker's announcer. The workflow is the authority on whether a gate is open, so this first re-reads it (_reconcile_run). Only when the workflow cannot be asked does it fall back to the worker's word. Either way it moves the record to awaiting_approval, which is what lists the run on the Approvals page and publishes the change on its SSE stream. It never approves: a decision still has to come through /approval, and the workflow ignores one for a gate that is not open.

path Parameters
run_id
required
string (Run Id)
Request Body schema: application/json
required
gate
required
string (Gate) non-empty
reason
string (Reason)
Default: ""

Responses

Request samples

Content type
application/json
{
  • "gate": "string",
  • "reason": ""
}

Response samples

Content type
application/json
{
  • "approval_deadline": 0,
  • "approval_reason": "string",
  • "approved_by": "string",
  • "approver_verified": false,
  • "created_at": 0,
  • "engine": "string",
  • "error": "string",
  • "flow_content_hash": "string",
  • "flow_version_id": "string",
  • "history": [
    ],
  • "id": "string",
  • "project_id": "string",
  • "request": { },
  • "result": { },
  • "status": "string",
  • "updated_at": 0,
  • "usage": { }
}

Get Run Lifecycle

The lifecycle view of one design run, with its completion verdict.

path Parameters
run_id
required
string (Run Id)

Responses

Response samples

Content type
application/json
{
  • "lifecycle": { },
  • "limits": [
    ],
  • "live": true,
  • "nextStep": "",
  • "runId": "string"
}

Propose Run Patch

Plan a change to a running flow and hold it for a person.

Nothing changes until somebody approves the approval this returns, and then POST /v1/runs/{run_id}/patches/{version_id}/apply applies it at the run's next gate. Only the phases the change touches re-run.

path Parameters
run_id
required
string (Run Id)
Request Body schema: application/json
required
expectedContentHash
required
string (Expectedcontenthash)
invalidate
Array of strings (Invalidate)
Array of objects (Operations)
reason
required
string (Reason)

Responses

Request samples

Content type
application/json
{
  • "expectedContentHash": "string",
  • "invalidate": [
    ],
  • "operations": [
    ],
  • "reason": "string"
}

Response samples

Content type
application/json
{
  • "added": [
    ],
  • "approvalId": "string",
  • "changes": [
    ],
  • "nextStep": "string",
  • "notes": [
    ],
  • "preserved": [
    ],
  • "removed": [
    ],
  • "rerun": [
    ],
  • "runId": "string",
  • "versionId": "string"
}

Apply Run Patch

Apply an approved patch. Refused unless approved and still current.

path Parameters
run_id
required
string (Run Id)
version_id
required
string (Version Id)

Responses

Response samples

Content type
application/json
{
  • "nextStep": "string",
  • "rerun": [
    ],
  • "runId": "string",
  • "versionId": "string"
}

Supervise Run

Start supervising a run until it is verified, a budget is used or a person is needed.

path Parameters
run_id
required
string (Run Id)
Request Body schema: application/json
required
Max Actions (integer) or Max Actions (null) (Max Actions)
Max Hours (number) or Max Hours (null) (Max Hours)
Max Model Calls (integer) or Max Model Calls (null) (Max Model Calls)
Max Restarts (integer) or Max Restarts (null) (Max Restarts)

Responses

Request samples

Content type
application/json
{
  • "max_actions": 1,
  • "max_hours": 1,
  • "max_model_calls": 1,
  • "max_restarts": 0
}

Response samples

Content type
application/json
{ }

Stop Supervision

path Parameters
run_id
required
string (Run Id)
Request Body schema: application/json
required
reason
string (Reason)
Default: "stopped by a person"

Responses

Request samples

Content type
application/json
{
  • "reason": "stopped by a person"
}

Response samples

Content type
application/json
{ }

Get Supervision

The supervision record: status, budgets, counters, chain of runs and its log.

path Parameters
run_id
required
string (Run Id)

Responses

Response samples

Content type
application/json
{ }

Ingest Tool Event

Accept a tool event from the design-flow worker or the MCP sidecar.

Those run in their own processes and cannot reach the gateway's stream, so they post here. The route needs the same gateway key as every other route, and it takes no arguments or results, only the tool's name, phase, status and duration. An unknown run is a 404, so the stream cannot be filled for a run that does not exist.

path Parameters
run_id
required
string (Run Id)
Request Body schema: application/json
required
call_id
required
string (Call Id) [ 1 .. 64 ] characters
Duration Ms (integer) or Duration Ms (null) (Duration Ms)
phase
string (Phase) <= 200 characters
Default: ""
status
required
string (Status)
Enum: "started" "finished" "failed"
tool
required
string (Tool) [ 1 .. 200 ] characters

Responses

Request samples

Content type
application/json
{
  • "call_id": "string",
  • "duration_ms": 0,
  • "phase": "",
  • "status": "started",
  • "tool": "string"
}

Response samples

Content type
application/json
{
  • "property1": true,
  • "property2": true
}

sessions

List Sessions

List all agent sessions.

Merges internal Temporal WorkflowRuns with externally-recorded agent sessions so MCP/CLI-driven work shows up alongside autonomous runs. Most-recent-first.

project_id scopes to one project. Internal Temporal runs carry no project, so they're excluded when a project filter is set.

query Parameters
Project Id (string) or Project Id (null) (Project Id)

Responses

Response samples

Content type
application/json
{
  • "sessions": [
    ],
  • "total": 0,
  • "unscoped_count": 0
}

Create Session

Open a new externally-recorded agent session.

Request Body schema: application/json
required
agent_code
required
string (Agent Code)
Project Id (string) or Project Id (null) (Project Id)
task_type
required
string (Task Type)
Title (string) or Title (null) (Title)

Responses

Request samples

Content type
application/json
{
  • "agent_code": "string",
  • "project_id": "string",
  • "task_type": "string",
  • "title": "string"
}

Response samples

Content type
application/json
{
  • "agent_code": "string",
  • "completed_at": "string",
  • "events": [
    ],
  • "id": "string",
  • "project_id": "string",
  • "run_id": "string",
  • "source": "string",
  • "started_at": "string",
  • "status": "string",
  • "summary": "string",
  • "task_type": "string"
}

Get Session

Get a single session by ID (store first, then workflow engine).

path Parameters
session_id
required
string (Session Id)

Responses

Response samples

Content type
application/json
{
  • "agent_code": "string",
  • "completed_at": "string",
  • "events": [
    ],
  • "id": "string",
  • "project_id": "string",
  • "run_id": "string",
  • "source": "string",
  • "started_at": "string",
  • "status": "string",
  • "summary": "string",
  • "task_type": "string"
}

Update Session

Complete a session (set terminal status + optional summary).

path Parameters
session_id
required
string (Session Id)
Request Body schema: application/json
required
status
required
string (Status)
Summary (string) or Summary (null) (Summary)

Responses

Request samples

Content type
application/json
{
  • "status": "string",
  • "summary": "string"
}

Response samples

Content type
application/json
{
  • "agent_code": "string",
  • "completed_at": "string",
  • "events": [
    ],
  • "id": "string",
  • "project_id": "string",
  • "run_id": "string",
  • "source": "string",
  • "started_at": "string",
  • "status": "string",
  • "summary": "string",
  • "task_type": "string"
}

Append Session Event

Append one event (thought / action / decision / …) to a session.

path Parameters
session_id
required
string (Session Id)
Request Body schema: application/json
required
object (Data)
message
required
string (Message)
type
required
string (Type)

Responses

Request samples

Content type
application/json
{
  • "data": { },
  • "message": "string",
  • "type": "string"
}

Response samples

Content type
application/json
{
  • "event_id": "string",
  • "seq": 0
}

simulation

List Load Cases

List load cases, optionally scoped to a project.

Empty (not a 404) when the project has none yet, matching /v1/bom.

query Parameters
Project Id (string) or Project Id (null) (Project Id)

Responses

Response samples

Content type
application/json
{
  • "loadCases": [
    ],
  • "total": 0
}

Create Load Case

Create a load case, via the same document-recorder path twin.record_document(document_type='load_case') uses (see module docstring) so a dashboard-authored and agent-authored case are indistinguishable on the twin.

Request Body schema: application/json
required
fixedNodeSet
required
string (Fixednodeset) non-empty
loadForceN
required
Array of numbers (Loadforcen) = 3 items
loadNodeSet
required
string (Loadnodeset) non-empty
required
object (Material) non-empty
name
required
string (Name) [ 1 .. 200 ] characters
projectId
required
string (Projectid) non-empty
Sourceofloads (string) or Sourceofloads (null) (Sourceofloads)
Array of Sourcepartnodeids (strings) or Sourcepartnodeids (null) (Sourcepartnodeids)

Responses

Request samples

Content type
application/json
{
  • "fixedNodeSet": "string",
  • "loadForceN": [
    ],
  • "loadNodeSet": "string",
  • "material": { },
  • "name": "string",
  • "projectId": "string",
  • "sourceOfLoads": "string",
  • "sourcePartNodeIds": [
    ]
}

Response samples

Content type
application/json
{
  • "createdAt": "string",
  • "fixedNodeSet": "string",
  • "id": "string",
  • "loadForceN": [
    ],
  • "loadNodeSet": "string",
  • "material": { },
  • "name": "string",
  • "projectId": "string",
  • "sourceOfLoads": "string",
  • "updatedAt": "string"
}

List Named Faces

Named-face geometry for an already-generated mesh.

Backs the dashboard's geometric boundary-condition face picker: given a mesh file path (from an earlier freecad.generate_mesh call, e.g. surfaced in a forge chat turn), returns each named surface group's real centroid/normal/area/bbox so the dashboard can render pickable face patches instead of a blind "type the gmsh group name" text field.

Request Body schema: application/json
required
meshFile
required
string (Meshfile) non-empty

Responses

Request samples

Content type
application/json
{
  • "meshFile": "string"
}

Response samples

Content type
application/json
{
  • "faces": [
    ],
  • "meshFile": "string"
}

List Simulation Results

List FEA results, optionally scoped to a project.

Empty (not a 404) when the project has none yet, matching list_load_cases. Creation is agent-driven only (see module docstring) — there is no corresponding POST.

query Parameters
Project Id (string) or Project Id (null) (Project Id)

Responses

Response samples

Content type
application/json
{
  • "results": [
    ],
  • "total": 0
}

Get Simulation Result Field

Serve a simulation_result's 3D result field.

404 field not stored for a result recorded without one (every older result, or one whose MinIO write failed); the dashboard treats that as "show the numbers only".

path Parameters
result_id
required
string (Result Id)

Responses

Response samples

Content type
application/json
{
  • "detail": [
    ]
}

technical-drawings

List Technical Drawings

query Parameters
work_product_id
required
string (Work Product Id)

Responses

Response samples

Content type
application/json
{
  • "drawings": [
    ]
}

testplans

List Test Plan

query Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{
  • "entries": [
    ]
}

Generate Test Plan

Request Body schema: application/json
required
project_id
required
string (Project Id)

Responses

Request samples

Content type
application/json
{
  • "project_id": "string"
}

Response samples

Content type
application/json
{
  • "entries": [
    ],
  • "project_id": "string"
}

trade-study

List Concept Options

query Parameters
Project Id (string) or Project Id (null) (Project Id)

Responses

Response samples

Content type
application/json
{ }

Add Concept Option

Request Body schema: application/json
required
required
object (Criteriascores)
evidenceBackedCriteria
Array of strings (Evidencebackedcriteria)
Default: []
Projectid (string) or Projectid (null) (Projectid)
title
required
string (Title)

Responses

Request samples

Content type
application/json
{
  • "criteriaScores": {
    },
  • "evidenceBackedCriteria": [ ],
  • "projectId": "string",
  • "title": "string"
}

Response samples

Content type
application/json
{ }

Select Concept

Request Body schema: application/json
required
optionIds
required
Array of strings (Optionids)
Projectid (string) or Projectid (null) (Projectid)
rationale
required
string (Rationale)
Array of Requirementids (strings) or Requirementids (null) (Requirementids)
selectedOptionId
required
string (Selectedoptionid)
title
required
string (Title)
required
object (Weights)

Responses

Request samples

Content type
application/json
{
  • "optionIds": [
    ],
  • "projectId": "string",
  • "rationale": "string",
  • "requirementIds": [
    ],
  • "selectedOptionId": "string",
  • "title": "string",
  • "weights": {
    }
}

Response samples

Content type
application/json
{ }

twin

List Baselines

A project's baselines, newest first.

query Parameters
Project Id (string) or Project Id (null) (Project Id)

Responses

Response samples

Content type
application/json
{
  • "baselines": [
    ],
  • "total": 0
}

Diff Baselines Route

Per item: unchanged, changed (@x -> @y), added or removed between a and b.

query Parameters
a
required
string (A)

Baseline id

b
required
string (B)

Baseline id, or 'current' for the project's current items

Responses

Response samples

Content type
application/json
{
  • "a": {
    },
  • "b": {
    },
  • "b_is_current": false,
  • "counts": {
    },
  • "items": [
    ]
}

Get Baseline

One baseline with its item pins and constraint/entity members.

path Parameters
baseline_id
required
string (Baseline Id)

Responses

Response samples

Content type
application/json
{
  • "approved_by": [
    ],
  • "created_at": "string",
  • "gate_id": "string",
  • "id": "string",
  • "item_count": 0,
  • "items": [
    ],
  • "member_count": 0,
  • "members": [
    ],
  • "name": "string",
  • "project_id": "string",
  • "reason": "",
  • "run_id": "string",
  • "source": "manual"
}

Get Current View

The project's current items, records, counts and readiness (current items only).

query Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{
  • "counts": { },
  • "groups": [
    ],
  • "items": [
    ],
  • "latest_baseline": {
    },
  • "other": [
    ],
  • "project_id": "string",
  • "readiness": 0,
  • "records": [
    ]
}

Get Hierarchy Tree

List a project's hierarchy nodes, each with its parent link and its own rolled-up mass/cost.

Empty (not a 404) when the project has none yet, matching /v1/bom. Note: computes one rollup per node (each its own subtree walk) -- fine at the scale a hand-built product hierarchy actually reaches, not optimized for a tree of thousands of nodes.

query Parameters
Project Id (string) or Project Id (null) (Project Id)

Responses

Response samples

Content type
application/json
{
  • "malformedBudgets": [ ],
  • "nodes": [
    ]
}

Realize Hierarchy Node

"Replace placeholder with part": attach or replace node_id's REALIZED_BY (a cad_model work product, e.g. from POST /v1/twin/import) and/or INSTANCE_OF (a BOMItem) geometry -- the dashboard's own action reuses the SAME bound callable twin.realize_hierarchy_node uses.

path Parameters
node_id
required
string (Node Id)
Request Body schema: application/json
required
Bomitemid (string) or Bomitemid (null) (Bomitemid)
Workproductid (string) or Workproductid (null) (Workproductid)

Responses

Request samples

Content type
application/json
{
  • "bomItemId": "string",
  • "workProductId": "string"
}

Response samples

Content type
application/json
{
  • "instanceOfBomItemId": "string",
  • "nodeId": "string",
  • "realizedByWorkProductId": "string"
}

Import Work Product

Upload a design file and register it as a work product in the Twin.

Accepts CAD (STEP, IGES, FreeCAD), KiCad, meshes (STL, OBJ, GLB, glTF, PLY, 3MF), G-code, images, firmware and documents; ALLOWED_EXTENSIONS is the list. A person importing here is the approval: uploads from an agent or a link go through /v1/uploads and wait for one.

Request Body schema: multipart/form-data
required
description
string (Description)
Default: ""

Work product description

Domain (string) or Domain (null) (Domain)

Domain (mechanical, electronics)

file
required
string <application/octet-stream> (File)

Design file to import

Project Id (string) or Project Id (null) (Project Id)

Project to link to

Wp Type (string) or Wp Type (null) (Wp Type)

Work product type

Responses

Response samples

Content type
application/json
{
  • "content_hash": "string",
  • "created_at": "string",
  • "domain": "string",
  • "file_path": "string",
  • "format": "string",
  • "id": "string",
  • "metadata": { },
  • "name": "string",
  • "project_id": "string",
  • "wp_type": "string"
}

Check Interference

Real boolean-intersection clearance/interference check between two named parts' committed STEP geometry (gap G-D4).

Deliberately a pairwise check on two caller-named parts, not an all-pairs sweep across an entire assembly, and deliberately not an ISO 286 tolerance-grade/fit classification -- see api_gateway.twin.interference_check's module docstring for why both are out of scope here.

query Parameters
work_product_id_a
required
string (Work Product Id A)
work_product_id_b
required
string (Work Product Id B)

Responses

Response samples

Content type
application/json
{
  • "interference_area_mm2": 0,
  • "interference_volume_mm3": 0,
  • "interferes": true,
  • "work_product_id_a": "string",
  • "work_product_id_b": "string"
}

List Twin Items

Versioned definitions, each at its current head.

query Parameters
Project Id (string) or Project Id (null) (Project Id)
Item Type (string) or Item Type (null) (Item Type)

e.g. cad_model, constraint_set

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "total": 0
}

Get Item Diff

Geometry delta, parameter, requirement and field changes between two revisions.

path Parameters
key
required
string (Key)
query Parameters
A (string) or A (null) (A)

Older revision, e.g. 2 or @2

B (string) or B (null) (B)

Newer revision; defaults to the current one

Project Id (string) or Project Id (null) (Project Id)

Responses

Response samples

Content type
application/json
{
  • "a": { },
  • "a_ref": "string",
  • "b": { },
  • "b_ref": "string",
  • "dependents": [
    ],
  • "fields": [
    ],
  • "geometry": { },
  • "item_type": "string",
  • "key": "string",
  • "name": "string",
  • "parameters": [
    ],
  • "requirements": [
    ],
  • "warnings": [
    ]
}

Start Exact Build

Build (or validate) a CAD item's exact geometry as a background job.

path Parameters
key
required
string (Key)
Request Body schema: application/json
required
Base Revision (string) or Base Revision (null) (Base Revision)
Design Ir (object) or Design Ir (null) (Design Ir)
Feature Id (string) or Feature Id (null) (Feature Id)
Inputs (object) or Inputs (null) (Inputs)
project_id
required
string (Project Id)
Script (string) or Script (null) (Script)

Responses

Request samples

Content type
application/json
{
  • "base_revision": "string",
  • "design_ir": { },
  • "feature_id": "string",
  • "inputs": { },
  • "project_id": "string",
  • "script": "string"
}

Response samples

Content type
application/json
{
  • "cache_hit": true,
  • "error": "string",
  • "expected_seconds": 0,
  • "job_id": "string",
  • "poll": "string",
  • "result": { },
  • "reused": false,
  • "status": "string",
  • "step_export": { },
  • "tool_id": "string",
  • "url": "string"
}

Get Item Prd

One prd prose revision (KEY or KEY@n) with the current requirements.

path Parameters
key
required
string (Key)
query Parameters
Project Id (string) or Project Id (null) (Project Id)
Run Id (string) or Run Id (null) (Run Id)

Read as this design-flow run: include its open drafts

Responses

Response samples

Content type
application/json
{
  • "markdown": "string",
  • "project_id": "string",
  • "prose_ref": "string",
  • "refs": [
    ],
  • "requirement_count": 0,
  • "requirement_refs": [
    ],
  • "sources": [
    ],
  • "title": "string"
}

Get Item Revisions

Every revision of one item, oldest first. key may carry an @n suffix.

path Parameters
key
required
string (Key)
query Parameters
Project Id (string) or Project Id (null) (Project Id)
Run Id (string) or Run Id (null) (Run Id)

Read as this design-flow run: include its open drafts

Responses

Response samples

Content type
application/json
{
  • "current": {
    },
  • "item": {
    },
  • "lessons": [ ],
  • "revisions": [
    ]
}

List Twin Nodes

List work-product nodes in the Digital Twin.

project_id scopes the view to a single project. Omitted or empty returns every node (including unscoped legacy nodes) — preserving the prior global behaviour. A specific project_id returns only that project's nodes; unscoped nodes are excluded.

a design-flow run's drafts are left out until its gate approves them (and for good if it never does); include_drafts=true lists them too.

History records about a change (change_impact) are not design work products, so they are left out of the list and of total; include_history=true lists them too. They are always readable through /v1/twin/projects/{id}/impact.

query Parameters
Domain (string) or Domain (null) (Domain)
Project Id (string) or Project Id (null) (Project Id)
include_drafts
boolean (Include Drafts)
Default: false
include_history
boolean (Include History)
Default: false

Responses

Response samples

Content type
application/json
{
  • "nodes": [
    ],
  • "total": 0
}

Boolean Cut Nodes

Real CSG boolean-cut between two committed STEP work products.

A direct-commit endpoint, not the twin.propose_change/apply HITL pipeline — a human cutting their own open model is not meaningfully different from clicking Save (same rationale as twin.record_document, whose apply executor doesn't fit this action either). Drives the containerized CadQuery adapter via the shared MCP bridge, then commits the result through the geometry recorder with provenance edges to both inputs.

Request Body schema: application/json
required
cutter_node_id
required
string (Cutter Node Id) non-empty
operation
string (Operation)
Default: "subtract"
Enum: "subtract" "union" "intersect"
Result Name (string) or Result Name (null) (Result Name)
target_node_id
required
string (Target Node Id) non-empty

Responses

Request samples

Content type
application/json
{
  • "cutter_node_id": "string",
  • "operation": "subtract",
  • "result_name": "string",
  • "target_node_id": "string"
}

Response samples

Content type
application/json
{
  • "node": {
    },
  • "operation": "string",
  • "result_area_mm2": 0,
  • "result_volume_mm3": 0
}

Delete Node

Delete a work-product node, its project links, and its MinIO blob.

Without cascade a delete that would orphan dependents returns 409. Best-effort on the blob (a storage failure doesn't block the delete).

path Parameters
node_id
required
string (Node Id)
query Parameters
cascade
boolean (Cascade)
Default: false

Also delete dependents that would orphan

Responses

Response samples

Content type
application/json
{
  • "detail": [
    ]
}

Get Twin Node

Get a single work-product node by ID.

path Parameters
node_id
required
string (Node Id)

Responses

Response samples

Content type
application/json
{
  • "assembly": { },
  • "assemblyParts": [
    ],
  • "dependsOn": [
    ],
  • "designFiles": { },
  • "domain": "string",
  • "geometryParameters": { },
  • "geometryState": {
    },
  • "hasScript": false,
  • "id": "string",
  • "meshStats": { },
  • "name": "string",
  • "poses": {
    },
  • "projectId": "string",
  • "properties": {
    },
  • "representation": {
    },
  • "staleness": {
    },
  • "status": "string",
  • "systemArchitecture": { },
  • "technicalDrawing": { },
  • "type": "string",
  • "updatedAt": "string"
}

Approve Parametric

Human sign-off on a parametric sketch, through the design-sketch approver.

path Parameters
node_id
required
string <uuid> (Node Id)
Request Body schema: application/json
required
Approved By (string) or Approved By (null) (Approved By)
Any of
<= 200 characters
string (Approved By) <= 200 characters

Responses

Request samples

Content type
application/json
{
  • "approved_by": "string"
}

Response samples

Content type
application/json
{
  • "approved": true,
  • "approved_at": "string",
  • "node_id": "string"
}

Approve Design Sketch

Human sign-off on a design_sketch work product.

The forge/agent side creates a sketch as unapproved (twin.commit_design_sketch); this is the dashboard's side of the gate — a human explicitly approving it before the calling agent is expected to proceed to real CAD/build work.

path Parameters
node_id
required
string <uuid> (Node Id)
Request Body schema: application/json
required
Approved By (string) or Approved By (null) (Approved By)

Identifier of the human approving this sketch.

Any of
string (Approved By)

Identifier of the human approving this sketch.

Responses

Request samples

Content type
application/json
{
  • "approved_by": "string"
}

Response samples

Content type
application/json
{
  • "approved": true,
  • "approved_at": "string",
  • "node_id": "string"
}

Approve Technical Drawing

Human sign-off on a technical_drawing work product (gap G-H1).

Mirrors approve_design_sketch above -- a real work product, a real approval gate, not a dashboard-local checkbox.

path Parameters
node_id
required
string <uuid> (Node Id)
Request Body schema: application/json
required
Approved By (string) or Approved By (null) (Approved By)

Identifier of the human approving this drawing.

Any of
string (Approved By)

Identifier of the human approving this drawing.

Responses

Request samples

Content type
application/json
{
  • "approved_by": "string"
}

Response samples

Content type
application/json
{
  • "approved": true,
  • "approved_at": "string",
  • "node_id": "string"
}

Get Assembly Comparison

Compare a CAD revision's components: pose, alignment, interference (spec section 7).

Each component is found by the id written into its GLB node; poses are compared with the project's structured layout (L1). What cannot be measured is not_evaluated with the reason. The record is stored on the revision under assembly_comparison.

path Parameters
node_id
required
string (Node Id)
query Parameters
refresh
boolean (Refresh)
Default: false

Recompute even when a record for this content exists

Responses

Response samples

Content type
application/json
{ }

Update Assembly Joints

Add/edit/delete mates+joints on an already-committed assembly node.

Whole-list replace -- matches how the URDF/SDF/USD export panel's own manual joint-list form already works. Persisted directly onto metadata.assembly.joints: a joint is a logical annotation, not new geometry, so this deliberately skips the full VersionService revision machinery /nodes/{id}/iterate uses for an actual re-export -- editing joints here never touches the underlying committed blob.

Unlike the export panel, this does NOT require a live FreeCAD session or re-running an export -- it works on any already-committed node, any time, which is the whole point (joints are persisted onto the node at commit time; this is what makes them editable afterward).

path Parameters
node_id
required
string <uuid> (Node Id)
Request Body schema: application/json
required
required
Array of objects (Joints)
Array
Array of items (Anchor) = 3 items
Default: [0,0,0]
Array of items (Axis) = 3 items
Default: [0,0,1]
base
required
string (Base) non-empty
follower
required
string (Follower) non-empty
Limits (object) or Limits (null) (Limits)
name
required
string (Name) non-empty
type
required
string (Type)

Responses

Request samples

Content type
application/json
{
  • "joints": [
    ]
}

Response samples

Content type
application/json
{
  • "assembly": { },
  • "nodeId": "string"
}

Diff Versions

Return a metadata diff between two revisions (1-indexed).

path Parameters
node_id
required
string <uuid> (Node Id)
query Parameters
v1
required
integer (V1)
v2
required
integer (V2)

Responses

Response samples

Content type
application/json
{
  • "added": { },
  • "changed": {
    },
  • "removed": { },
  • "revision_a": 0,
  • "revision_b": 0,
  • "work_product_id": "string"
}

Get Node Exports

A revision's geometry state and its GLB, native CAD and STEP export states.

path Parameters
node_id
required
string (Node Id)

Responses

Response samples

Content type
application/json
{
  • "authority": "string",
  • "badge": "string",
  • "can_export_step": false,
  • "exports": [
    ],
  • "geometry_state": "string",
  • "head_revision": 0,
  • "is_head": false,
  • "item_key": "string",
  • "last_validated": { },
  • "latest_attempt": { },
  • "node_id": "string",
  • "revision": 0,
  • "validity": { }
}

Request Step Export

Queue the STEP export of a validated revision; a cached one answers 200 at once.

path Parameters
node_id
required
string (Node Id)
Request Body schema: application/json
Any of
critical
boolean (Critical)
Default: false

Responses

Request samples

Content type
application/json
Example
{
  • "critical": false
}

Response samples

Content type
application/json
{
  • "cache_hit": true,
  • "error": "string",
  • "expected_seconds": 0,
  • "job_id": "string",
  • "poll": "string",
  • "result": { },
  • "reused": false,
  • "status": "string",
  • "step_export": { },
  • "tool_id": "string",
  • "url": "string"
}

Download Step Export

The STEP file exported from this revision (kept even once it is stale).

path Parameters
node_id
required
string (Node Id)

Responses

Response samples

Content type
application/json
null

Download Node File

Stream a work product's stored file for download / open / preview.

download=false (default) returns the blob inline with a preview content-type so the dashboard can render PDFs, images, text, and BOMs in place; download=true forces a Content-Disposition: attachment.

path Parameters
node_id
required
string (Node Id)
query Parameters
download
boolean (Download)
Default: false

Force attachment download vs inline preview

Responses

Response samples

Content type
application/json
null

Download Node Named File

Stream one of a work product's NAMED blobs.

GET /nodes/{id}/file only ever serves the primary blob. A robot_description node stores N additional mesh blobs (one per URDF link) under metadata["mesh_files"] (link filename -> MinIO object key) — this resolves any of THOSE by filename, or falls back to the primary blob if filename matches it, so the dashboard's existing URDF preview (which expects every mesh reachable at {some_base_url}/{filename}, exactly like a fresh export's _cad_exports/{export_id}/ directory) can point straight at a persisted node with zero re-export round trip.

path Parameters
node_id
required
string (Node Id)
filename
required
string (Filename)

Responses

Response samples

Content type
application/json
null

Diff Geometry

Diff a work product's real geometry against its SUPERSEDES predecessor.

Unlike /diff above (a metadata-revision diff on the SAME node -- /iterate never changes the underlying blob, so no two revisions of one node ever have different geometry), this walks the real SUPERSEDES edge a re-committed, same-named CAD_MODEL gets (api_gateway.twin.geometry_ recorder) and compares the two NODES' actual STEP files.

A node that has never been superseded gets a 200 saying so rather than a 404: the dashboard asks this for every selected node, so the common answer must not read as an error in the console or in telemetry. A 404 here now means only that the node itself is unknown.

path Parameters
node_id
required
string (Node Id)

Responses

Response samples

Content type
application/json
{
  • "area_delta_mm2": 0,
  • "current_area_mm2": 0,
  • "current_bounding_box": { },
  • "current_volume_mm3": 0,
  • "current_work_product_id": "string",
  • "has_previous_version": true,
  • "previous_area_mm2": 0,
  • "previous_bounding_box": { },
  • "previous_volume_mm3": 0,
  • "previous_work_product_id": "string",
  • "volume_delta_mm3": 0
}

Iterate Work Product

Record a new revision and apply metadata updates to a work product.

path Parameters
node_id
required
string <uuid> (Node Id)
Request Body schema: application/json
required
change_description
required
string (Change Description)
object (Metadata Updates)
Default: {}

Responses

Request samples

Content type
application/json
{
  • "change_description": "string",
  • "metadata_updates": { }
}

Response samples

Content type
application/json
{
  • "change_description": "string",
  • "content_hash": "string",
  • "created_at": "string",
  • "metadata_snapshot": { },
  • "revision": 0
}

Create File Link

Link a work product to an external source file.

The source file must exist on the gateway's filesystem. Once linked, you can call POST /sync to re-import changes, or enable watch for automatic detection.

path Parameters
node_id
required
string (Node Id)
Request Body schema: application/json
required
source_path
required
string (Source Path)

Absolute path to the source file

tool
string (Tool)
Default: ""

Tool identifier (kicad, freecad, cadquery)

watch
boolean (Watch)
Default: true

Enable file watching

Responses

Request samples

Content type
application/json
{
  • "source_path": "string",
  • "tool": "",
  • "watch": true
}

Response samples

Content type
application/json
{
  • "created_at": "string",
  • "last_synced_at": "string",
  • "source_hash": "string",
  • "source_path": "string",
  • "sync_status": "string",
  • "tool": "string",
  • "watch": true,
  • "work_product_id": "string"
}

Get Node Model

Convert a CAD work-product's STEP file to GLB and return the URL.

Reads the STEP file from the shared adapter workspace, converts it via the OCCT converter, and returns the GLB URL + metadata.

path Parameters
node_id
required
string (Node Id)
query Parameters
quality
string (Quality) ^(preview|standard|fine)$
Default: "standard"

Responses

Response samples

Content type
application/json
{ }

Get Node Script

The current git-versioned generation script for a CAD_MODEL node.

Lets a dashboard parameter panel seed a regeneration proposal with the script as it stands today, rather than the user retyping it from scratch. 404 when the node has no linked script (imported geometry, or the git backend isn't configured).

path Parameters
node_id
required
string <uuid> (Node Id)

Responses

Response samples

Content type
application/json
{
  • "git_commit_sha": "string",
  • "git_path": "string",
  • "node_id": "string",
  • "script_node_id": "string",
  • "script_source": "string"
}

Sync File Link

Manually trigger a sync for a linked work product.

Re-reads the source file, extracts metadata, and updates the Twin node if the file has changed.

path Parameters
node_id
required
string (Node Id)

Responses

Response samples

Content type
application/json
{ }

Get Version History

Return the full revision history for a work product.

path Parameters
node_id
required
string <uuid> (Node Id)

Responses

Response samples

Content type
application/json
{
  • "revisions": [
    ],
  • "total": 0,
  • "work_product_id": "string"
}

Get Appearance

The product's and each component's look. recorded: false when none was set.

path Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{
  • "project_id": "string",
  • "record": {
    },
  • "recorded": true,
  • "ref": "string"
}

Put Appearance

Set a look. Only the appearance record changes: never CAD or the manufacturing context.

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
required
Colour (string) or Colour (null) (Colour)

sRGB hex, e.g. #c62828

Colour Name (string) or Colour Name (null) (Colour Name)
Component (string) or Component (null) (Component)
Component Id (string) or Component Id (null) (Component Id)
Finish (string) or Finish (null) (Finish)
Render Material (string) or Render Material (null) (Render Material)
texture_refs
Array of strings (Texture Refs) <= 8 items

Responses

Request samples

Content type
application/json
{
  • "colour": "string",
  • "colour_name": "string",
  • "component": "string",
  • "component_id": "string",
  • "finish": "string",
  • "render_material": "string",
  • "texture_refs": [
    ]
}

Response samples

Content type
application/json
{
  • "project_id": "string",
  • "record": {
    },
  • "recorded": true,
  • "ref": "string"
}

Get Attachable Geometry

CAD items whose head is validated exact geometry (a face can be picked on them).

path Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "project_id": "string",
  • "reason": "string"
}

List Cad Loops

Every CAD design loop run of the project, newest first.

path Parameters
project_id
required
string (Project Id)
query Parameters
Component Id (string) or Component Id (null) (Component Id)

Responses

Response samples

Content type
application/json
{
  • "active_jobs": [
    ],
  • "note": "Proposals only: the critic's verdict is a review, not a check. A version is validated only by the exact CAD path after a person accepts it.",
  • "runs": [
    ],
  • "spend": {
    }
}

Start Cad Loop

Refine a component's model automatically (a paid job). 409 asks to confirm spend.

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
required
allow_working_values
boolean (Allow Working Values)
Default: true
object (Answers) <= 50 properties
Component Id (string) or Component Id (null) (Component Id)
confirm_spend
boolean (Confirm Spend)
Default: false
Intent (string) or Intent (null) (Intent)
max_iterations
integer (Max Iterations) [ 1 .. 8 ]
Default: 5
Max Model Calls (integer) or Max Model Calls (null) (Max Model Calls)
Max Spend Usd (number) or Max Spend Usd (null) (Max Spend Usd)
Sketch Key (string) or Sketch Key (null) (Sketch Key)
Target Dimensions (object) or Target Dimensions (null) (Target Dimensions)
Tolerance Mm (number) or Tolerance Mm (null) (Tolerance Mm)
Array of Views (strings) or Views (null) (Views)

Responses

Request samples

Content type
application/json
{
  • "allow_working_values": true,
  • "answers": {
    },
  • "component_id": "string",
  • "confirm_spend": false,
  • "intent": "string",
  • "max_iterations": 5,
  • "max_model_calls": 1,
  • "max_spend_usd": 1,
  • "sketch_key": "string",
  • "target_dimensions": {
    },
  • "tolerance_mm": 1,
  • "views": [
    ]
}

Response samples

Content type
application/json
{
  • "error": "string",
  • "expected_seconds": 0,
  • "job_id": "string",
  • "operation_id": "string",
  • "result": { },
  • "reused": false,
  • "spend": {
    },
  • "status": "string"
}

Get Cad Loop

One run with every iteration (script, checks, views, critique, DFM, cost).

path Parameters
project_id
required
string (Project Id)
node_id
required
string (Node Id)

Responses

Response samples

Content type
application/json
{ }

Decide Cad Loop

Use the proposed version (built through the exact path) or keep the previous one.

path Parameters
project_id
required
string (Project Id)
node_id
required
string (Node Id)
Request Body schema: application/json
required
decision
required
string (Decision)
Enum: "accept" "reject"

Responses

Request samples

Content type
application/json
{
  • "decision": "accept"
}

Response samples

Content type
application/json
{ }

Classify Change Route

Classify a change request before anything changes. Writes nothing.

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
required
Component (string) or Component (null) (Component)

Selected component name

Component Id (string) or Component Id (null) (Component Id)

Selected node id

text
required
string (Text) [ 1 .. 4000 ] characters
Use Llm (boolean) or Use Llm (null) (Use Llm)

Responses

Request samples

Content type
application/json
{
  • "component": "string",
  • "component_id": "string",
  • "text": "string",
  • "use_llm": true
}

Response samples

Content type
application/json
{
  • "also": [
    ],
  • "appearance": {
    },
  • "change_class": "appearance",
  • "choices": [
    ],
  • "confidence": 0,
  • "handling": "string",
  • "message": "string",
  • "proposed_context_update": { },
  • "signals": [
    ],
  • "stage": "rules",
  • "stated_dimensions": [
    ],
  • "target_component": "string",
  • "target_component_id": "string",
  • "target_feature": "string"
}

Concept Mesh State

The newest 3D concept, the job still running and what the next one would use.

path Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{
  • "active_job": { },
  • "authority": "illustrative",
  • "label": "AI 3D reference model, illustrative only",
  • "latest": { },
  • "next_source": {
    },
  • "spend": {
    }
}

Start Concept Mesh

Make an illustrative 3D concept (a GLB) as a background job.

From the accepted concept, else the newest concept image, else the brief in words. 409 spend_confirmation_required when a person must confirm the paid call first (confirm_spend).

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
required
confirm_spend
boolean (Confirm Spend)
Default: false
Image Node Id (string) or Image Node Id (null) (Image Node Id)
Prompt (string) or Prompt (null) (Prompt)
source
string (Source)
Default: "auto"
Enum: "auto" "generated_sketch" "concept_image" "text"

Responses

Request samples

Content type
application/json
{
  • "confirm_spend": false,
  • "image_node_id": "string",
  • "prompt": "string",
  • "source": "auto"
}

Response samples

Content type
application/json
{
  • "authority": "illustrative",
  • "error": "string",
  • "expected_seconds": 0,
  • "job_id": "string",
  • "label": "AI 3D reference model, illustrative only",
  • "operation_id": "string",
  • "result": { },
  • "reused": false,
  • "source": {
    },
  • "spend": {
    },
  • "status": "string"
}

Concept Parts State

The accepted 3D concept, the proposals beside it and what to map parts to.

path Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{
  • "active_jobs": [
    ],
  • "authority": "illustrative",
  • "components": [
    ],
  • "current": { },
  • "proposals": [
    ],
  • "spend": {
    }
}

Segment Concept

Split the accepted 3D concept into parts (a paid job). 409 asks to confirm spend.

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
required
confirm_spend
boolean (Confirm Spend)
Default: false
Granularity (string) or Granularity (null) (Granularity)
model
string (Model)
Default: "v1.0-20250506"
Enum: "v1.0-20250506" "v2.0-20260430"
Node Id (string) or Node Id (null) (Node Id)
Split By Connectivity (boolean) or Split By Connectivity (null) (Split By Connectivity)

Responses

Request samples

Content type
application/json
{
  • "confirm_spend": false,
  • "granularity": "simple",
  • "model": "v1.0-20250506",
  • "node_id": "string",
  • "split_by_connectivity": true
}

Response samples

Content type
application/json
{
  • "authority": "illustrative",
  • "error": "string",
  • "expected_seconds": 0,
  • "job_id": "string",
  • "operation_id": "string",
  • "result": { },
  • "reused": false,
  • "spend": {
    },
  • "status": "string",
  • "tool": "string"
}

Complete Part

Seal or complete one part with the provider (a paid job).

path Parameters
project_id
required
string (Project Id)
node_id
required
string (Node Id)
Request Body schema: application/json
required
completion_mode
string (Completion Mode)
Default: "quick_cap"
Enum: "quick_cap" "ai_completion"
component_id
required
string (Component Id) [ 1 .. 200 ] characters
confirm_spend
boolean (Confirm Spend)
Default: false

Responses

Request samples

Content type
application/json
{
  • "completion_mode": "quick_cap",
  • "component_id": "string",
  • "confirm_spend": false
}

Response samples

Content type
application/json
{
  • "authority": "illustrative",
  • "error": "string",
  • "expected_seconds": 0,
  • "job_id": "string",
  • "operation_id": "string",
  • "result": { },
  • "reused": false,
  • "spend": {
    },
  • "status": "string",
  • "tool": "string"
}

Decide Revision

Accept a proposed 3D concept revision (the previous one is superseded) or reject it.

path Parameters
project_id
required
string (Project Id)
node_id
required
string (Node Id)
Request Body schema: application/json
required
decision
required
string (Decision)
Enum: "accept" "reject"

Responses

Request samples

Content type
application/json
{
  • "decision": "accept"
}

Response samples

Content type
application/json
{ }

Confirm Part Mapping

A person confirms or corrects which component each part is.

path Parameters
project_id
required
string (Project Id)
node_id
required
string (Node Id)
Request Body schema: application/json
required
accept_proposals
boolean (Accept Proposals)
Default: false
Array of objects (Assignments) <= 200 items

Responses

Request samples

Content type
application/json
{
  • "accept_proposals": false,
  • "assignments": [
    ]
}

Response samples

Content type
application/json
{ }

Regenerate Part

Redo one part (text or an image) and swap only it (a paid job).

path Parameters
project_id
required
string (Project Id)
node_id
required
string (Node Id)
Request Body schema: application/json
required
component_id
required
string (Component Id) [ 1 .. 200 ] characters
confirm_spend
boolean (Confirm Spend)
Default: false
Image Base64 (string) or Image Base64 (null) (Image Base64)
Image Mime (string) or Image Mime (null) (Image Mime)
Image Node Id (string) or Image Node Id (null) (Image Node Id)
Prompt (string) or Prompt (null) (Prompt)
source
required
string (Source)
Enum: "text" "image"

Responses

Request samples

Content type
application/json
{
  • "component_id": "string",
  • "confirm_spend": false,
  • "image_base64": "string",
  • "image_mime": "image/png",
  • "image_node_id": "string",
  • "prompt": "string",
  • "source": "text"
}

Response samples

Content type
application/json
{
  • "authority": "illustrative",
  • "error": "string",
  • "expected_seconds": 0,
  • "job_id": "string",
  • "operation_id": "string",
  • "result": { },
  • "reused": false,
  • "spend": {
    },
  • "status": "string",
  • "tool": "string"
}

List Project Contracts

Every interface contract, its latest check and its status.

path Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{
  • "contracts": [
    ],
  • "project_id": "string"
}

Check Project Contracts

Evaluate the contracts against the current revisions and record each result.

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
required
Key (string) or Key (null) (Key)
Any of
string (Key)

Responses

Request samples

Content type
application/json
{
  • "key": "string"
}

Response samples

Content type
application/json
{
  • "checks": [
    ],
  • "project_id": "string"
}

Agree Contract

One owning domain agrees to the contract's current interface version.

path Parameters
project_id
required
string (Project Id)
key
required
string (Key)
Request Body schema: application/json
required
domain
required
string (Domain)

The owning domain agreeing (mechanical, electronics, ...)

rationale
string (Rationale) <= 2000 characters
Default: ""

Responses

Request samples

Content type
application/json
{
  • "domain": "string",
  • "rationale": ""
}

Response samples

Content type
application/json
{
  • "contract": "string",
  • "created": true,
  • "decision_id": "string"
}

Link Contract Item

Name the item that implements one side of a contract (a new revision).

path Parameters
project_id
required
string (Project Id)
key
required
string (Key)
Request Body schema: application/json
required
Item Key (string) or Item Key (null) (Item Key)

The item (KEY); null unlinks

role
required
string (Role)

The side: enclosure, pcb, pinmap, firmware, ...

Responses

Request samples

Content type
application/json
{
  • "item_key": "string",
  • "role": "string"
}

Response samples

Content type
application/json
{ }

Get Dfm

The project's current DFM findings by component, status and profile versions.

path Parameters
project_id
required
string (Project Id)
query Parameters
history
boolean (History)
Default: false

Include stale and superseded sets

Responses

Response samples

Content type
application/json
{
  • "blocking": 0,
  • "components": [
    ],
  • "disclaimer": "Preliminary manufacturing guidance from heuristic rules. Not an analysis pass, not a supplier confirmation and not a manufacturing release.",
  • "heuristic_only": true,
  • "history": [
    ],
  • "note": "string",
  • "profiles": [
    ],
  • "project_id": "string",
  • "status": "string",
  • "status_label": "string",
  • "suggestions": 0,
  • "verification_open": 0
}

Get Release Checklist

The manufacturing release checklist for the current revision, with Create's readiness.

applies: false when no process with exact DFM checks is selected.

path Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{ }

Evaluate Dfm

Run the heuristic DFM rules now and return the updated findings.

Preliminary guidance only: a component's status is issues_found, preliminary_guidance, analysis_pending or not_assessed, never an analysis pass.

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
Any of
Array of Component Ids (strings) or Component Ids (null) (Component Ids)
Any of
<= 100 items
Array (<= 100 items)
string

Responses

Request samples

Content type
application/json
Example
{
  • "component_ids": [
    ]
}

Response samples

Content type
application/json
{
  • "blocking": 0,
  • "components": [
    ],
  • "disclaimer": "Preliminary manufacturing guidance from heuristic rules. Not an analysis pass, not a supplier confirmation and not a manufacturing release.",
  • "heuristic_only": true,
  • "history": [
    ],
  • "note": "string",
  • "profiles": [
    ],
  • "project_id": "string",
  • "status": "string",
  • "status_label": "string",
  • "suggestions": 0,
  • "verification_open": 0
}

Run Exact Dfm

Schedule the exact checks for a validated CAD revision (or run them now with wait).

Refused (409) for a revision that is not validated; scheduled: false with the reason when the component's process has no exact checks.

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
required
Array of Build Direction (numbers) or Build Direction (null) (Build Direction)
Item Key (string) or Item Key (null) (Item Key)
Node Id (string) or Node Id (null) (Node Id)
wait
boolean (Wait)
Default: false

Responses

Request samples

Content type
application/json
{
  • "build_direction": [
    ],
  • "item_key": "string",
  • "node_id": "string",
  • "wait": false
}

Response samples

Content type
application/json
{ }

Decide Finding

Keep the design, try the suggested fix, or explore another process.

path Parameters
project_id
required
string (Project Id)
finding_id
required
string (Finding Id)
Request Body schema: application/json
required
decision
required
string (Decision)
Enum: "keep_design" "try_fix" "explore_process"
reason
string (Reason) <= 500 characters
Default: ""

Responses

Request samples

Content type
application/json
{
  • "decision": "keep_design",
  • "reason": ""
}

Response samples

Content type
application/json
{ }

Get Dfm Report

The latest DFM report, with whether the revisions it read are still current.

path Parameters
project_id
required
string (Project Id)
query Parameters
format
string (Format)
Default: "json"
Enum: "json" "markdown"

markdown: the rendered copy

Responses

Response samples

Content type
application/json
null

Generate Dfm Report

Generate (or reuse) the revision-specific DFM report and store it in the twin.

path Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{ }

Get Dfm Report By Id

One stored DFM report by id (older reports stay browsable, marked stale).

path Parameters
project_id
required
string (Project Id)
report_id
required
string (Report Id)

Responses

Response samples

Content type
application/json
{ }

Record Verification

Record evidence for a physical or supplier verification item.

The item reads awaiting_approval and an approval is filed; it is satisfied only when a reviewer approves that approval.

path Parameters
project_id
required
string (Project Id)
item_id
required
string (Item Id)
Request Body schema: application/json
required
Attachment Base64 (string) or Attachment Base64 (null) (Attachment Base64)
Attachment Name (string) or Attachment Name (null) (Attachment Name)
note
string (Note) <= 2000 characters
Default: ""

Responses

Request samples

Content type
application/json
{
  • "attachment_base64": "string",
  • "attachment_name": "string",
  • "note": ""
}

Response samples

Content type
application/json
{ }

List Project Impacts

Recorded impacts, newest first.

path Parameters
project_id
required
string (Project Id)
query Parameters
limit
integer (Limit) [ 1 .. 200 ]
Default: 20

Responses

Response samples

Content type
application/json
{
  • "impacts": [
    ],
  • "project_id": "string"
}

Preview Project Impact

What a proposed change to item_key would affect. Writes nothing.

The new revision defaults to the head plus one. changed_parameters narrows the walk to edges whose coupled parameters it touches; leave it out when unknown. Reruns carry the disposition the project's approval policy would give them.

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
required
Array of Changed Parameters (strings) or Changed Parameters (null) (Changed Parameters)
include_unaffected
boolean (Include Unaffected)
Default: false
item_key
required
string (Item Key)

The item that would change (KEY)

max_depth
integer (Max Depth) [ 1 .. 8 ]
Default: 4
New Revision (integer) or New Revision (null) (New Revision)
Old Revision (integer) or Old Revision (null) (Old Revision)

Responses

Request samples

Content type
application/json
{
  • "changed_parameters": [
    ],
  • "include_unaffected": false,
  • "item_key": "string",
  • "max_depth": 4,
  • "new_revision": 0,
  • "old_revision": 0
}

Response samples

Content type
application/json
{ }

Get Project Impact

One recorded impact: by its id, by KEY@n (the change to that revision), or by a bare KEY (its latest change).

path Parameters
project_id
required
string (Project Id)
change_or_revision
required
string (Change Or Revision)

Responses

Response samples

Content type
application/json
{ }

List Project Interfaces

Every interface edge in the project, and the items they join.

Derived edges (simulation_input_of from a simulation's own pins, feature_of from the sketch layer) carry derived: true. An edge whose pinned revision is behind the item's head says so in source_behind / target_behind.

path Parameters
project_id
required
string (Project Id)
query Parameters
include_removed
boolean (Include Removed)
Default: false
include_derived
boolean (Include Derived)
Default: true

Responses

Response samples

Content type
application/json
{
  • "edges": [
    ],
  • "nodes": [
    ],
  • "project_id": "string"
}

Declare Project Interface

A person declares an interface edge; it is confirmed at once.

Declaring a link an inference already proposed confirms that proposal.

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
required
coupled_parameters
Array of strings (Coupled Parameters)
rationale
string (Rationale)
Default: ""
source
required
string (Source)

An item key (KEY or KEY@n) or record:

target
required
string (Target)

An item key (KEY or KEY@n) or record:

type
required
string (Type)

mounts_to, clearance_to, connects_via, pin_maps_to, ...

Responses

Request samples

Content type
application/json
{
  • "coupled_parameters": [
    ],
  • "rationale": "",
  • "source": "string",
  • "target": "string",
  • "type": "string"
}

Response samples

Content type
application/json
{
  • "created": false,
  • "edge": { }
}

Propose Project Interfaces

Propose edges from recorded data (board and enclosure fields, pin map and firmware sources). Each new one is proposed, never confirmed.

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
required
Item Key (string) or Item Key (null) (Item Key)
Any of
string (Item Key)

Responses

Request samples

Content type
application/json
{
  • "item_key": "string"
}

Response samples

Content type
application/json
{
  • "already": [
    ],
  • "proposed": [
    ],
  • "skipped": [
    ]
}

Remove Project Interface

A person removes an edge. It is kept as removed and never re-proposed.

path Parameters
project_id
required
string (Project Id)
edge_id
required
string (Edge Id)
query Parameters
reason
string (Reason)
Default: ""

Responses

Response samples

Content type
application/json
{
  • "created": false,
  • "edge": { }
}

Confirm Project Interface

A person confirms an edge. It is re-pinned to both items' current heads.

path Parameters
project_id
required
string (Project Id)
edge_id
required
string (Edge Id)

Responses

Response samples

Content type
application/json
{
  • "created": false,
  • "edge": { }
}

Promote

Promote an interpretation (SKI-... for its head, SKI-...@n) to a parametric sketch.

Only its accepted constraints are kept. The gateway re-checks each of them on the geometry and refuses with 409 if one does not hold, if none is accepted, or if the sketch has changed since. Depth, angle and material are never invented: the feature plan marks them required_input. The result waits for approval. A retried promote_id returns what it already made.

path Parameters
project_id
required
string (Project Id)
interpretation_key
required
string (Interpretation Key)
Request Body schema: application/json
required
name
string (Name) [ 1 .. 120 ] characters
Default: "Parametric sketch"
promote_id
required
string (Promote Id) [ 8 .. 100 ] characters ^[A-Za-z0-9_-]+$

Responses

Request samples

Content type
application/json
{
  • "name": "Parametric sketch",
  • "promote_id": "stringst"
}

Response samples

Content type
application/json
{
  • "accepted_count": 0,
  • "approval_id": "string",
  • "approved": false,
  • "authority": "human_accepted",
  • "dropped_count": 0,
  • "duplicate": false,
  • "feature_plan": [
    ],
  • "interpretation_ref": "string",
  • "item_key": "string",
  • "item_ref": "string",
  • "node_id": "string",
  • "operation_id": "string",
  • "plane_id": "string",
  • "promote_id": "string",
  • "revision": 0,
  • "sketch_ref": "string",
  • "unit": "unknown"
}

Apply Item Migration

Apply a reviewed plan. Requires approve: true; refused when the twin changed.

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
required
approve
boolean (Approve)
Default: false

Must be true: applying the plan writes to the twin.

required
object (MigrationPlan)

The plan exactly as the dry run returned it.

reason
string (Reason)
Default: ""

Why this plan is approved (kept in the log).

Responses

Request samples

Content type
application/json
{
  • "approve": false,
  • "plan": {
    },
  • "reason": ""
}

Response samples

Content type
application/json
{
  • "approved_by": "string",
  • "approver_verified": true,
  • "result": {
    }
}

Plan Item Migration

Dry run: how the project's legacy nodes would become items. Writes nothing.

path Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{
  • "empty": true,
  • "plan": {
    },
  • "report": "string"
}

Get Candidate Faces

The planar faces of a validated CAD revision, with the GLB mesh map. Reads only.

path Parameters
project_id
required
string (Project Id)
item_key
required
string (Item Key)
query Parameters
Revision (integer) or Revision (null) (Revision)

Responses

Response samples

Content type
application/json
{
  • "cached": false,
  • "face_count": 0,
  • "faces": [
    ],
  • "geometry_state": "string",
  • "item_key": "string",
  • "item_ref": "string",
  • "mesh_map": {
    },
  • "mesh_source": "",
  • "node_id": "string",
  • "part_size": 0,
  • "project_id": "string",
  • "revision": 0,
  • "solid_count": 0
}

Stream Live Assembly

SSE: a live.snapshot of the project's assemblies in progress, then one live.event per placement change.

path Parameters
project_id
required
string (Project Id)
header Parameters
Last-Event-Id (string) or Last-Event-Id (null) (Last-Event-Id)

Responses

Response samples

Content type
application/json
null

Ingest Live Event

Accept a placement event from a process that has no stream of its own.

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
required
assembly
required
string (Assembly) [ 1 .. 200 ] characters
LivePart (object) or null
Array of Position (numbers) or Position (null) (Position)
Array of Rotation (numbers) or Rotation (null) (Rotation)
type
required
string (Type)
Enum: "assembly.part_placed" "assembly.part_removed" "assembly.cleared"

Responses

Request samples

Content type
application/json
{
  • "assembly": "string",
  • "part": {
    },
  • "position": [
    ],
  • "rotation": [
    ],
  • "type": "assembly.part_placed"
}

Response samples

Content type
application/json
{
  • "property1": 0,
  • "property2": 0
}

Live Assembly State

The in-progress assemblies and their placed parts, as of now.

path Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{ }

Get Manufacturing Context

The current manufacturing context. recorded: false and ref unresolved when none.

path Parameters
project_id
required
string (Project Id)
query Parameters
Component (string) or Component (null) (Component)

Responses

Response samples

Content type
application/json
{
  • "changed": [
    ],
  • "component_key": "string",
  • "created_at": "string",
  • "dfm_status": "string",
  • "dfm_status_label": "string",
  • "inherited": false,
  • "item_key": "string",
  • "manufacturing_note": "string",
  • "node_id": "string",
  • "project_id": "string",
  • "prompt_block": "string",
  • "record": {
    },
  • "recorded": true,
  • "ref": "string",
  • "refused": [
    ],
  • "revision": 0,
  • "stale": [
    ]
}

Put Manufacturing Context

State manufacturing context fields, as the context's next revision.

A person's values are user_stated and win over assumptions and over older statements or decisions; null clears a field. An agent caller only proposes: its values are assumptions, which never override a stated value or a decision. Nothing changed means no new revision.

path Parameters
project_id
required
string (Project Id)
query Parameters
Component (string) or Component (null) (Component)
Request Body schema: application/json
required
change_reason
string (Change Reason) <= 300 characters
Default: ""
Expected Revision (integer) or Expected Revision (null) (Expected Revision)
object (Fields)
object (Notes)

Responses

Request samples

Content type
application/json
{
  • "change_reason": "",
  • "expected_revision": 0,
  • "fields": { },
  • "notes": {
    }
}

Response samples

Content type
application/json
{
  • "changed": [
    ],
  • "component_key": "string",
  • "created_at": "string",
  • "dfm_status": "string",
  • "dfm_status_label": "string",
  • "inherited": false,
  • "item_key": "string",
  • "manufacturing_note": "string",
  • "node_id": "string",
  • "project_id": "string",
  • "prompt_block": "string",
  • "record": {
    },
  • "recorded": true,
  • "ref": "string",
  • "refused": [
    ],
  • "revision": 0,
  • "stale": [
    ]
}

Get Manufacturing Context History

Every revision of the context, oldest first, with what each one changed.

path Parameters
project_id
required
string (Project Id)
query Parameters
Component (string) or Component (null) (Component)

Responses

Response samples

Content type
application/json
{ }

Propose Manufacturing Context

Candidate processes and materials, as assumptions. Writes nothing.

Proposed from the intended use, the envelope and the product text, then checked against the machine library and rank_manufacturing_processes. Always at least two candidates, so no method is locked in silently. To accept one, state it with PUT.

path Parameters
project_id
required
string (Project Id)
query Parameters
Component (string) or Component (null) (Component)
Request Body schema: application/json
Any of
text
string (Text) <= 1500 characters
Default: ""

Responses

Request samples

Content type
application/json
Example
{
  • "text": ""
}

Response samples

Content type
application/json
{
  • "based_on": "string",
  • "candidates": [
    ],
  • "component_key": "string",
  • "note": "Assumptions proposed by MetaForge. Nothing is recorded until a person states a process or material (PUT the manufacturing context).",
  • "process_known": true,
  • "project_id": "string",
  • "unknown_inputs": [
    ]
}

Project Maturity

Per-component maturity and the product's readiness, with evidence for each claim.

path Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{
  • "components": [
    ],
  • "has_assembly": false,
  • "product": {
    },
  • "project_id": "string"
}

Post Parameters

Commit a parameter edit as a new parametric revision and schedule the exact build.

path Parameters
project_id
required
string (Project Id)
sketch_key
required
string (Sketch Key)
Request Body schema: application/json
required
base_revision
required
integer (Base Revision) >= 1
build
boolean (Build)
Default: true
ComparisonTolerance (object) or null
object (Dimensions)
Feature Id (string) or Feature Id (null) (Feature Id)
object (Geometry)
Preview Ms (number) or Preview Ms (null) (Preview Ms)
source
string (Source)
Default: "numeric"
Enum: "drag" "numeric"
object (Values)

Responses

Request samples

Content type
application/json
{
  • "base_revision": 1,
  • "build": true,
  • "comparison_tolerance": {
    },
  • "dimensions": {
    },
  • "feature_id": "string",
  • "geometry": {
    },
  • "preview_ms": 0,
  • "source": "drag",
  • "values": {
    }
}

Response samples

Content type
application/json
{ }

Get Preview Definition

The L2 preview definition of a parametric sketch's feature, and its exact status.

path Parameters
project_id
required
string (Project Id)
sketch_key
required
string (Sketch Key)
query Parameters
Feature Id (string) or Feature Id (null) (Feature Id)
Job Id (string) or Job Id (null) (Job Id)

Responses

Response samples

Content type
application/json
{ }

Get Project Prd

The project's prd, rendered from its current prose and requirements.

path Parameters
project_id
required
string (Project Id)
query Parameters
Run Id (string) or Run Id (null) (Run Id)

Read as this design-flow run: include its open drafts

Responses

Response samples

Content type
application/json
{
  • "markdown": "string",
  • "project_id": "string",
  • "prose_ref": "string",
  • "refs": [
    ],
  • "requirement_count": 0,
  • "requirement_refs": [
    ],
  • "sources": [
    ],
  • "title": "string"
}

Get Reconstruction

The latest feature history proposal per component.

path Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{
  • "accepted": false,
  • "assembly_decision_id": "string",
  • "components": [
    ],
  • "concept_accepted": true,
  • "project_id": "string",
  • "summary": ""
}

Post Reconstruction

Propose an editable feature history for the accepted concept's components.

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
Any of
component_ids
Array of strings (Component Ids) <= 60 items
use_llm
boolean (Use Llm)
Default: false

Responses

Request samples

Content type
application/json
Example
{
  • "component_ids": [
    ],
  • "use_llm": false
}

Response samples

Content type
application/json
{
  • "operation_id": "string",
  • "project_id": "string",
  • "proposals": [
    ],
  • "reused": [
    ],
  • "skipped": [
    ],
  • "summary": ""
}

Post Accept

Accept (and edit) features of one proposal; bodies become parametric sketches.

path Parameters
project_id
required
string (Project Id)
key
required
string (Key)
Request Body schema: application/json
required
Accepted By (string) or Accepted By (null) (Accepted By)
Base Revision (integer) or Base Revision (null) (Base Revision)
object (Choices)
object (Edits)
feature_ids
required
Array of strings (Feature Ids) [ 1 .. 100 ] items

Responses

Request samples

Content type
application/json
{
  • "accepted_by": "string",
  • "base_revision": 1,
  • "choices": {
    },
  • "edits": {
    },
  • "feature_ids": [
    ]
}

Response samples

Content type
application/json
{
  • "accepted": [
    ],
  • "added_dependencies": [
    ],
  • "existing": {
    },
  • "operation_id": "string",
  • "process_written": "string",
  • "project_id": "string",
  • "proposal": {
    },
  • "rejected": [
    ],
  • "sketches": [
    ]
}

List Generations

Accepted concept lines (head and history) and recent proposals.

path Parameters
project_id
required
string (Project Id)
query Parameters
limit
integer (Limit) [ 1 .. 200 ]
Default: 30

Responses

Response samples

Content type
application/json
{ }

Start Generation

Start a concept sketch generation as a job on its target.

The mode follows from the request: a sketch_key refines that sketch, active references condition it, otherwise it is drawn from text. A mask limits it to a region. n_variants defaults to 1. Each output is stored as a proposal; nothing replaces the accepted concept until a person accepts one.

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
required
Baseline Key (string) or Baseline Key (null) (Baseline Key)
Component (string) or Component (null) (Component)
confirm_spend
boolean (Confirm Spend)
Default: false
constraints
Array of strings (Constraints) <= 20 items
Expected Baseline (string) or Expected Baseline (null) (Expected Baseline)
intent
required
string (Intent) [ 1 .. 1500 ] characters
Array of objects (Locked Regions) <= 10 items
manufacturability_variant
boolean (Manufacturability Variant)
Default: false
Region (object) or null
mask_instruction
string (Mask Instruction) <= 500 characters
Default: ""
Mode (string) or Mode (null) (Mode)
n_variants
integer (N Variants) [ 1 .. 4 ]
Default: 1
negative
Array of strings (Negative) <= 20 items
protected_features
Array of strings (Protected Features) <= 20 items
reference_ids
Array of strings (Reference Ids) <= 8 items
size
string (Size)
Default: "1024x1024"
Sketch Key (string) or Sketch Key (null) (Sketch Key)
Sketch Revision (string) or Sketch Revision (null) (Sketch Revision)
speculative
boolean (Speculative)
Default: false
style
string (Style)
Default: "industrial_sketch"
Enum: "industrial_sketch" "marker_render" "line_art" "concept_drawing"

Responses

Request samples

Content type
application/json
{
  • "baseline_key": "string",
  • "component": "string",
  • "confirm_spend": false,
  • "constraints": [
    ],
  • "expected_baseline": "string",
  • "intent": "string",
  • "locked_regions": [
    ],
  • "manufacturability_variant": false,
  • "mask": {
    },
  • "mask_instruction": "",
  • "mode": "text",
  • "n_variants": 1,
  • "negative": [
    ],
  • "protected_features": [
    ],
  • "reference_ids": [
    ],
  • "size": "1024x1024",
  • "sketch_key": "string",
  • "sketch_revision": "string",
  • "speculative": false,
  • "style": "industrial_sketch"
}

Response samples

Content type
application/json
{
  • "accepted_baseline": { },
  • "authority": "illustrative",
  • "base_revision": "string",
  • "error": "string",
  • "expected_seconds": 0,
  • "job_id": "string",
  • "mode": "string",
  • "operation_id": "string",
  • "result": { },
  • "reused": false,
  • "status": "string",
  • "target_key": "string"
}

Compare Generations

Two concepts side by side: their records and the share of pixels that differ.

path Parameters
project_id
required
string (Project Id)
query Parameters
a
required
string (A)

A generated concept node id

b
required
string (B)

Another generated concept node id

Responses

Response samples

Content type
application/json
{ }

Accept Generation

Make a proposal the accepted concept. The previous one stays in the line's history.

path Parameters
project_id
required
string (Project Id)
node_id
required
string (Node Id)
Request Body schema: application/json
required
Expected Baseline (string) or Expected Baseline (null) (Expected Baseline)
Any of
<= 200 characters
string (Expected Baseline) <= 200 characters

Responses

Request samples

Content type
application/json
{
  • "expected_baseline": "string"
}

Response samples

Content type
application/json
{ }

Branch Generation

Start a separate accepted line from this concept; the current one is untouched.

path Parameters
project_id
required
string (Project Id)
node_id
required
string (Node Id)
Request Body schema: application/json
required
Name (string) or Name (null) (Name)
Any of
<= 120 characters
string (Name) <= 120 characters

Responses

Request samples

Content type
application/json
{
  • "name": "string"
}

Response samples

Content type
application/json
{ }

Reject Generation

Set a proposal aside. It stays in the history, marked rejected.

path Parameters
project_id
required
string (Project Id)
node_id
required
string (Node Id)

Responses

Response samples

Content type
application/json
{ }

Save Sketch

Save a person's freehand sketch as the next revision of the project's sketch.

The strokes are stored as JSON with a generated SVG. The revision is a human sketch, not CAD: its scale is unknown and its plane is unassigned. A retried save_id returns the revision it already made, with duplicate set, and adds nothing. The save is reported on the project's operation stream as a sketch operation.

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
required
Base Revision (string) or Base Revision (null) (Base Revision)
Item Key (string) or Item Key (null) (Item Key)
name
string (Name) [ 1 .. 120 ] characters
Default: "Sketch"
plane_state
string (Plane State)
Default: "UNASSIGNED"
Value: "UNASSIGNED"
Reference Node Id (string) or Reference Node Id (null) (Reference Node Id)
save_id
required
string (Save Id) [ 8 .. 100 ] characters ^[A-Za-z0-9_-]+$
scale
string (Scale)
Default: "unknown"
Value: "unknown"
Array of objects (Strokes) <= 2000 items
SketchViewport (object) or null

Responses

Request samples

Content type
application/json
{
  • "base_revision": "string",
  • "item_key": "string",
  • "name": "Sketch",
  • "plane_state": "UNASSIGNED",
  • "reference_node_id": "string",
  • "save_id": "stringst",
  • "scale": "unknown",
  • "strokes": [
    ],
  • "viewport": {
    }
}

Response samples

Content type
application/json
{
  • "authority": "human_sketch",
  • "content_hash": "string",
  • "duplicate": false,
  • "item_key": "string",
  • "item_ref": "string",
  • "node_id": "string",
  • "operation_id": "string",
  • "parent_revision": "string",
  • "plane_state": "UNASSIGNED",
  • "revision": 0,
  • "save_id": "string",
  • "scale": "unknown",
  • "stroke_count": 0
}

Get Current Sketch

The current revision of the project's sketch, with its strokes. 404 when there is none.

path Parameters
project_id
required
string (Project Id)
query Parameters
Item Key (string) or Item Key (null) (Item Key)

The sketch item; the newest when left out

Responses

Response samples

Content type
application/json
{
  • "authority": "human_sketch",
  • "created_at": "string",
  • "item_key": "string",
  • "item_ref": "string",
  • "name": "string",
  • "node_id": "string",
  • "parent_revision": "string",
  • "plane_state": "UNASSIGNED",
  • "reference_node_id": "string",
  • "revision": 0,
  • "save_id": "string",
  • "scale": "unknown",
  • "space": "sketch_unit",
  • "strokes": [
    ],
  • "viewport": { }
}

Store Interpretation

Store a proposal: primitives fitted to a saved sketch and proposed constraints.

The browser computes it; the gateway validates its shape, re-checks its basic geometry and records it as the next revision of the sketch's SKI-* item, depending on the sketch revision it was made from. Every value in it is estimated. A retried interpretation_id returns the revision it already made. 409 when the sketch has moved on since.

path Parameters
project_id
required
string (Project Id)
item_key
required
string (Item Key)
Request Body schema: application/json
required
Base Revision (string) or Base Revision (null) (Base Revision)
required
object (SketchInterpretation)

A proposal: fitted primitives and constraints from one sketch revision.

name
string (Name) [ 1 .. 120 ] characters
Default: "Sketch interpretation"

Responses

Request samples

Content type
application/json
{
  • "base_revision": "string",
  • "interpretation": {
    },
  • "name": "Sketch interpretation"
}

Response samples

Content type
application/json
{
  • "accepted_count": 0,
  • "authority": "proposal",
  • "constraint_count": 0,
  • "duplicate": false,
  • "interpretation_id": "string",
  • "item_key": "string",
  • "item_ref": "string",
  • "node_id": "string",
  • "operation_id": "string",
  • "plane_id": "string",
  • "primitive_count": 0,
  • "revision": 0,
  • "sketch_ref": "string",
  • "unit": "unknown",
  • "unsatisfied": [
    ]
}

Get Sketch Plane

The sketch's current plane. An UNASSIGNED plane when none was ever set.

path Parameters
project_id
required
string (Project Id)
sketch_key
required
string (Sketch Key)

Responses

Response samples

Content type
application/json
{
  • "action": "string",
  • "can_undo": false,
  • "item_key": "string",
  • "item_ref": "string",
  • "mode": "string",
  • "node_id": "string",
  • "parent_revision": "string",
  • "pinned_sketch_ref": "string",
  • "plane": {
    },
  • "revision": 0,
  • "sketch_key": "string",
  • "sketch_ref": "string"
}

Archive Sketch Plane

Archive the sketch's plane as a new revision. Undo brings it back.

path Parameters
project_id
required
string (Project Id)
sketch_key
required
string (Sketch Key)
Request Body schema: application/json
required
Base Revision (string) or Base Revision (null) (Base Revision)
op_id
required
string (Op Id) [ 8 .. 100 ] characters ^[A-Za-z0-9_-]+$

Responses

Request samples

Content type
application/json
{
  • "base_revision": "string",
  • "op_id": "stringst"
}

Response samples

Content type
application/json
{
  • "action": "string",
  • "can_undo": false,
  • "duplicate": false,
  • "item_key": "string",
  • "item_ref": "string",
  • "mode": "string",
  • "node_id": "string",
  • "operation_id": "string",
  • "parent_revision": "string",
  • "pinned_sketch_ref": "string",
  • "plane": {
    },
  • "revision": 0,
  • "sketch_key": "string",
  • "sketch_ref": "string",
  • "sketch_revision_written": "string",
  • "unchanged": false
}

Attach Sketch To Face

Put the sketch on a planar face of a validated CAD revision.

The plane frame comes from the face: origin at the face centroid on its plane, U along the longest straight edge of its outer loop, the normal outward, right-handed. The face's geometry signature is stored so the face can be found again when the CAD item changes. A retried op_id returns the revision it already made.

path Parameters
project_id
required
string (Project Id)
sketch_key
required
string (Sketch Key)
Request Body schema: application/json
required
Base Revision (string) or Base Revision (null) (Base Revision)
face_id
required
string (Face Id) [ 1 .. 200 ] characters
item_key
required
string (Item Key) [ 1 .. 120 ] characters
op_id
required
string (Op Id) [ 8 .. 100 ] characters ^[A-Za-z0-9_-]+$
Revision (integer) or Revision (null) (Revision)

Responses

Request samples

Content type
application/json
{
  • "base_revision": "string",
  • "face_id": "string",
  • "item_key": "string",
  • "op_id": "stringst",
  • "revision": 1
}

Response samples

Content type
application/json
{
  • "action": "string",
  • "can_undo": false,
  • "duplicate": false,
  • "item_key": "string",
  • "item_ref": "string",
  • "mode": "string",
  • "node_id": "string",
  • "operation_id": "string",
  • "parent_revision": "string",
  • "pinned_sketch_ref": "string",
  • "plane": {
    },
  • "revision": 0,
  • "sketch_key": "string",
  • "sketch_ref": "string",
  • "sketch_revision_written": "string",
  • "unchanged": false
}

Confirm Sketch Plane

Place the sketch on the plane the person chose, as the plane item's next revision.

The choice is applied as given; no inference is consulted. A retried op_id returns the revision it already made; choosing the plane the sketch is already on changes nothing.

path Parameters
project_id
required
string (Project Id)
sketch_key
required
string (Sketch Key)
Request Body schema: application/json
required
Base Revision (string) or Base Revision (null) (Base Revision)
Confidence (number) or Confidence (null) (Confidence)
op_id
required
string (Op Id) [ 8 .. 100 ] characters ^[A-Za-z0-9_-]+$
Array of items (Origin) = 3 items
Default: [0,0,0]
Owner Component (string) or Owner Component (null) (Owner Component)
principal
required
string (PrincipalPlane)
Enum: "XY" "XZ" "YZ"
proposed_by
string (ProposedBy)
Default: "user"
Enum: "user" "face" "existing_sketch" "view" "component_frame" "model"

Where a plane came from, in the order inference consults them (PLN-002).

Scale (number) or Scale (null) (Scale)
unit
string (PlaneUnit)
Default: "unknown"
Enum: "mm" "in" "unknown"

Responses

Request samples

Content type
application/json
{
  • "base_revision": "string",
  • "confidence": 0,
  • "op_id": "stringst",
  • "origin": [
    ],
  • "owner_component": "string",
  • "principal": "XY",
  • "proposed_by": "user",
  • "scale": 1,
  • "unit": "mm"
}

Response samples

Content type
application/json
{
  • "action": "string",
  • "can_undo": false,
  • "duplicate": false,
  • "item_key": "string",
  • "item_ref": "string",
  • "mode": "string",
  • "node_id": "string",
  • "operation_id": "string",
  • "parent_revision": "string",
  • "pinned_sketch_ref": "string",
  • "plane": {
    },
  • "revision": 0,
  • "sketch_key": "string",
  • "sketch_ref": "string",
  • "sketch_revision_written": "string",
  • "unchanged": false
}

Propose Sketch Plane

A candidate plane for the sketch. Writes nothing.

Sources in order: the explicit selection, the plane of another sketch on the same component, the client's orthographic view hint, the component frame, then a heuristic (keywords, the drawing's shape). Each candidate says who proposed it and how confident it is; ambiguous is set when the top two disagree and are close, or the best guess is weak. A plane already confirmed for this sketch is returned as the candidate.

path Parameters
project_id
required
string (Project Id)
sketch_key
required
string (Sketch Key)
Request Body schema: application/json
required
PrincipalPlane (string) or null
Face Ref (string) or Face Ref (null) (Face Ref)
Hint Text (string) or Hint Text (null) (Hint Text)
Owner Component (string) or Owner Component (null) (Owner Component)
View Hint (string) or View Hint (null) (View Hint)

Responses

Request samples

Content type
application/json
{
  • "explicit": "XY",
  • "face_ref": "string",
  • "hint_text": "string",
  • "owner_component": "string",
  • "view_hint": "front"
}

Response samples

Content type
application/json
{
  • "ambiguous": true,
  • "candidate": {
    },
  • "candidates": [
    ],
  • "current": {
    },
  • "notes": [
    ],
  • "requires_confirmation": true,
  • "sketch_key": "string",
  • "sketch_ref": "string"
}

Reassign Sketch Plane

Move the sketch to another plane in mode.

preserve_local keeps the stroke coordinates (the sketch moves with its plane). preserve_world keeps every point where it is and is refused when the sketch does not lie in the new plane. project_to_target projects the points onto the new plane. A mode that moves the strokes saves them as the sketch's next revision.

path Parameters
project_id
required
string (Project Id)
sketch_key
required
string (Sketch Key)
Request Body schema: application/json
required
Base Revision (string) or Base Revision (null) (Base Revision)
mode
required
string (Mode)
Enum: "preserve_world" "preserve_local" "project_to_target"
op_id
required
string (Op Id) [ 8 .. 100 ] characters ^[A-Za-z0-9_-]+$
Array of Origin (items) or Origin (null) (Origin)
target
required
string (PrincipalPlane)
Enum: "XY" "XZ" "YZ"

Responses

Request samples

Content type
application/json
{
  • "base_revision": "string",
  • "mode": "preserve_world",
  • "op_id": "stringst",
  • "origin": [
    ],
  • "target": "XY"
}

Response samples

Content type
application/json
{
  • "action": "string",
  • "can_undo": false,
  • "duplicate": false,
  • "item_key": "string",
  • "item_ref": "string",
  • "mode": "string",
  • "node_id": "string",
  • "operation_id": "string",
  • "parent_revision": "string",
  • "pinned_sketch_ref": "string",
  • "plane": {
    },
  • "revision": 0,
  • "sketch_key": "string",
  • "sketch_ref": "string",
  • "sketch_revision_written": "string",
  • "unchanged": false
}

Preview Sketch Plane Reassign

Where the strokes would land on the new plane in mode. Writes nothing.

path Parameters
project_id
required
string (Project Id)
sketch_key
required
string (Sketch Key)
Request Body schema: application/json
required
Base Revision (string) or Base Revision (null) (Base Revision)
mode
required
string (Mode)
Enum: "preserve_world" "preserve_local" "project_to_target"
op_id
required
string (Op Id) [ 8 .. 100 ] characters ^[A-Za-z0-9_-]+$
Array of Origin (items) or Origin (null) (Origin)
target
required
string (PrincipalPlane)
Enum: "XY" "XZ" "YZ"

Responses

Request samples

Content type
application/json
{
  • "base_revision": "string",
  • "mode": "preserve_world",
  • "op_id": "stringst",
  • "origin": [
    ],
  • "target": "XY"
}

Response samples

Content type
application/json
{
  • "committable": true,
  • "exact": true,
  • "max_off_plane": 0,
  • "mode": "preserve_world",
  • "rewrites_strokes": true,
  • "sketch_key": "string",
  • "sketch_ref": "string",
  • "source": {
    },
  • "strokes": [
    ],
  • "target": {
    },
  • "warnings": [
    ]
}

Resolve Sketch Reattachment

Answer REATTACHMENT_REQUIRED: pick a face, or detach the sketch.

pick_face attaches to face_id on the attached item's current revision; detach_principal moves the sketch onto principal keeping its local coordinates; detach_unassigned keeps it as a concept with no plane. Refused (409) when the plane does not need it.

path Parameters
project_id
required
string (Project Id)
sketch_key
required
string (Sketch Key)
Request Body schema: application/json
required
action
required
string (Action)
Enum: "pick_face" "detach_unassigned" "detach_principal"
Base Revision (string) or Base Revision (null) (Base Revision)
Face Id (string) or Face Id (null) (Face Id)
op_id
required
string (Op Id) [ 8 .. 100 ] characters ^[A-Za-z0-9_-]+$
PrincipalPlane (string) or null
Revision (integer) or Revision (null) (Revision)

Responses

Request samples

Content type
application/json
{
  • "action": "pick_face",
  • "base_revision": "string",
  • "face_id": "string",
  • "op_id": "stringst",
  • "principal": "XY",
  • "revision": 1
}

Response samples

Content type
application/json
{
  • "action": "string",
  • "can_undo": false,
  • "duplicate": false,
  • "item_key": "string",
  • "item_ref": "string",
  • "mode": "string",
  • "node_id": "string",
  • "operation_id": "string",
  • "parent_revision": "string",
  • "pinned_sketch_ref": "string",
  • "plane": {
    },
  • "revision": 0,
  • "sketch_key": "string",
  • "sketch_ref": "string",
  • "sketch_revision_written": "string",
  • "unchanged": false
}

Undo Sketch Plane

Restore the plane (and the strokes, if the change moved them) from before the last change, as a new revision. History is never rewritten.

path Parameters
project_id
required
string (Project Id)
sketch_key
required
string (Sketch Key)
Request Body schema: application/json
required
Base Revision (string) or Base Revision (null) (Base Revision)
op_id
required
string (Op Id) [ 8 .. 100 ] characters ^[A-Za-z0-9_-]+$

Responses

Request samples

Content type
application/json
{
  • "base_revision": "string",
  • "op_id": "stringst"
}

Response samples

Content type
application/json
{
  • "action": "string",
  • "can_undo": false,
  • "duplicate": false,
  • "item_key": "string",
  • "item_ref": "string",
  • "mode": "string",
  • "node_id": "string",
  • "operation_id": "string",
  • "parent_revision": "string",
  • "pinned_sketch_ref": "string",
  • "plane": {
    },
  • "revision": 0,
  • "sketch_key": "string",
  • "sketch_ref": "string",
  • "sketch_revision_written": "string",
  • "unchanged": false
}

Make Structured Mesh

Show the concept as simple 3D parts (L1): one node per component, sizes estimated.

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
Any of
Layout Node Id (string) or Layout Node Id (null) (Layout Node Id)
Operation Id (string) or Operation Id (null) (Operation Id)

Responses

Request samples

Content type
application/json
Example
{
  • "layout_node_id": "string",
  • "operation_id": "string"
}

Response samples

Content type
application/json
{
  • "authority": "structured",
  • "component_ids": {
    },
  • "dimensions": "estimated",
  • "format": "glb",
  • "label": "string",
  • "level": "L1",
  • "name": "string",
  • "node_id": "string",
  • "nodes": [
    ],
  • "reused": false,
  • "source_revision": "string",
  • "triangle_count": 0
}

List Twin Relationships

List edges in the Digital Twin graph.

project_id scopes the view to a single project, matching list_twin_nodes. Omitted or empty returns every edge (including unscoped legacy nodes) — preserving the prior global behaviour.

Like list_twin_nodes, history records about a change are left out unless include_history=true.

query Parameters
Project Id (string) or Project Id (null) (Project Id)
include_history
boolean (Include History)
Default: false

Responses

Response samples

Content type
application/json
{
  • "endpoints": {
    },
  • "relationships": [
    ],
  • "skipped_nodes": 0,
  • "total": 0
}

Get Revision Index

Node id -> KEY@n for every revision (and constraint-set constraint) of the project.

query Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{
  • "nodes": {
    },
  • "project_id": "string"
}

Get Run Changes

Revisions a design-flow run produced, and the baselines its gates recorded.

path Parameters
run_id
required
string (Run Id)
query Parameters
Project Id (string) or Project Id (null) (Project Id)

Responses

Response samples

Content type
application/json
{
  • "baselines": [
    ],
  • "revisions": [
    ],
  • "run_id": "string"
}

imagine

Get Component Threads

Every component, followed through Imagine, Develop, Check and Make.

path Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{ }

Post Adopt

Take Develop's part or board for one component thread into the studio.

404 when no thread has that key, 409 when the thread has nothing to adopt, the studio moved past base_revision or is handed over; otherwise the new revision.

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
required
base_revision
required
integer (Base Revision) >= 1

The studio revision the thread was read at.

thread
required
string (Thread) [ 1 .. 300 ] characters

The component thread's key, from GET .../components/thread.

Responses

Request samples

Content type
application/json
{
  • "base_revision": 1,
  • "thread": "string"
}

Response samples

Content type
application/json
{
  • "collections": {
    },
  • "config": { },
  • "config_ref": "string",
  • "engine_url": "string",
  • "handover": {
    },
  • "project_id": "string",
  • "revision": 0,
  • "stale": [
    ],
  • "status": "none",
  • "updated_at": "string",
  • "warnings": [
    ]
}

Get Engine

path Parameters
project_id
required
string (Project Id)
query Parameters
T (string) or T (null) (T)

Responses

Response samples

Content type
application/json
{
  • "detail": [
    ]
}

Get Engine Asset

path Parameters
project_id
required
string (Project Id)
name
required
string (Name)

Responses

Response samples

Content type
application/json
{
  • "detail": [
    ]
}

Post Event

One studio write. A person's acceptance, from an agent, only under delegation.

Confirming an assumption or a scenario is the person's statement. From the agent surface it is refused (403) unless the owner delegates human-authority decisions; then it needs X-MetaForge-Agent and X-MetaForge-On-Behalf-Of (422 without) and is recorded as the agent's acceptance for that person. An assumption so confirmed is recorded as accepted: it stays an assumption.

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
required
required
object (Data)
event_id
required
string (Event Id) [ 1 .. 128 ] characters
kind
required
string (Kind)
Enum: "choice" "scenario" "context_edit" "assumption_confirmed" "requirement" "ledger" "screening" "form_seen"

Responses

Request samples

Content type
application/json
{
  • "data": { },
  • "event_id": "string",
  • "kind": "choice"
}

Response samples

Content type
application/json
{
  • "accepted": true,
  • "duplicate": false,
  • "mapped_to": [
    ]
}

Get Handover

path Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{
  • "items": [
    ],
  • "ready": true
}

Post Handover

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
required
op_id
required
string (Op Id) [ 1 .. 128 ] characters

Responses

Request samples

Content type
application/json
{
  • "op_id": "string"
}

Response samples

Content type
application/json
{
  • "created": [
    ],
  • "handed_over": true,
  • "revision": 0
}

Post Rework

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
required
op_id
required
string (Op Id) [ 1 .. 128 ] characters
reason
required
string (Reason) [ 1 .. 1000 ] characters

Responses

Request samples

Content type
application/json
{
  • "op_id": "string",
  • "reason": "string"
}

Response samples

Content type
application/json
{
  • "collections": {
    },
  • "config": { },
  • "config_ref": "string",
  • "engine_url": "string",
  • "handover": {
    },
  • "project_id": "string",
  • "revision": 0,
  • "stale": [
    ],
  • "status": "none",
  • "updated_at": "string",
  • "warnings": [
    ]
}

Get Studio

path Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{
  • "collections": {
    },
  • "config": { },
  • "config_ref": "string",
  • "engine_url": "string",
  • "handover": {
    },
  • "project_id": "string",
  • "revision": 0,
  • "stale": [
    ],
  • "status": "none",
  • "updated_at": "string",
  • "warnings": [
    ]
}

Patch Studio

The next revision from changes to base_revision, checked as a full config is.

409 when the studio has moved past base_revision, 400 when a change names something that does not exist, 422 when the result fails the formgraph checks; nothing is written.

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
required
base_revision
required
integer (Base Revision) >= 1

The revision the changes were made against.

required
Array of objects (Changes) [ 1 .. 64 ] items

JSON Patch style changes: op add, replace or remove at a JSON Pointer path, with value (not for remove); a list item may be named by its id.

Responses

Request samples

Content type
application/json
{
  • "base_revision": 1,
  • "changes": [
    ]
}

Response samples

Content type
application/json
{
  • "collections": {
    },
  • "config": { },
  • "config_ref": "string",
  • "engine_url": "string",
  • "handover": {
    },
  • "project_id": "string",
  • "revision": 0,
  • "stale": [
    ],
  • "status": "none",
  • "updated_at": "string",
  • "warnings": [
    ]
}

Put Studio

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
required
required
object (Config)
property name*
additional property
any

Responses

Request samples

Content type
application/json
{
  • "config": { }
}

Response samples

Content type
application/json
{
  • "collections": {
    },
  • "config": { },
  • "config_ref": "string",
  • "engine_url": "string",
  • "handover": {
    },
  • "project_id": "string",
  • "revision": 0,
  • "stale": [
    ],
  • "status": "none",
  • "updated_at": "string",
  • "warnings": [
    ]
}

Post Validate

Dry run: every finding at once, a computed verdict, and who clears each.

A POST only because it can carry a config. It is idempotent and writes nothing; handover, accept and rework stay person-gated on their routes.

path Parameters
project_id
required
string (Project Id)
Request Body schema: application/json
Any of
Config (object) or Config (null) (Config)
Array of Gates (strings) or Gates (null) (Gates)
Revision (integer) or Revision (null) (Revision)
Array of Scope (objects) or Scope (null) (Scope)

Responses

Request samples

Content type
application/json
Example
{
  • "config": { },
  • "gates": [
    ],
  • "revision": 0,
  • "scope": [
    ]
}

Response samples

Content type
application/json
{
  • "computed_at": "",
  • "debt": [
    ],
  • "findings": [
    ],
  • "gates": [
    ],
  • "input_fingerprint": "",
  • "level": "V0",
  • "limitations": [
    ],
  • "profile_id": "",
  • "profile_version": "",
  • "project_id": "",
  • "revision_id": "",
  • "revision_number": 0,
  • "schema_version": "2.0",
  • "stale": false,
  • "twin_id": "",
  • "verdict": "invalid"
}

Get Validation

The report for the head revision.

path Parameters
project_id
required
string (Project Id)

Responses

Response samples

Content type
application/json
{
  • "computed_at": "",
  • "debt": [
    ],
  • "findings": [
    ],
  • "gates": [
    ],
  • "input_fingerprint": "",
  • "level": "V0",
  • "limitations": [
    ],
  • "profile_id": "",
  • "profile_version": "",
  • "project_id": "",
  • "revision_id": "",
  • "revision_number": 0,
  • "schema_version": "2.0",
  • "stale": false,
  • "twin_id": "",
  • "verdict": "invalid"
}

uploads

List Uploads

Uploads, newest first.

query Parameters
Project Id (string) or Project Id (null) (Project Id)
Status (string) or Status (null) (Status)

open, pending, approved, rejected, expired

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create Upload

Stage files; they enter the twin only once a person approves the upload.

Request Body schema: multipart/form-data
required
approve
boolean (Approve)
Default: false

Import now; refused for an agent caller

description
string (Description)
Default: ""

What the files are

files
required
Array of strings (Files)

Files, or zips of folders

Project Id (string) or Project Id (null) (Project Id)

Project the files are for

Wp Types (string) or Wp Types (null) (Wp Types)

JSON object of file name to work product type, e.g. {"a.json": "bom"}

Responses

Response samples

Content type
application/json
{
  • "agent": "string",
  • "created_at": "string",
  • "decision": {
    },
  • "description": "",
  • "expires_at": "string",
  • "files": [
    ],
  • "id": "string",
  • "project_id": "string",
  • "requested_by": "string",
  • "source": "inline",
  • "status": "open"
}

Create Inline Upload

Stage files sent as content in a JSON body (the plugin's files.import).

Request Body schema: application/json
required
description
string (Description)
Default: ""
required
Array of objects (Files) non-empty
Project Id (string) or Project Id (null) (Project Id)
Requested By (string) or Requested By (null) (Requested By)

Responses

Request samples

Content type
application/json
{
  • "description": "",
  • "files": [
    ],
  • "project_id": "string",
  • "requested_by": "string"
}

Response samples

Content type
application/json
{
  • "agent": "string",
  • "created_at": "string",
  • "decision": {
    },
  • "description": "",
  • "expires_at": "string",
  • "files": [
    ],
  • "id": "string",
  • "project_id": "string",
  • "requested_by": "string",
  • "source": "inline",
  • "status": "open"
}

Create Upload Link

Open an upload and return a signed link that takes files into it.

Request Body schema: application/json
required
description
string (Description)
Default: ""
expected_bytes
integer (Expected Bytes) >= 0
Default: 0

Total size expected; sets the lifetime

Lifetime S (integer) or Lifetime S (null) (Lifetime S)
Project Id (string) or Project Id (null) (Project Id)
Requested By (string) or Requested By (null) (Requested By)

Responses

Request samples

Content type
application/json
{
  • "description": "",
  • "expected_bytes": 0,
  • "lifetime_s": 0,
  • "project_id": "string",
  • "requested_by": "string"
}

Response samples

Content type
application/json
{ }

Get Upload

path Parameters
upload_id
required
string (Upload Id)

Responses

Response samples

Content type
application/json
{
  • "agent": "string",
  • "created_at": "string",
  • "decision": {
    },
  • "description": "",
  • "expires_at": "string",
  • "files": [
    ],
  • "id": "string",
  • "project_id": "string",
  • "requested_by": "string",
  • "source": "inline",
  • "status": "open"
}

Get Staged File

A staged file's bytes, for the person reviewing the upload.

Gone once the upload is decided: an approved file is then read from its work product, a rejected one is deleted.

path Parameters
upload_id
required
string (Upload Id)
name
required
string (Name)

Responses

Response samples

Content type
application/json
null

vendors

List Connectors

Every connector with its services, mode and live auth state.

Responses

Response samples

Content type
application/json
{ }

List Handoffs

Vendors with no API that take this service, and which files each accepts. Reads only.

Request Body schema: application/json
required
service
required
string (Service)
work_product_ids
Array of strings (Work Product Ids)

Responses

Request samples

Content type
application/json
{
  • "service": "string",
  • "work_product_ids": [
    ]
}

Response samples

Content type
application/json
{ }

Create Order

Request Body schema: application/json
required
by
string (By)
Default: ""
quote_id
required
string (Quote Id)

Responses

Request samples

Content type
application/json
{
  • "by": "",
  • "quote_id": "string"
}

Response samples

Content type
application/json
{ }

Get Order Status

path Parameters
order_id
required
string (Order Id)

Responses

Response samples

Content type
application/json
{ }

Create Quote

Request Body schema: application/json
required
by
string (By)
Default: ""
connector_id
required
string (Connector Id)
Array of objects (Items)
object (Options)
Project Id (string) or Project Id (null) (Project Id)
quantity
integer (Quantity) >= 1
Default: 1
service
required
string (Service)
Ship To Country (string) or Ship To Country (null) (Ship To Country)

Responses

Request samples

Content type
application/json
{
  • "by": "",
  • "connector_id": "string",
  • "items": [
    ],
  • "options": { },
  • "project_id": "string",
  • "quantity": 1,
  • "service": "string",
  • "ship_to_country": "string"
}

Response samples

Content type
application/json
{ }

wiring

Get Harness Estimate

query Parameters
work_product_id
required
string (Work Product Id)

Responses

Response samples

Content type
application/json
{
  • "joints": [
    ],
  • "work_product_id": "string"
}