Skip to content
Reference

Engine API

Every engine endpoint, generated from the engine's OpenAPI spec: parameters, request and response schemas, and a curl example for each.

On this page

Authentication

Every route needs a bearer token unless it says “public route”. Get a token from POST /api/auth/token and send it as Authorization: Bearer $TOKEN. The examples use $ENGINE_URL for your engine's address. See Authentication for API clients and token lifetimes.

Generated from the engine's OpenAPI spec (MedHook Engine API 1.0.0). The engine serves the same spec at /api/openapi.json.

Authentication

Token issuance. Tokens are valid for 2 hours.

System

Health and Prometheus metrics endpoints.

Workflows

Create, read, update, delete, and execute DAG-based workflows.

Executions

Inspect, stream, replay, and cancel workflow executions.

Adapters

Adapter type catalog (read-only).

Adapter Profiles

Saved, encrypted adapter credential sets.

AI

Claude-powered field mapping and condition suggestions.

Code Tables

Lookup tables for field mappings. Workspace-scoped; names are unique across all workspaces.

Topics

Typed publish/subscribe between workflows: a Publish step writes an event, every workflow with a topic trigger on it gets it (durable, at least once, deduplicated by event id). Workspace-scoped.

VPN Tunnels

Site-to-site IPsec tunnels (GKE / GCP Classic VPN). Workspace-scoped.

Migration

Preview and import Mirth Connect channels and firewall IPsec configs.

Triggers

Inbound routes: webhooks, X12, FHIR subscription callbacks, cron schedules and the MLLP listener's internal ingest.

Mapping Sets

Saved field mappings for a workflow.

Messages

Inbound messages, as the Messages screen reads them.

ACK Queue

Messages that got AE or AR, or never reached a destination.

Alert Rules

Rules that notify someone when messages fail.

Audit

The audit log and its hash chain.

Workspaces

Per-environment workspaces.

Settings

IP allowlist, log export and support access.

Workspace Variables

Key/value settings per workspace (Mirth configuration map): {{env.NAME}} in step config, env.NAME in JavaScript. A secret's value is encrypted at rest and never returned.

Shared Libraries

Versioned JavaScript shared by sandboxed steps (Mirth code template libraries), reached as libs.NAME. A step pins the version it was tested with.

Workflow Global Map

A workflow's global map (globals in JavaScript steps): scalars only, not for PHI or secrets.

Parallel runs

Run MedHook beside a Mirth Connect or Rhapsody engine before a cutover: read the incumbent's channel status, run a workflow in shadow mode on the same traffic, and compare the outputs.