Skip to content

Printbuddy and Studio Integrations

Configure external connections under Settings -> Integrations and issue scoped enm_... API keys under Settings -> API Keys. Every outbound probe sets redirect: "manual" so API keys never forward to another host.

1. Enmesh Studio to Enmesh Hub

  • Native revision ingest (POST /api/v1/ingest/revisions, issue #33): Scheduled for Milestone 1.5. Accepts multi-file CAD bundles (model.FCStd, model.stl, program.py, measurements, checks, G-code) with Idempotency-Key.
  • Manyfold v0 shim (scheduled in Milestone 1.5, issue #34): Lets Enmesh Studio (workbench/manyfold.py) upload directly to Enmesh Hub via STUDIO_MANYFOLD_ORIGIN.

2. Enmesh Hub to Printbuddy (Push Handoff)

The Hub push handoff (POST /api/v1/files/:id/handoff/printbuddy, Milestone 1.5, issue #36) uses the safety state machine from Enmesh Studio (workbench/printbuddy.py):

  • Origin and redirect safety: Accepts only https:// origins (or 127.0.0.1 and localhost loopback) with HTTP redirects disabled.
  • Timeout reconciliation: Because Printbuddy POST /api/v1/library/files is non-idempotent, retries after 5xx or network timeout run in reconcile_only mode against /api/v1/library/files?folder_id=... before issuing another upload.
  • Readback match: Downloads GET /api/v1/library/files/{id}/download and asserts exact byte length and SHA-256 before reporting success.
  • Queue and viewer links: Optionally calls POST /api/v1/library/files/add-to-queue for .gcode, .gcode.3mf, or .bgcode files and links to {public_origin}/gcode-viewer?library_file={id}.

3. Printbuddy to Enmesh Hub (Browse and Print History)

These endpoints are live in Milestone 1 and authenticate with workspace enm_... API keys (X-API-Key or Authorization: Bearer):

Endpoint Purpose Status
GET /api/v1/health Service and database health probe Live (M1)
GET /api/v1/auth/me Return API key identity and workspace Live (M1)
GET /api/v1/model-sets Browse and search Model Sets (/api/v1/models alias planned) Live (M1)
GET /api/v1/model-sets/:id Inspect Model Set files, tags, and rights Live (M1)
GET /api/v1/files/:id/download Stream model bytes or single archive members Live (M1)
POST /api/v1/model-sets/:id/prints Report completed, failed, or canceled print runs Live (M1)