Skip to content
Engine API

Migration

Migration endpoints of the MedHook engine API: 20 operations with parameters, schemas and a curl example for each.

On this page

Preview and import Mirth Connect channels and firewall IPsec configs.

List the steps an AI rewrite is offered for

get/api/migration/rewrite

The workflow's imported JavaScript steps that use E4X or hold a Mirth Mapper / Message Builder or Rhapsody mapper TODO, with the script (importer header and compatibility shims left out) and originalHash, which pins the version a rewrite replaces. aiAvailable is false while Script rewrites are off (AI_FEATURES_ENABLED, the signed BAA in production, the Script rewrites switch in Settings > AI features & BAA) or no API key is set.

Minimum role: viewer.

Auth: Bearer token (how to get one) · Operation: listRewriteCandidates

Parameters

NameInTypeDescription
workflowIdrequiredquerystring

Responses

  • 200The candidates.
    Response fields

    application/json · object

    • workflowIdstring
    • namestring
    • aiAvailableboolean
    • candidatesarray of object
      6 fields
      • nodeIdstring
      • labelstring
      • kindsarray of string
      • sourcestring

        One of: "mirth", "rhapsody"

      • originalstring
      • originalHashstring

        SHA-256 of the step's code.

  • 400The request is malformed or fails validation.

    application/json · ApiError

  • 401No credential, or the token is invalid or expired.

    application/json · ApiError

  • 404Not found in the caller's workspace.

    application/json · ApiError

Example request

curl
curl "$ENGINE_URL/api/migration/rewrite?workflowId=string" \
  -H "Authorization: Bearer $TOKEN"

Suggest an AI rewrite of an imported step

post/api/migration/rewrite/suggest

Asks the model to rewrite one imported step as a sandbox-safe JavaScript transform (no E4X, no require, no network) or a Data Map. Only the step's code and settings are sent, with comments dropped and literals replaced by placeholders: never message content, samples or credentials. The answer is validated: it must parse, use nothing the sandbox refuses, and run on a synthetic message built from the field paths. check says where the check ran: history (the draft, with the proposal in its step, ran as a dry run in the engine on up to 50 recent Mirth messages or 200 Rhapsody messages and m of n outputs matched the old engine's) only once the BAA is signed, Script rewrites is on and the interface has stored history; otherwise synthetic (n 1). The history never reaches the model. Nothing is saved. Audited as migration.rewrite_suggested (no code; the check's counts only). 403 with code AI_FEATURES_DISABLED while AI features or Settings › Script rewrites are off, 503 without an API key, 422 for a step that is not a candidate, 502 when the model's answer breaks the contract. Rate limited: 10 req / 60 s.

Minimum role: operator.

Auth: Bearer token (how to get one) · Operation: suggestRewrite

Request body (required)

application/json · object

  • workflowIdstringrequired

    Workflow id (must be in the caller's workspace).

  • nodeIdstringrequired

    The imported step's node id.

Responses

  • 200The suggestion.
    Response fields

    application/json · object

    • nodeIdstring
    • kindsarray of string
    • sourcestring
    • originalstring

      The step's script (left side of the diff).

    • proposalobject
      4 fields
      • kindstringrequired

        javascript or data-map.

        One of: "javascript", "data-map"

      • codestring

        The JavaScript transform body (kind javascript).

      • mappingarray of object

        The Data Map rows (kind data-map).

      • explanationstring
    • proposedstring

      The proposal as text (right side of the diff).

    • validationobject
      4 fields
      • okboolean
      • errorsarray of string
      • samplestring

        The synthetic HL7 message the proposal ran on.

      • outputobject

        What the proposal returned for the synthetic message.

    • checkobject
      3 fields
      • sourcestringrequired

        history or synthetic.

        One of: "history", "synthetic"

      • nintegerrequired

        Messages the proposal ran on.

      • mintegerrequired

        Of those, the outputs that matched the old engine's.

    • modelstring
    • originalHashstring
  • 400The request is malformed or fails validation.

    application/json · ApiError

  • 401No credential, or the token is invalid or expired.

    application/json · ApiError

  • 403The caller's role, license or network address does not allow this. A signed-in person who is not a member of the requested workspace gets code `WORKSPACE_FORBIDDEN`; a viewer asking for message content gets `PHI_FORBIDDEN` (or `PHI_SEARCH_FORBIDDEN` for a search on message content).

    application/json · ApiError

  • 404Not found in the caller's workspace.

    application/json · ApiError

  • 422The request is well formed but cannot be processed.

    application/json · ApiError

  • 429Rate limit exceeded (see the `Retry-After` header), or on the AI routes the daily AI budget is used up.

    application/json · ApiError

  • 503A dependency is not available.

    application/json · ApiError

Example request

curl
curl -X POST "$ENGINE_URL/api/migration/rewrite/suggest" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "workflowId": "string",
  "nodeId": "string"
}'

Accept an AI rewrite

post/api/migration/rewrite/accept

Replaces the step with the accepted JavaScript or Data Map and clears its review mark. The proposal is validated again (422 with errors when it fails), and the step must still match originalHash (409 when it changed). The workflow is saved like a builder save (version snapshot, workflow.updated), then the acceptance is audited as migration.rewrite_accepted (no code). 403 while AI features or Settings › Script rewrites are off. Rate limited: 20 req / 60 s.

Minimum role: operator.

Auth: Bearer token (how to get one) · Operation: acceptRewrite

Request body (required)

application/json · object

  • workflowIdstringrequired

    Workflow id (must be in the caller's workspace).

  • nodeIdstringrequired

    The imported step's node id.

  • originalHashstringrequired

    From the suggestion.

  • proposalobjectrequired
    4 fields
    • kindstringrequired

      javascript or data-map.

      One of: "javascript", "data-map"

    • codestring

      The JavaScript transform body (kind javascript).

    • mappingarray of object

      The Data Map rows (kind data-map).

    • explanationstring
  • modelstring

    The model that wrote the proposal, for the audit.

Responses

  • 200Saved.
    Response fields

    application/json · object

    • workflowIdstring
    • nodeIdstring
    • dataobject
  • 400The request is malformed or fails validation.

    application/json · ApiError

  • 401No credential, or the token is invalid or expired.

    application/json · ApiError

  • 403The caller's role, license or network address does not allow this. A signed-in person who is not a member of the requested workspace gets code `WORKSPACE_FORBIDDEN`; a viewer asking for message content gets `PHI_FORBIDDEN` (or `PHI_SEARCH_FORBIDDEN` for a search on message content).

    application/json · ApiError

  • 404Not found in the caller's workspace.

    application/json · ApiError

  • 409The request conflicts with the current state.

    application/json · ApiError

  • 422The request is well formed but cannot be processed.

    application/json · ApiError

  • 429Rate limit exceeded (see the `Retry-After` header), or on the AI routes the daily AI budget is used up.

    application/json · ApiError

Example request

curl
curl -X POST "$ENGINE_URL/api/migration/rewrite/accept" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "workflowId": "string",
  "nodeId": "string",
  "originalHash": "string",
  "proposal": {
    "kind": "javascript",
    "code": "string",
    "mapping": [
      {}
    ],
    "explanation": "string"
  },
  "model": "string"
}'

Preview a Mirth Connect or Rhapsody import

post/api/migration/mirth/preview

Parses a Mirth export, or a Rhapsody configuration export (a .rlc from the IDE's Save Configuration Locally, whose root sme*.xml has an <Engine> root; that XML itself; the REST export's configuration.xml with a <configuration> root; or the legacy <RhapsodyConfiguration> layout and locker .zip, detected from the root), and returns the draft workflows it would create. format says which it was; Rhapsody routes are reported as channels. A Mirth export also returns connections: how many endpoints its channels use (Migration › Import's total). No writes. Audited with counts only. Rate limited: 20 req / 60 s.

Auth: Bearer token (how to get one) · Operation: previewMirthImport

Request body (required)

application/json · object

  • xmlstringrequired
  • lockerModestring | map of string

    Rhapsody only. "routes" (default): one draft workflow per route. "branches": the routes of a locker that read the same input become one workflow, with one router branch per route. One mode for every locker, or an object of locker name → mode (in multipart, that object as a JSON string). On apply, a locker draft is selected by any of its route ids and merges only the selected routes.

    2 fields
    • option 1string

      One of: "routes", "branches"

    • option 2map of string

multipart/form-data · object

  • filestring (binary)required
  • lockerModestring | map of string

    Rhapsody only. "routes" (default): one draft workflow per route. "branches": the routes of a locker that read the same input become one workflow, with one router branch per route. One mode for every locker, or an object of locker name → mode (in multipart, that object as a JSON string). On apply, a locker draft is selected by any of its route ids and merges only the selected routes.

    2 fields
    • option 1string

      One of: "routes", "branches"

    • option 2map of string

Responses

  • 200Proposed workflows.

    application/json · MirthImportResult

  • 400Missing or unparseable export, or a bad lockerMode.

    application/json · ApiError

  • 413`PAYLOAD_TOO_LARGE` — upload over 5 MB.

    application/json · ApiError

Example request

curl
curl -X POST "$ENGINE_URL/api/migration/mirth/preview" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "xml": "string",
  "lockerMode": "routes"
}'

Import Mirth channels or Rhapsody routes as draft workflows

post/api/migration/mirth/apply

Re-parses the export (Mirth or Rhapsody, detected) and creates DISABLED draft workflows, plus credential-less adapter profiles they use, in the caller's workspace. channelIds (array, or comma-separated in multipart) limits which channels, or Rhapsody route ids, are imported. Audited as migration.{mirth,rhapsody}_imported with the drafts, their groups, the file name and, for Rhapsody, the locker count, version and Shared JavaScript and lookup table names (names only). Rate limited: 5 req / 60 s.

Auth: Bearer token (how to get one) · Operation: applyMirthImport

Request body (required)

application/json · object

  • xmlstringrequired
  • channelIdsarray of string
  • lockerModestring | map of string

    Rhapsody only. "routes" (default): one draft workflow per route. "branches": the routes of a locker that read the same input become one workflow, with one router branch per route. One mode for every locker, or an object of locker name → mode (in multipart, that object as a JSON string). On apply, a locker draft is selected by any of its route ids and merges only the selected routes.

    2 fields
    • option 1string

      One of: "routes", "branches"

    • option 2map of string
  • fileNamestring

    The uploaded export's file name (JSON; multipart uses the file's own name). Its base name is recorded on the audit event for the Migration board's source card.

multipart/form-data · object

  • filestring (binary)required
  • channelIdsarray of string
  • lockerModestring | map of string

    Rhapsody only. "routes" (default): one draft workflow per route. "branches": the routes of a locker that read the same input become one workflow, with one router branch per route. One mode for every locker, or an object of locker name → mode (in multipart, that object as a JSON string). On apply, a locker draft is selected by any of its route ids and merges only the selected routes.

    2 fields
    • option 1string

      One of: "routes", "branches"

    • option 2map of string
  • fileNamestring

    The uploaded export's file name (JSON; multipart uses the file's own name). Its base name is recorded on the audit event for the Migration board's source card.

Responses

  • 201Created.
    Response fields

    application/json · object

    • createdarray of object
      3 fields
      • mirthChannelIdstring
      • workflowIdstring
      • namestring
    • profilesarray of object
      4 fields
      • idstring
      • namestring
      • adapterTypestring
      • credentialsRequiredboolean
    • warningsarray of string
    • unsupportedarray of object
  • 400Missing or unparseable export, or a bad lockerMode.

    application/json · ApiError

  • 413`PAYLOAD_TOO_LARGE` — upload over 5 MB.

    application/json · ApiError

Example request

curl
curl -X POST "$ENGINE_URL/api/migration/mirth/apply" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "xml": "string",
  "channelIds": [
    "string"
  ],
  "lockerMode": "routes",
  "fileName": "string"
}'

Preview an IPsec / firewall config import

post/api/migration/ipsec/preview

Parses a firewall or cloud VPN config into proposed tunnels. Pre-shared keys are never returned (see pskImported). Audited without content. Rate limited: 20 req / 60 s.

Auth: Bearer token (how to get one) · Operation: previewIpsecImport

Request body (required)

application/json · object

  • textstringrequired
  • formatstring

    One of: "asa", "strongswan", "aws", "pfsense", "fortinet", "auto"

multipart/form-data · object

  • filestring (binary)required
  • formatstring

    One of: "asa", "strongswan", "aws", "pfsense", "fortinet", "auto"

Responses

  • 200Proposed tunnels.

    application/json · IpsecImportResult

  • 400Missing or unparseable config.

    application/json · ApiError

  • 413`PAYLOAD_TOO_LARGE` — upload over 5 MB.

    application/json · ApiError

Example request

curl
curl -X POST "$ENGINE_URL/api/migration/ipsec/preview" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "text": "string",
  "format": "auto"
}'

Create VPN tunnels from an IPsec config

post/api/migration/ipsec/apply

Re-parses the config and creates tunnels (provisioned in the background) for the selected peerIps in the caller's workspace. Invalid proposals and name conflicts are returned in skipped. A PSK is returned only when one had to be generated. Rate limited: 5 req / 60 s.

Auth: Bearer token (how to get one) · Operation: applyIpsecImport

Request body (required)

application/json · object

  • textstringrequired
  • formatstring

    One of: "asa", "strongswan", "aws", "pfsense", "fortinet", "auto"

  • peerIpsarray of stringrequired

Responses

  • 201Created.
    Response fields

    application/json · object

    • formatstring

      One of: "asa", "strongswan", "aws", "pfsense", "fortinet"

    • createdarray of object
      4 fields
      • idstring
      • namestring
      • peerIpstring
      • generatedSharedSecretstring

        Shown once.

    • skippedarray of object
      2 fields
      • peerIpstring
      • reasonstring
    • warningsarray of string
  • 400Missing config, no peerIps, or unparseable config.

    application/json · ApiError

  • 413`PAYLOAD_TOO_LARGE` — upload over 5 MB.

    application/json · ApiError

  • 501`NOT_CONFIGURED` — VPN management requires the GKE deployment.

    application/json · ApiError

Example request

curl
curl -X POST "$ENGINE_URL/api/migration/ipsec/apply" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "text": "string",
  "format": "auto",
  "peerIps": [
    "string"
  ]
}'

Migration board

get/api/migration/interfaces

The caller's workspace: every Mirth channel or Rhapsody route imported as a draft (from the migration import audit events; deleted drafts drop out), in board order (stage, then name), with its stage, converted percentage and what needs a person, plus one card per old engine (a read-only incumbent connection, or an uploaded export named by its file) and the counts behind the tab badges and the summary line. Differences count the parallel run's mismatched messages in the last 7 days. Names, stages and counts only: no message content. A Rhapsody import's Shared JavaScript and lookup tables are one more interface, id rhapsody-shared, named "Shared scripts and tables" in group "Shared". A reviewed interface's note names the reviewer by initials only. Takes no parameters (any is a 400). Rate limited to 60 requests per minute.

Minimum role: viewer.

Auth: Bearer token (how to get one) · Operation: getMigrationInterfaces

Responses

  • 200The board.
    Response fields

    application/json · object

    • interfacesarray of object
      10 fields
      • idstring

        The draft workflow's id.

      • workflowIdstring
      • sourcestring

        One of: "mirth", "rhapsody"

      • namestring

        The Mirth channel or Rhapsody route name.

      • groupstring | null

        Mirth channel group or Rhapsody locker; null when unknown.

      • stagestring

        imported, review (steps marked for review, or REVIEW/BLOCKED onboarding findings), ready (reviewed), parallel (an active parallel run), live (the import is enabled).

        One of: "imported", "review", "ready", "parallel", "live"

      • convertedinteger

        Share of steps that converted with no person needed.

      • needsinteger

        Steps or findings that need a person.

      • notestring

        What the card says, e.g. "3 differences in 7 days".

      • runIdstring

        The active parallel run, on the parallel stage.

    • sourcesarray of object
      5 fields
      • sourcestring

        One of: "mirth", "rhapsody"

      • tagstring

        One of: "MIRTH", "RHAPSODY"

      • namestring

        "Mirth Connect 4.5.2", "Rhapsody".

      • substring

        The read-only connection's host, or uploaded export.

      • statestring

        "connected · 23 channels", "uploaded · 18 routes".

    • countsobject
      5 fields
      • totalinteger
      • liveinteger
      • inProgressinteger

        Not live yet (the In progress badge).

      • parallelinteger
      • toReviewinteger

        Imported or needs review (the review queue).

    • generatedAtstring (date-time)
  • 400The request is malformed or fails validation.

    application/json · ApiError

  • 401No credential, or the token is invalid or expired.

    application/json · ApiError

  • 429Rate limit exceeded (see the `Retry-After` header), or on the AI routes the daily AI budget is used up.

    application/json · ApiError

  • 500Unexpected server error.

    application/json · ApiError

Example request

curl
curl "$ENGINE_URL/api/migration/interfaces" \
  -H "Authorization: Bearer $TOKEN"

Create draft workflows from an onboarding scan

post/api/migration/sessions/{id}/workflows

Creates DISABLED draft workflows, and adapter profiles with no credentials, from the session's scan, re-parsing the stored export server-side. With no body, every channel that isn't blocked; with channelIds (Migration › Import), only those. Channels that already have a draft are skipped. Audited as migration.mirth_imported with the created workflow ids and each draft's channel group. Rate limited: 5 req / 60 s.

Minimum role: operator.

Auth: Bearer token (how to get one) · Operation: createMigrationSessionWorkflows

Parameters

NameInTypeDescription
idrequiredpathstring

Onboarding session id (caller's workspace).

Request body

application/json · object

  • channelIdsarray of string

    Mirth channel ids from the scan. Omit for every channel that isn't blocked.

Responses

  • 200The session, with each converted channel's `workflowId`.
    Response fields

    application/json · object

    • sessionobject

      The onboarding session.

  • 400The request is malformed or fails validation.

    application/json · ApiError

  • 401No credential, or the token is invalid or expired.

    application/json · ApiError

  • 403The caller's role, license or network address does not allow this. A signed-in person who is not a member of the requested workspace gets code `WORKSPACE_FORBIDDEN`; a viewer asking for message content gets `PHI_FORBIDDEN` (or `PHI_SEARCH_FORBIDDEN` for a search on message content).

    application/json · ApiError

  • 404Not found in the caller's workspace.

    application/json · ApiError

  • 429Rate limit exceeded (see the `Retry-After` header), or on the AI routes the daily AI budget is used up.

    application/json · ApiError

  • 500Unexpected server error.

    application/json · ApiError

Example request

curl
curl -X POST "$ENGINE_URL/api/migration/sessions/<id>/workflows" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "channelIds": [
    "string"
  ]
}'

Migration review of one interface

get/api/migration/interfaces/{id}

One imported Mirth channel or Rhapsody route, as the review page shows it: the interface (stage, source, group), one row per imported component (old → new, with its result) read from the draft as it is now, how many rows need a person or are blocked (toResolve), the review queue's ids in board order, and the shared lists: code templates (Mirth, one row per exported function of the pinned library version) or shared scripts (Rhapsody), global maps (each $g/$gc/$co read, with the code table's row count) or lookup tables, and the connections the draft uses with the credential each still needs (add password, add token, upload, judged on the engine from the stored config). Names and kinds only: no message content, no credentials. 404 when the id is not an imported draft in the caller's workspace. Rate limited to 60 requests per minute.

Minimum role: viewer.

Auth: Bearer token (how to get one) · Operation: getMigrationInterfaceReview

Parameters

NameInTypeDescription
idrequiredpathstring

The imported draft's workflow id.

Responses

  • 200The review.
    Response fields

    application/json · object

    • interfaceobject
      10 fields
      • idstring

        The draft workflow's id.

      • workflowIdstring
      • sourcestring

        One of: "mirth", "rhapsody"

      • namestring

        The Mirth channel or Rhapsody route name.

      • groupstring | null

        Mirth channel group or Rhapsody locker; null when unknown.

      • stagestring

        imported, review (steps marked for review, or REVIEW/BLOCKED onboarding findings), ready (reviewed), parallel (an active parallel run), live (the import is enabled).

        One of: "imported", "review", "ready", "parallel", "live"

      • convertedinteger

        Share of steps that converted with no person needed.

      • needsinteger

        Steps or findings that need a person.

      • notestring

        What the card says, e.g. "3 differences in 7 days".

      • runIdstring

        The active parallel run, on the parallel stage.

    • rowsarray of object
      10 fields
      • idstring
      • nodeIdstring | null

        The draft step; null for the trigger and its filter.

      • oldKindstring

        The old component, e.g. "Transformer · JavaScript (E4X)".

      • oldNamestring
      • newKindstring

        What it became, e.g. "Script", "Data map", "SQL step".

      • newNamestring
      • resultstring

        converted, differs (works differently), person (needs a person), blocked, rewritten (an accepted Agent rewrite).

        One of: "converted", "differs", "person", "blocked", "rewritten"

      • notestring
      • codestring | null

        The step's script without the importer header.

      • rewritableboolean

        Rewrite with Agent is offered for it.

    • toResolveinteger
    • queuearray of string
    • listsobject
      3 fields
      • templatesarray of object
        5 fields
        • namestringrequired

          The shared piece: "formatAccession()", "$g('facilityMap')", a connection's name.

        • detailstringrequired

          What it became, e.g. "Component", "facility_locations · 42 rows", "bearer token · not in the export". Never a credential value.

        • statusstringrequired

          Templates and scripts: converted, replaced, needs a rewrite. Maps and tables: converted, works differently, moved, dropped. Connections: ready, add password, add token, upload, add connection.

        • tonestringrequired

          One of: "ok", "warn", "neutral"

        • hrefstring

          Where to fill it in: /adapters?selected={profileId} (the connection's credentials) or /adapters/new. Only on rows that need an action.

      • mapsarray of object
        5 fields
        • namestringrequired

          The shared piece: "formatAccession()", "$g('facilityMap')", a connection's name.

        • detailstringrequired

          What it became, e.g. "Component", "facility_locations · 42 rows", "bearer token · not in the export". Never a credential value.

        • statusstringrequired

          Templates and scripts: converted, replaced, needs a rewrite. Maps and tables: converted, works differently, moved, dropped. Connections: ready, add password, add token, upload, add connection.

        • tonestringrequired

          One of: "ok", "warn", "neutral"

        • hrefstring

          Where to fill it in: /adapters?selected={profileId} (the connection's credentials) or /adapters/new. Only on rows that need an action.

      • connsarray of object
        5 fields
        • namestringrequired

          The shared piece: "formatAccession()", "$g('facilityMap')", a connection's name.

        • detailstringrequired

          What it became, e.g. "Component", "facility_locations · 42 rows", "bearer token · not in the export". Never a credential value.

        • statusstringrequired

          Templates and scripts: converted, replaced, needs a rewrite. Maps and tables: converted, works differently, moved, dropped. Connections: ready, add password, add token, upload, add connection.

        • tonestringrequired

          One of: "ok", "warn", "neutral"

        • hrefstring

          Where to fill it in: /adapters?selected={profileId} (the connection's credentials) or /adapters/new. Only on rows that need an action.

  • 400The request is malformed or fails validation.

    application/json · ApiError

  • 401No credential, or the token is invalid or expired.

    application/json · ApiError

  • 404Not found in the caller's workspace.

    application/json · ApiError

  • 429Rate limit exceeded (see the `Retry-After` header), or on the AI routes the daily AI budget is used up.

    application/json · ApiError

  • 500Unexpected server error.

    application/json · ApiError

Example request

curl
curl "$ENGINE_URL/api/migration/interfaces/<id>" \
  -H "Authorization: Bearer $TOKEN"

Mark an interface reviewed

post/api/migration/interfaces/{id}/reviewed

A person checked every converted component: the draft moves to Ready to test. 409 UNRESOLVED (with toResolve) while a row needs a person or is blocked, 409 PAST_REVIEW for an interface in a parallel run or live. Marking a reviewed interface again changes nothing. Audited as migration.interface_reviewed (the mark the board reads; 500 if it cannot be written). Takes no body. Rate limited to 30 requests per minute.

Minimum role: operator.

Auth: Bearer token (how to get one) · Operation: markMigrationInterfaceReviewed

Parameters

NameInTypeDescription
idrequiredpathstring

The imported draft's workflow id.

Responses

  • 200Reviewed.
    Response fields

    application/json · object

    • idstring
    • stagestring

      One of: "ready"

  • 400The request is malformed or fails validation.

    application/json · ApiError

  • 401No credential, or the token is invalid or expired.

    application/json · ApiError

  • 403The caller's role, license or network address does not allow this. A signed-in person who is not a member of the requested workspace gets code `WORKSPACE_FORBIDDEN`; a viewer asking for message content gets `PHI_FORBIDDEN` (or `PHI_SEARCH_FORBIDDEN` for a search on message content).

    application/json · ApiError

  • 404Not found in the caller's workspace.

    application/json · ApiError

  • 409The request conflicts with the current state.

    application/json · ApiError

  • 429Rate limit exceeded (see the `Retry-After` header), or on the AI routes the daily AI budget is used up.

    application/json · ApiError

  • 500Unexpected server error.

    application/json · ApiError

Example request

curl
curl -X POST "$ENGINE_URL/api/migration/interfaces/<id>/reviewed" \
  -H "Authorization: Bearer $TOKEN"

Connect to a Mirth or Rhapsody server and list it

post/api/migration/sources

Connects to the server's management REST API and lists its channels (Mirth: GET /server/version and /channels/idsAndNames) or lockers (Rhapsody: GET /api/info and /api/components/status, whose top folders are the lockers; a locker's id is its name). Read-only: the engine sends only HTTP GET requests with HTTP Basic auth (no session login) and never deploys, starts, stops or changes anything on the server. Each request times out after 15 s and each response, and the pulled export, is capped at 5 MB. TLS certificates are verified: against the system CAs, or against the certificate pinned (or the CA uploaded) for the connection on its connect. A certificate that no longer matches the pin answers 502 INCUMBENT_CERT_FINGERPRINT_CHANGED with details.pinnedFingerprint256 and details.certificate (the new one); nothing is sent to that server until the operator pins again on a connect. The URL must pass the SSRF guard: https, or http only to a host on SSRF_ALLOWLIST; a private host must be on SSRF_ALLOWLIST, and then the answer carries a warning. Only after the listing succeeds are the credentials stored, sealed like adapter profile credentials, in the workspace's incumbent connection for that server (a second connect replaces them; DELETE /api/incumbents/{id} forgets them). The password is never returned or logged. Audited as migration.source.connected with the vendor, host and count only. A self-signed server (Rhapsody's default on 8444, Mirth's on 8443): a certificate the engine can't verify answers 502 INCUMBENT_CERT_UNTRUSTED with details.certificate (fingerprint256, subject, issuer, validFrom, validTo, selfSigned) and stores nothing. Check the fingerprint on the server, then connect again with trustFingerprint (that exact certificate is pinned) or caPem (the CA that signed it; normal verification, host name included). The trust is kept on the connection and audited as migration.source.cert_pinned (vendor, host, fingerprint and any previous one) or migration.source.ca_uploaded (vendor, host, the CA's fingerprint and subject). A connect without either reuses the connection's stored trust; there is no "allow self-signed". Errors: 400 BAD_REQUEST (a malformed fingerprint or CA, or both at once), INCUMBENT_PARSE or INCUMBENT_SSRF (a bad or refused URL); 502 INCUMBENT_AUTH (wrong user or password), INCUMBENT_HTTP, INCUMBENT_NETWORK (unreachable or timed out), INCUMBENT_TOO_LARGE, INCUMBENT_CERT_UNTRUSTED or INCUMBENT_CERT_FINGERPRINT_CHANGED. Rate limited: 10 req / 60 s.

Minimum role: operator.

Auth: Bearer token (how to get one) · Operation: connectMigrationSource

Request body (required)

application/json · object

  • vendorstringrequired

    mirth (Mirth Connect or Mirth Integration Engine) or rhapsody.

    One of: "mirth", "rhapsody"

  • urlstringrequired

    The API base URL, e.g. https://mirth.example.test:8443/api. No user name or password in it.

  • userstringrequired

    A read-only API user.

  • passwordstring (password)required

    Write-only.

  • trustFingerprintstring

    The SHA-256 fingerprint of the server certificate to pin, "AA:BB:…" as INCUMBENT_CERT_UNTRUSTED's details.certificate.fingerprint256 shows it. Not with caPem.

  • caPemstring

    A PEM CA certificate (or chain) to verify the server against, host name included. Not with trustFingerprint.

Responses

  • 201Connected; what the server holds.
    Response fields

    application/json · object

    • idstring

      The connection's id, for …/pull and …/apply.

    • vendorstring

      One of: "mirth", "rhapsody"

    • hoststring

      "mirth.example.test:8443".

    • versionstring | null

      Mirth's version; null for Rhapsody.

    • itemsarray of object
      2 fields
      • idstring
      • namestring
    • warningstring

      Set when the host is reached only because SSRF_ALLOWLIST lists it.

    • pinnedFingerprint256string

      The certificate pinned for this connection, when one is.

    • customCaboolean

      True when the connection verifies against an uploaded CA.

  • 400The request is malformed or fails validation.

    application/json · ApiError

  • 401No credential, or the token is invalid or expired.

    application/json · ApiError

  • 403The caller's role, license or network address does not allow this. A signed-in person who is not a member of the requested workspace gets code `WORKSPACE_FORBIDDEN`; a viewer asking for message content gets `PHI_FORBIDDEN` (or `PHI_SEARCH_FORBIDDEN` for a search on message content).

    application/json · ApiError

  • 413The body is larger than the limit.

    application/json · ApiError

  • 429Rate limit exceeded (see the `Retry-After` header), or on the AI routes the daily AI budget is used up.

    application/json · ApiError

  • 500Unexpected server error.

    application/json · ApiError

  • 502Error.

    application/json · ApiError

Example request

curl
curl -X POST "$ENGINE_URL/api/migration/sources" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "vendor": "mirth",
  "url": "string",
  "user": "string",
  "password": "string",
  "trustFingerprint": "string",
  "caPem": "string"
}'

Pull channels or lockers and dry run them

post/api/migration/sources/{id}/pull

Pulls the picked channels (Mirth: GET /channels?channelId=…, with channel groups, code template libraries, the configuration map and global scripts, joined into one server backup) or lockers (Rhapsody: GET /admin/config, the whole configuration export the user can view as one zip of at most 25 MB, from which the picked lockers, at most 5 MB together, are cut by name) and answers exactly what POST /api/migration/mirth/preview answers for that export uploaded as a file. Read-only: the engine sends only HTTP GET requests with HTTP Basic auth (no session login) and never deploys, starts, stops or changes anything on the server. Each request times out after 15 s and each response, and the pulled export, is capped at 5 MB. TLS certificates are verified: against the system CAs, or against the certificate pinned (or the CA uploaded) for the connection on its connect. A certificate that no longer matches the pin answers 502 INCUMBENT_CERT_FINGERPRINT_CHANGED with details.pinnedFingerprint256 and details.certificate (the new one); nothing is sent to that server until the operator pins again on a connect. No writes here either. Audited as migration.source.pulled (vendor, host, counts and size), then as the preview is. Rate limited: 20 req / 60 s.

Minimum role: operator.

Auth: Bearer token (how to get one) · Operation: pullMigrationSource

Parameters

NameInTypeDescription
idrequiredpathstring

The connection's id (an incumbent connection in the caller's workspace).

Request body (required)

application/json · object

  • idsarray of stringrequired

    Channel ids (Mirth) or locker ids (Rhapsody) from the connect's items.

  • lockerModestring | map of string

    Rhapsody only. "routes" (default): one draft workflow per route. "branches": the routes of a locker that read the same input become one workflow, with one router branch per route. One mode for every locker, or an object of locker name → mode (in multipart, that object as a JSON string). On apply, a locker draft is selected by any of its route ids and merges only the selected routes.

    2 fields
    • option 1string

      One of: "routes", "branches"

    • option 2map of string

Responses

  • 200Proposed workflows.

    application/json · MirthImportResult

  • 400The request is malformed or fails validation.

    application/json · ApiError

  • 401No credential, or the token is invalid or expired.

    application/json · ApiError

  • 403The caller's role, license or network address does not allow this. A signed-in person who is not a member of the requested workspace gets code `WORKSPACE_FORBIDDEN`; a viewer asking for message content gets `PHI_FORBIDDEN` (or `PHI_SEARCH_FORBIDDEN` for a search on message content).

    application/json · ApiError

  • 404Not found in the caller's workspace.

    application/json · ApiError

  • 413The body is larger than the limit.

    application/json · ApiError

  • 429Rate limit exceeded (see the `Retry-After` header), or on the AI routes the daily AI budget is used up.

    application/json · ApiError

  • 500Unexpected server error.

    application/json · ApiError

  • 502Error.

    application/json · ApiError

Example request

curl
curl -X POST "$ENGINE_URL/api/migration/sources/<id>/pull" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "ids": [
    "string"
  ],
  "lockerMode": "routes"
}'

Pull channels or lockers and create draft workflows

post/api/migration/sources/{id}/apply

Pulls the picked channels or lockers again, as …/pull does, and creates DISABLED draft workflows for channelIds (Mirth channel or Rhapsody route ids; all when omitted) exactly as POST /api/migration/mirth/apply does for that export uploaded as a file. The board shows the server's connection rather than a file name. Read-only: the engine sends only HTTP GET requests with HTTP Basic auth (no session login) and never deploys, starts, stops or changes anything on the server. Each request times out after 15 s and each response, and the pulled export, is capped at 5 MB. TLS certificates are verified: against the system CAs, or against the certificate pinned (or the CA uploaded) for the connection on its connect. A certificate that no longer matches the pin answers 502 INCUMBENT_CERT_FINGERPRINT_CHANGED with details.pinnedFingerprint256 and details.certificate (the new one); nothing is sent to that server until the operator pins again on a connect. Audited as migration.source.pulled, then migration.{mirth,rhapsody}_imported. Rate limited: 5 req / 60 s.

Minimum role: operator.

Auth: Bearer token (how to get one) · Operation: applyMigrationSource

Parameters

NameInTypeDescription
idrequiredpathstring

The connection's id (an incumbent connection in the caller's workspace).

Request body (required)

application/json · object

  • idsarray of stringrequired

    Channel ids (Mirth) or locker ids (Rhapsody) from the connect's items.

  • channelIdsarray of string
  • lockerModestring | map of string

    Rhapsody only. "routes" (default): one draft workflow per route. "branches": the routes of a locker that read the same input become one workflow, with one router branch per route. One mode for every locker, or an object of locker name → mode (in multipart, that object as a JSON string). On apply, a locker draft is selected by any of its route ids and merges only the selected routes.

    2 fields
    • option 1string

      One of: "routes", "branches"

    • option 2map of string

Responses

  • 201Created: the same answer as POST /api/migration/mirth/apply.
    Response fields

    application/json · object

    • createdarray of object
      3 fields
      • mirthChannelIdstring
      • workflowIdstring
      • namestring
  • 400The request is malformed or fails validation.

    application/json · ApiError

  • 401No credential, or the token is invalid or expired.

    application/json · ApiError

  • 403The caller's role, license or network address does not allow this. A signed-in person who is not a member of the requested workspace gets code `WORKSPACE_FORBIDDEN`; a viewer asking for message content gets `PHI_FORBIDDEN` (or `PHI_SEARCH_FORBIDDEN` for a search on message content).

    application/json · ApiError

  • 404Not found in the caller's workspace.

    application/json · ApiError

  • 413The body is larger than the limit.

    application/json · ApiError

  • 429Rate limit exceeded (see the `Retry-After` header), or on the AI routes the daily AI budget is used up.

    application/json · ApiError

  • 500Unexpected server error.

    application/json · ApiError

  • 502Error.

    application/json · ApiError

Example request

curl
curl -X POST "$ENGINE_URL/api/migration/sources/<id>/apply" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "ids": [
    "string"
  ],
  "channelIds": [
    "string"
  ],
  "lockerMode": "routes"
}'

List captured Rhapsody imports

get/api/migration/import-captures

The workspace's Rhapsody imports that failed (reason: failed) or read with sections, elements or codes MedHook doesn't know (unrecognized), newest first, at most 100. A dry run (POST /api/migration/mirth/preview, a live pull) captures them on its own. A fingerprint holds the export's STRUCTURE only: the file kind and size, zip entries as shapes (<uuid>/*.xml, never raw file names), the XML root, whether its namespace is Rhapsody's, numeric version attributes, every element path with a count, attribute names (never values), point, mode, filter and property type codes only when they are short tokens, what MedHook doesn't know, and the refusal as a fixed code. Never text content, attribute values, scripts, host names, paths or messages. Each row says whether its file was shared (kind, size, expiry), never the content.

Minimum role: admin.

Auth: Bearer token (how to get one) · Operation: listMigrationImportCaptures

Responses

  • 200Success.
  • 401No credential, or the token is invalid or expired.

    application/json · ApiError

  • 403The caller's role, license or network address does not allow this. A signed-in person who is not a member of the requested workspace gets code `WORKSPACE_FORBIDDEN`; a viewer asking for message content gets `PHI_FORBIDDEN` (or `PHI_SEARCH_FORBIDDEN` for a search on message content).

    application/json · ApiError

  • 500Unexpected server error.

    application/json · ApiError

Example request

curl
curl "$ENGINE_URL/api/migration/import-captures" \
  -H "Authorization: Bearer $TOKEN"

Download a capture's fingerprint (JSON)

get/api/migration/import-captures/{id}

The fingerprint as a JSON attachment. A fingerprint holds the export's STRUCTURE only: the file kind and size, zip entries as shapes (<uuid>/*.xml, never raw file names), the XML root, whether its namespace is Rhapsody's, numeric version attributes, every element path with a count, attribute names (never values), point, mode, filter and property type codes only when they are short tokens, what MedHook doesn't know, and the refusal as a fixed code. Never text content, attribute values, scripts, host names, paths or messages.

Minimum role: admin.

Auth: Bearer token (how to get one) · Operation: getMigrationImportCapture

Parameters

NameInTypeDescription
idrequiredpathstring

The capture's id (rif_ and 24 hex characters), from the dry run's importCapture.id or the list.

Responses

  • 200Success.
  • 400The request is malformed or fails validation.

    application/json · ApiError

  • 401No credential, or the token is invalid or expired.

    application/json · ApiError

  • 403The caller's role, license or network address does not allow this. A signed-in person who is not a member of the requested workspace gets code `WORKSPACE_FORBIDDEN`; a viewer asking for message content gets `PHI_FORBIDDEN` (or `PHI_SEARCH_FORBIDDEN` for a search on message content).

    application/json · ApiError

  • 404Not found in the caller's workspace.

    application/json · ApiError

  • 500Unexpected server error.

    application/json · ApiError

Example request

curl
curl "$ENGINE_URL/api/migration/import-captures/<id>" \
  -H "Authorization: Bearer $TOKEN"

Delete a capture

delete/api/migration/import-captures/{id}

Deletes the fingerprint and its shared file, if any. Audited as migration.import_capture_deleted.

Minimum role: admin.

Auth: Bearer token (how to get one) · Operation: deleteMigrationImportCapture

Parameters

NameInTypeDescription
idrequiredpathstring

The capture's id (rif_ and 24 hex characters), from the dry run's importCapture.id or the list.

Responses

  • 200Success.
  • 400The request is malformed or fails validation.

    application/json · ApiError

  • 401No credential, or the token is invalid or expired.

    application/json · ApiError

  • 403The caller's role, license or network address does not allow this. A signed-in person who is not a member of the requested workspace gets code `WORKSPACE_FORBIDDEN`; a viewer asking for message content gets `PHI_FORBIDDEN` (or `PHI_SEARCH_FORBIDDEN` for a search on message content).

    application/json · ApiError

  • 404Not found in the caller's workspace.

    application/json · ApiError

  • 500Unexpected server error.

    application/json · ApiError

Example request

curl
curl -X DELETE "$ENGINE_URL/api/migration/import-captures/<id>" \
  -H "Authorization: Bearer $TOKEN"

Send the export MedHook couldn't read

post/api/migration/import-captures/{id}/share

The uploader's opt-in: keeps the original file so MedHook can support it. noPatientData must be true, the person's confirmation that the file contains no patient data or that test messages have been removed; without it nothing is kept (400 CONSENT_REQUIRED). The file must be the one the capture was made from (its SHA-256). Stored AES-256-GCM encrypted for 30 days, readable by admins only, then deleted by the retention run. Audited as migration.import_file_shared (id, kind, size). Rate limited: 10 req / 60 s.

Minimum role: operator.

Auth: Bearer token (how to get one) · Operation: shareMigrationImportFile

Parameters

NameInTypeDescription
idrequiredpathstring

The capture's id (rif_ and 24 hex characters), from the dry run's importCapture.id or the list.

Request body (required)

multipart/form-data · object

  • filestring (binary)required

    The export, as uploaded to the dry run.

  • noPatientDatastringrequired

    Must be "true": the file contains no patient data, or test messages have been removed.

    One of: "true"

Responses

  • 201Kept.
    Response fields

    application/json · object

    • sharedboolean

      Always true.

    • expiresAtstring

      ISO 8601.

  • 400The request is malformed or fails validation.

    application/json · ApiError

  • 401No credential, or the token is invalid or expired.

    application/json · ApiError

  • 403The caller's role, license or network address does not allow this. A signed-in person who is not a member of the requested workspace gets code `WORKSPACE_FORBIDDEN`; a viewer asking for message content gets `PHI_FORBIDDEN` (or `PHI_SEARCH_FORBIDDEN` for a search on message content).

    application/json · ApiError

  • 404Not found in the caller's workspace.

    application/json · ApiError

  • 413The body is larger than the limit.

    application/json · ApiError

  • 429Rate limit exceeded (see the `Retry-After` header), or on the AI routes the daily AI budget is used up.

    application/json · ApiError

  • 500Unexpected server error.

    application/json · ApiError

Example request

curl
curl -X POST "$ENGINE_URL/api/migration/import-captures/<id>/share" \
  -H "Authorization: Bearer $TOKEN" \
  -F 'file=@file' \
  -F 'noPatientData=true'

Download a shared export

get/api/migration/import-captures/{id}/file

The file its uploader shared, before its 30 days are up. Every download is audited as migration.import_file_downloaded.

Minimum role: admin.

Auth: Bearer token (how to get one) · Operation: downloadMigrationImportFile

Parameters

NameInTypeDescription
idrequiredpathstring

The capture's id (rif_ and 24 hex characters), from the dry run's importCapture.id or the list.

Responses

  • 200The file.
  • 400The request is malformed or fails validation.

    application/json · ApiError

  • 401No credential, or the token is invalid or expired.

    application/json · ApiError

  • 403The caller's role, license or network address does not allow this. A signed-in person who is not a member of the requested workspace gets code `WORKSPACE_FORBIDDEN`; a viewer asking for message content gets `PHI_FORBIDDEN` (or `PHI_SEARCH_FORBIDDEN` for a search on message content).

    application/json · ApiError

  • 404Not found in the caller's workspace.

    application/json · ApiError

  • 500Unexpected server error.

    application/json · ApiError

Example request

curl
curl "$ENGINE_URL/api/migration/import-captures/<id>/file" \
  -H "Authorization: Bearer $TOKEN"

Delete a shared export now

delete/api/migration/import-captures/{id}/file

Deletes the shared file before its 30 days; the fingerprint stays. Audited as migration.import_file_deleted.

Minimum role: admin.

Auth: Bearer token (how to get one) · Operation: deleteMigrationImportFile

Parameters

NameInTypeDescription
idrequiredpathstring

The capture's id (rif_ and 24 hex characters), from the dry run's importCapture.id or the list.

Responses

  • 200Success.
  • 400The request is malformed or fails validation.

    application/json · ApiError

  • 401No credential, or the token is invalid or expired.

    application/json · ApiError

  • 403The caller's role, license or network address does not allow this. A signed-in person who is not a member of the requested workspace gets code `WORKSPACE_FORBIDDEN`; a viewer asking for message content gets `PHI_FORBIDDEN` (or `PHI_SEARCH_FORBIDDEN` for a search on message content).

    application/json · ApiError

  • 404Not found in the caller's workspace.

    application/json · ApiError

  • 500Unexpected server error.

    application/json · ApiError

Example request

curl
curl -X DELETE "$ENGINE_URL/api/migration/import-captures/<id>/file" \
  -H "Authorization: Bearer $TOKEN"

Schemas

Named objects the operations above link to.

ApiError

The error body. error is always present. code is present on most errors and is the field to branch on; a few routes and the sign-in and role checks return only error (and sometimes detail).

  • errorstringrequired

    Human-readable error message.

  • codestring

    Machine-readable error code.

    One of: "BAD_REQUEST", "INVALID_REQUEST", "UNAUTHORIZED", "UNAUTHENTICATED", "FORBIDDEN", "NOT_FOUND", "CONFLICT", "UNPROCESSABLE_ENTITY", "RATE_LIMITED", "INTERNAL_ERROR", "SERVICE_UNAVAILABLE", "NOT_CONFIGURED", "SIGNATURE_REQUIRED", "INVALID_SIGNATURE", "TIMESTAMP_REQUIRED", "TIMESTAMP_INVALID", "TIMESTAMP_OUT_OF_TOLERANCE", "INVALID_CREDENTIALS", "INVALID_TOKEN", "PAYLOAD_TOO_LARGE", "INVALID_NDJSON", "PHI_NOT_AUTHORIZED", "PHI_IN_SANDBOX", "IN_PROGRESS", "RETRY_SCHEDULED", "WORKFLOW_DISABLED", "CONFLICTING_SCOPE", "ALREADY_DELIVERED", "CHAIN_TOO_DEEP", "NO_FAILED_DESTINATION", "STALE_SCOPE", "UNKNOWN_DESTINATION", "NO_DESTINATIONS", "NOT_A_MESSAGE", "AI_FEATURES_DISABLED"

  • detailsany

    Optional structured context about the error.

ErrorHandling

What a failed step does. Step retries wait in-process within one run, so each wait is capped at 60 s and the attempts at 10; longer waits are workflow retries (maxWorkflowRetries), which are durable.

  • strategystringrequired

    One of: "retry", "skip", "fail"

  • maxRetriesinteger
  • retryDelaynumber

    Milliseconds before the first step retry.

  • backoffMultipliernumber

FieldMapping

  • sourcestringrequired

    JSON path ("$.name[0].family"; "[*]" reads every array item) or "hl7:" + an HL7 path ("hl7:PID.5.1", "hl7:OBX[*].5", "hl7:PID.3(2).1").

  • sourcesarray of string

    Concatenate: source then each of these (one value each, no [*]); empty parts are skipped.

  • separatorstring

    Joins sources (default " ").

  • targetstringrequired

    Target path. "hl7:PID.5.1" edits the HL7 text and needs config.mapMode "copy" on an HL7 input. In an hl7v2-to-fhir step (merge mode) the target names a resource: "Patient.name[0].family" or "Bundle.meta.tag[0].code".

  • transformstring

    Legacy single transform, run before ops. "date" is HL7 DT/DTM to ISO 8601 (shape and offset kept); other text is read by JavaScript Date and written as a UTC ISO timestamp (text with no offset is read in the engine's time zone), as before value ops. A stored "custom" (a no-op) is dropped.

    One of: "uppercase", "lowercase", "trim", "date"

  • opsarray of ValueOp

    Value ops, in order, after the inline lookup and default. An op that cannot read its value is a row error (config.onRowError).

  • defaultstring

    Used when the source is missing or empty.

  • lookupValuesarray of object

    Inline quick lookup: an unknown value gets default when set, else passes through.

    3 fields
    • fromstringrequired
    • tostringrequired
    • notestring
  • lookupstring

    Code table name (applied last).

  • onMissingCodestring

    A value the lookup code table lacks: a row error (default), kept, or default (required with "default"). A missing table always fails.

    One of: "fail", "passthrough", "default"

IpsecImportResult

  • formatstring

    One of: "asa", "strongswan", "aws", "pfsense", "fortinet"

  • proposalsarray of object
    4 fields
    • tunnelobject

      Proposed tunnel. The PSK is never returned.

      4 fields
      • namestring
      • peerIpstring
      • remoteSubnetsarray of string
      • ikeVersioninteger

        One of: 1, 2

    • pskImportedboolean

      True when the existing PSK will be carried over on apply.

    • validboolean
    • errorsarray of string
  • warningsarray of string

MirthImportResult

  • channelsarray of object
    6 fields
    • mirthIdstring
    • namestring
    • groupstring
    • workflowIdstring | null
    • sourcestring
    • destinationsarray of object
      3 fields
      • namestring
      • transportstring
      • mappedboolean
  • workflowsarray of Workflow
  • profileStubsarray of object

    Adapter profiles apply would create. Never carry credentials.

    5 fields
    • keystring
    • namestring
    • adapterTypestring

      One of: "mllp", "generic-rest", "sftp"

    • configobject
    • credentialsRequiredboolean
  • warningsarray of object
    3 fields
    • channelstring
    • connectorstring
    • messagestring
  • unsupportedarray of object
    3 fields
    • channelstring
    • connectorstring
    • transportstring
  • networkobject
    2 fields
    • privateEndpointsarray of object
      5 fields
      • hoststring
      • portinteger
      • channelstring
      • connectorstring
      • directionstring

        One of: "inbound", "outbound"

    • suggestedRemoteSubnetsarray of string

TransformStepConfig

Options of a transform step (checked at save). Other keys are type-specific (fhir-to-hl7v2, fhir-bulk-split).

  • mapModestring

    field-mapping: build a new object, or copy the input and set only the targets ("copy"; hl7: targets edit an HL7 input in place).

    One of: "new", "copy"

  • onRowErrorstring

    A mapping row that cannot be applied fails the step (rejected: not retried automatically) or drops its field with a warning in the node result's diagnostics.

    One of: "fail", "skip"

  • mappingModestring

    hl7v2-to-fhir: custom mappings write into the converter's Bundle (merge) or replace the converter (replace).

    One of: "merge", "replace"

  • nextOfKinstring

    hl7v2-to-fhir: each NK1 as a RelatedPerson linked to the Patient, or left out.

    One of: "skip", "related-person"

  • messageHeaderstring

    hl7v2-to-fhir: a MessageHeader from MSH whose focus is every other resource, or left out.

    One of: "skip", "include"

  • fieldsarray of string

    code-table: the JSON paths to translate ([*] allowed); an unknown code fails unless onMissingCode says otherwise. Without fields every string is translated and unknown codes pass through.

  • onMissingCodestring

    code-table: an unknown code (with default for "default").

    One of: "fail", "passthrough", "default"

  • codeTablesarray of string

    javascript: code tables lookup(table, code) may read, loaded before the code runs.

  • escapestring

    template: how {{values}} are escaped. Default from the text after any leading {{#…}}/{{/…}}/{{else}} tags: json for {…}/[…], hl7 for MSH… (escapes | and line breaks, keeps ^ ~ &), xml for <…, else none.

    One of: "none", "json", "hl7", "xml"

  • onMissingstring

    template: a path with no value renders empty (JSON: null) with a warning, or fails the step.

    One of: "empty", "fail"

  • delimiterstring

    csv-parse / csv-generate: one character; "\t" for a tab.

  • recordDelimiterstring

    csv-parse: "auto" (CRLF, LF or CR) or a literal record separator.

  • quotestring

    csv-parse / csv-generate: the quote character.

  • headerboolean

    csv-parse: the first record names the columns (false: col1..colN or columns). csv-generate: write a header line.

  • columnsarray of any

    csv-parse: [{ name, type: string|number|boolean|date }]. csv-generate: the column order (names).

  • maxRowsinteger

    csv-parse: more rows than this fails the step.

  • quoteModestring

    csv-generate: quote only fields that need it, or every field.

    One of: "minimal", "all"

  • xpathsmap of string

    xml-parse: names to XPath expressions (a subset: paths, //, *, @attr, text(), count(), [n], [last()], [@a='v'], [child='v']); results in values.

  • stripNamespacesboolean

    xml-parse: drop namespace prefixes from element and attribute names.

  • stylesheetstring

    xslt: the XSLT 1.0 stylesheet. Self-contained: xsl:include, xsl:import and document() other than document('') are refused, and so is a DOCTYPE or entity declaration.

  • sourcestring

    xslt: what the stylesheet reads: the message text, the text at sourceField, the channel map's sourceVariable, or (hl7-xml) the HL7 v2 message as Mirth's HL7 v2 XML; then output to the message that is <HL7Message> XML becomes HL7 v2 again.

    One of: "message", "field", "variable", "hl7-xml"

  • sourceFieldstring

    xslt: a dot path when source is "field".

  • sourceVariablestring

    xslt: a channel map name when source is "variable".

  • resultTostring

    xslt: where the output goes: it becomes the message (a file pickup keeps its details, with the output as content), resultField on a copy of the message, or the channel map's resultVariable (the message goes on unchanged).

    One of: "message", "field", "variable"

  • resultFieldstring

    xslt: a dot path when resultTo is "field".

  • resultVariablestring

    xslt: a channel map name when resultTo is "variable".

  • paramsarray of object

    xslt: global xsl:param values. A value is text; {{channel.KEY}} reads the channel map and {{sender.KEY}} the run's sender settings.

    2 fields
    • namestringrequired
    • valuestringrequired

ValueOp

uppercase, lowercase, trim; substring {start, end?}; pad {length ≤ 255, char, side left|right}; replace {find, with} (literal, every occurrence; no regex); date-format {from (auto|ISO|ISO-DATE|HL7|HL7DT|YYYYMMDD|YYYY-MM-DD|MM/DD/YYYY), to, timezone? (IANA)}; type-cast {to number|boolean|string, trueValues?, falseValues?}.

  • opstringrequired

    One of: "uppercase", "lowercase", "trim", "substring", "pad", "replace", "date-format", "type-cast"

Workflow

  • idstringrequired
  • namestringrequired
  • descriptionstring
  • enabledbooleanrequired
  • nodesarray of WorkflowNoderequired
  • edgesarray of WorkflowEdgerequired
  • startNodeIdstringrequired
  • triggerobject | object | object | object | object | object | object | object | object | object | object | object | objectrequired

    One of eight supported trigger types. The type discriminant selects the applicable additional fields.

    13 fields
    • type: "manual"object
      1 field
      • typestringrequired

        One of: "manual"

    • type: "topic"object

      Runs once for every event a Publish step writes to the topic (same workspace). Durable fan-out through the work table, at least once, deduplicated by event id.

      2 fields
      • typestringrequired

        One of: "topic"

      • topicstringrequired
    • type: "webhook"object
      13 fields
      • typestringrequired

        One of: "webhook"

      • webhookIdstringrequired
      • pathstring
      • splitBatchesboolean

        Split an HL7 v2 batch (FHS/BHS ... BTS/FTS, or several MSH segments in one delivery) into one run per message, in batch order, each deduplicated on its own MSH-10.

      • charsetstring

        How the received bytes are decoded before parsing. Omitted: UTF-8 (or the Content-Type charset parameter). msh-18: the message's MSH-18 (8859/1, UNICODE UTF-8, ASCII), UTF-8 when it is empty or unknown.

        One of: "utf-8", "iso-8859-1", "windows-1252", "ascii", "msh-18"

      • secretstring
      • timestampToleranceSecondsinteger

        Replay window: the most seconds a signed timestamp (webhook-timestamp or x-webhook-timestamp) may be from the engine's clock. Outside it the answer is 401 TIMESTAMP_OUT_OF_TOLERANCE.

      • requireTimestampboolean

        Refuse a valid signature that carries no signed timestamp (401 TIMESTAMP_REQUIRED). Off: senders that sign the body only keep working.

      • expectedHeadersmap of string
      • bodySchemaobject

        JSON Schema the body must match: type, properties, required, additionalProperties (boolean), items, enum, const, minLength, maxLength, pattern, format (date, date-time, email, uuid), minimum, maximum, minItems, maxItems; $schema, title and description are allowed and not checked; $defs at the root and $ref to #/$defs/<name>. Other keywords are refused on save. A pasted OpenAPI requestBody (with its components) or document ({ document, operationId }) is stored converted to this subset. A body that no trigger on the webhook id accepts is 400 BODY_SCHEMA_INVALID with problems (JSON Pointers, never values), and nothing runs.

      • senderFromobject

        Where a JSON delivery names its sender, for the workflow's sender table ({{sender.KEY}}, per-sender connections): exactly one of path (a dotted path into the body, e.g. organization.id) or header (a header name). The value is matched like an HL7 message's MSH-4.

        2 fields
        • pathstring
        • headerstring
      • orderingstring

        fifo: deliveries run one at a time in arrival order, across every engine replica (an ordering lane per trigger). none: they run in parallel.

        One of: "none", "fifo"

      • onErrorstring

        With ordering fifo. continue: a failed message is reported and the next one runs. hold: a failed message stops its lane; only its own retries and replays run until one succeeds, or the message is discarded from the ACK queue.

        One of: "continue", "hold"

    • type: "schedule"object
      3 fields
      • typestringrequired

        One of: "schedule"

      • cronstringrequired

        Cron expression; an alias of the cron trigger, run once per slot across replicas.

      • timezonestring
    • type: "cron"object
      3 fields
      • typestringrequired

        One of: "cron"

      • cronExpressionstringrequired
      • timezonestring
    • type: "polling"object
      12 fields
      • typestringrequired

        One of: "polling"

      • intervalintegerrequired

        Poll interval in milliseconds (at least 10000).

      • adapterProfileIdstringrequired

        Adapter profile to read; must be in the workflow's workspace.

      • actionstring

        Adapter action to call. Default: search when the adapter has it (FHIR adapters, whose read is read-by-id), otherwise read.

      • paramsobject

        Adapter params. A string value containing {{cursor}} gets the stored cursor; before the first cursor such a value is left out.

      • itemsPathstring

        Dot path to the item array in the adapter result. Not needed for an array or a FHIR Bundle.

      • idFieldstring

        Dot path to each item's id. With cursorField, the dedup key is the id plus its cursor value, so a later change to the same record runs again.

      • cursorFieldstring

        Dot path to an ordered change marker (ISO timestamp or number). Without it, the last 5,000 ids seen are the replay guard.

      • cursorFormatstring

        How cursorField values are written when they do not sort as text (MM/DD/YYYY). Each value is read in this format and stored as ISO-8601; {{cursor}} is sent back in it. A value that does not parse does not run. Changing it starts the cursor again.

        One of: "MM/DD/YYYY", "MM/DD/YYYY HH:mm", "MM/DD/YYYY HH:mm:ss", "MM/DD/YYYY hh:mm A", "MM/DD/YYYY hh:mm:ss A", "DD/MM/YYYY", "DD/MM/YYYY HH:mm:ss", "YYYYMMDDHHmmss", "epoch-seconds", "epoch-millis"

      • maxItemsPerPollinteger

        Items one poll runs. Items sharing the last item's cursor value also run, so a group is never split.

      • filterobject

        Inbound filter ({ logic, rules, groups?, customScript? }), as on the other triggers. A polled item it rejects runs no workflow and creates no work row, but the cursor moves past it, so it is not read again.

      • startFromstring

        now: the first poll records what already exists and runs nothing. beginning: the first poll runs every item.

        One of: "now", "beginning"

    • type: "mllp"object
      13 fields
      • typestringrequired

        One of: "mllp"

      • messageTypesarray of stringrequired
      • sendingFacilitystring
      • sendingAppstring
      • splitBatchesboolean

        Split an HL7 v2 batch (FHS/BHS ... BTS/FTS, or several MSH segments in one delivery) into one run per message, in batch order, each deduplicated on its own MSH-10.

      • charsetstring

        How the received bytes are decoded before parsing. Omitted: UTF-8. msh-18: the message's MSH-18 (8859/1, UNICODE UTF-8, ASCII), UTF-8 when it is empty or unknown.

        One of: "utf-8", "iso-8859-1", "windows-1252", "ascii", "msh-18"

      • listenerstring

        The MLLP listener (port) this trigger takes messages from, declared in Helm mllp.listeners. Omitted: default (mllp.port). A save naming an undeclared listener is a 400.

      • ackModestring

        accept: AA once the message is durably recorded. respond (#751): waits like destination, then answers with the ACK the workflow's Respond step built (a custom MSA and ERR segments, or a whole ACK); with no usable Respond output, the destination-mode outcome; when the wait runs out, ackTimeoutCode. destination: the ACK waits for the workflow's destinations: AA when every one completed, AR when one rejected it for good, AE on any other failure or when they have not finished within ackTimeoutMs. A resend of a message whose delivery failed replays it once and waits again. Not used for messages from an msh15 listener that set MSH-15.

        One of: "accept", "destination", "respond"

      • ackTimeoutMsinteger

        destination and respond modes: how long the ACK waits, capped at the listener's MLLP_TIMEOUT minus 5 s. One sender connection handles one message at a time, so a slow destination slows that sender (intended backpressure).

      • ackTimeoutCodestring

        respond mode: the ACK sent when the run has not settled within ackTimeoutMs. AE: the sender resends (dedup absorbs it). AR: the sender gives up on the message; the recorded run still runs.

        One of: "AE", "AR"

      • ackOnFailurestring

        respond mode, when a step after the Respond step fails: respond keeps the Respond step's ACK (Mirth's respond from destination); AE answers AE "Workflow failed; retry".

        One of: "respond", "AE"

      • filteredAckstring

        The ACK for a message this trigger's filter drops when no other workflow takes it. AR: "No matching triggers". AA: accepted, as Mirth answers for filtered messages. Either way the message is kept in Messages as Filtered, with the rule that dropped it.

        One of: "AR", "AA"

      • onErrorstring

        Messages always run in arrival order per sending facility (lane <trigger>|<MSH-4>). continue: a failed message is reported and the next one runs. hold: a failed message stops its lane; only its own retries and replays run until one succeeds, or the message is discarded from the ACK queue.

        One of: "continue", "hold"

    • type: "fhir-subscription"object
      6 fields
      • typestringrequired

        One of: "fhir-subscription"

      • resourceTypestringrequired
      • criteriastring
      • interactionstring

        One of: "create", "update", "delete", "create-or-update"

      • orderingstring

        fifo: deliveries run one at a time in arrival order, across every engine replica (an ordering lane per trigger; one lane per resourceType/id). none: they run in parallel.

        One of: "none", "fifo"

      • onErrorstring

        With ordering fifo. continue: a failed message is reported and the next one runs. hold: a failed message stops its lane; only its own retries and replays run until one succeeds, or the message is discarded from the ACK queue.

        One of: "continue", "hold"

    • type: "x12"object
      19 fields
      • typestringrequired

        One of: "x12"

      • transactionSetsarray of stringrequired
      • sourceTypestringrequired

        Which deliveries this trigger takes. The server decides a delivery's source: webhook for POST /api/triggers/x12 with a token, upload for a dashboard upload, sftp for the SFTP pickup. A sender cannot claim one.

        One of: "sftp", "webhook", "upload"

      • sftpProfileIdstring

        sourceType sftp: the SFTP adapter profile whose folder the engine polls for X12 files.

      • pollIntervalinteger

        sourceType sftp: milliseconds between pickups.

      • remotePathstring

        sourceType sftp: the folder to pick files up from.

      • filenamePatternstring

        sourceType sftp: a glob (*, ?, [abc]) on the file name.

      • afterProcessingstring

        sourceType sftp: what happens to a file once its transaction sets are recorded. A file is never run twice, leave included: the engine's record of a file does not expire while the file is in the folder, and deduplicate: false does not turn it off.

        One of: "move", "delete", "leave"

      • processedPathstring

        sourceType sftp: where move puts files (required for move).

      • errorPathstring

        sourceType sftp: where a file that is not X12 goes; without it the file stays and the error is recorded.

      • filenameRegexboolean

        filenamePattern is a regular expression matched against the whole name.

      • minFileAgeMsinteger

        A file modified more recently than this may still be being written and waits for a later pickup.

      • maxFileBytesinteger

        A larger file (by its listed size) is never downloaded: it goes to errorPath (or stays) with a size error.

      • sortBystring

        Pickup order: oldest first, or by name.

        One of: "modified", "name"

      • encodingstring

        How file bytes are decoded (latin1: ISO-8859-1).

        One of: "utf8", "latin1"

      • ackPathstring

        sourceType sftp: where the 999 / TA1 (see acknowledgments) are written, as <file>.999 / <file>.ta1.

      • acknowledgmentsstring

        999: a 999 per functional group comes back with the delivery. 999+ta1: also a TA1 when ISA14=1 or the envelope is broken. Syntax checks only (control numbers and counts, a known ST), not implementation-guide validation.

        One of: "none", "999", "999+ta1"

      • orderingstring

        fifo: deliveries run one at a time in arrival order, across every engine replica (an ordering lane per trigger). none: they run in parallel.

        One of: "none", "fifo"

      • onErrorstring

        With ordering fifo. continue: a failed message is reported and the next one runs. hold: a failed message stops its lane; only its own retries and replays run until one succeeds, or the message is discarded from the ACK queue.

        One of: "continue", "hold"

    • type: "sftp"object

      Picks files up from an SFTP folder (like a Mirth File Reader). A file is downloaded only once it is minFileAgeMs old and its listed size is at most maxFileBytes; it is moved, deleted or left only after its runs are recorded, and never runs twice.

      20 fields
      • typestringrequired

        One of: "sftp"

      • sftpProfileIdstringrequired

        The SFTP adapter profile whose folder the engine polls.

      • minFileBytesinteger

        A smaller file is left in place (Mirth fileSizeMinimum).

      • maxFilesPerPollinteger

        At most this many files per pickup; the rest wait for the next one.

      • recursiveboolean

        Also pick up files in subfolders (at most 10 deep), never in processedPath or errorPath. file.name is relative to remotePath; a moved file lands in processedPath by its own name.

      • ignoreDotboolean

        Skip files and folders whose name starts with a dot.

      • remotePathstringrequired

        The folder to pick files up from.

      • pollIntervalintegerrequired

        Milliseconds between pickups.

      • filenamePatternstring

        A glob (*, ?, [abc]) on the file name.

      • filenameRegexboolean

        filenamePattern is a regular expression matched against the whole name.

      • minFileAgeMsinteger

        A file modified more recently than this may still be being written and waits for a later pickup.

      • maxFileBytesinteger

        A larger file (by its listed size) is never downloaded: it goes to errorPath (or stays) with a size error.

      • sortBystring

        Pickup order: oldest first, by name, or smallest first.

        One of: "modified", "name", "size"

      • encodingstring

        How file bytes are decoded (latin1: ISO-8859-1). binary: the run's content is the bytes as base64, with contentEncoding "base64" (not with batch.mode rows).

        One of: "utf8", "latin1", "windows-1252", "ascii", "utf16le", "binary"

      • afterProcessingstring

        What happens to a file once its runs are recorded. leave: the file stays and never runs again while it is unchanged.

        One of: "move", "delete", "leave"

      • processedPathstring

        Where move puts files (required for move; not remotePath).

      • errorPathstring

        Where a file that is too large, or a CSV that does not parse (rows mode), goes; without it the file stays and the error is recorded.

      • batchobject
        3 fields
        • modestring

          file: one run per file, with { file, content }. rows: one run per CSV row, with { file, row, rowIndex, rowCount }; all rows of a file are recorded together.

          One of: "file", "rows"

        • csvobject

          rows mode: csv-parse options (delimiter, recordDelimiter, quote, escape, header, columns, skipLines, trim, skipEmpty, strictColumns, maxRows at most WORKFLOW_MAX_PENDING).

        • fixedWidthobject

          rows mode, instead of csv: fixed-width-parse options (columns or records, recordDelimiter, recordLength, headerLines, footerLines, unknownRecords, maxRows at most WORKFLOW_MAX_PENDING); one run per record.

      • orderingstring

        fifo: runs execute one at a time in pickup order (files, then rows), across every engine replica.

        One of: "none", "fifo"

      • onErrorstring

        With ordering fifo: what a failed run does to its lane.

        One of: "continue", "hold"

    • type: "file"object

      Picks files up from the folder of a file, ftp, smb, webdav, s3 or sftp adapter profile (a Mirth File Reader over any scheme, P138). Same settings and runs as the sftp trigger; triggerType is "file".

      20 fields
      • typestringrequired

        One of: "file"

      • adapterProfileIdstringrequired

        The adapter profile whose folder the engine polls: its adapter type (file, ftp, smb, webdav, s3 or sftp) is the transport.

      • minFileBytesinteger

        A smaller file is left in place (Mirth fileSizeMinimum).

      • maxFilesPerPollinteger

        At most this many files per pickup; the rest wait for the next one.

      • recursiveboolean

        Also pick up files in subfolders (at most 10 deep), never in processedPath or errorPath. file.name is relative to remotePath; a moved file lands in processedPath by its own name.

      • ignoreDotboolean

        Skip files and folders whose name starts with a dot.

      • remotePathstringrequired

        The folder to pick files up from.

      • pollIntervalintegerrequired

        Milliseconds between pickups.

      • filenamePatternstring

        A glob (*, ?, [abc]) on the file name.

      • filenameRegexboolean

        filenamePattern is a regular expression matched against the whole name.

      • minFileAgeMsinteger

        A file modified more recently than this may still be being written and waits for a later pickup.

      • maxFileBytesinteger

        A larger file (by its listed size) is never downloaded: it goes to errorPath (or stays) with a size error.

      • sortBystring

        Pickup order: oldest first, by name, or smallest first.

        One of: "modified", "name", "size"

      • encodingstring

        How file bytes are decoded (latin1: ISO-8859-1). binary: the run's content is the bytes as base64, with contentEncoding "base64" (not with batch.mode rows).

        One of: "utf8", "latin1", "windows-1252", "ascii", "utf16le", "binary"

      • afterProcessingstring

        What happens to a file once its runs are recorded. leave: the file stays and never runs again while it is unchanged.

        One of: "move", "delete", "leave"

      • processedPathstring

        Where move puts files (required for move; not remotePath).

      • errorPathstring

        Where a file that is too large, or a CSV that does not parse (rows mode), goes; without it the file stays and the error is recorded.

      • batchobject
        3 fields
        • modestring

          file: one run per file, with { file, content }. rows: one run per CSV row, with { file, row, rowIndex, rowCount }; all rows of a file are recorded together.

          One of: "file", "rows"

        • csvobject

          rows mode: csv-parse options (delimiter, recordDelimiter, quote, escape, header, columns, skipLines, trim, skipEmpty, strictColumns, maxRows at most WORKFLOW_MAX_PENDING).

        • fixedWidthobject

          rows mode, instead of csv: fixed-width-parse options (columns or records, recordDelimiter, recordLength, headerLines, footerLines, unknownRecords, maxRows at most WORKFLOW_MAX_PENDING); one run per record.

      • orderingstring

        fifo: runs execute one at a time in pickup order (files, then rows), across every engine replica.

        One of: "none", "fifo"

      • onErrorstring

        With ordering fifo: what a failed run does to its lane.

        One of: "continue", "hold"

    • type: "jms"object

      Consumes a JMS queue or topic over AMQP 1.0 (a Mirth JMS Listener) through a jms adapter profile. One engine replica consumes each trigger. A message is acknowledged to the broker only once its run is recorded, so a crash redelivers it, and the JMS message id dedups the redelivery. A message the filter drops is acknowledged; one that can't be recorded (license, backlog, shutdown) stays on the broker.

      10 fields
      • typestringrequired

        One of: "jms"

      • adapterProfileIdstringrequired

        The jms adapter profile (broker host, login, TLS).

      • destinationstringrequired

        Queue or topic name.

      • destinationTypestring

        One of: "queue", "topic"

      • subscriptionNamestring

        Topics: a durable subscription under this name (the profile's clientId, else medhook-<workflowId>, is its client id), so messages sent while no engine is connected wait for it.

      • selectorstring

        A JMS message selector, applied by the broker.

      • prefetchinteger

        Messages the broker may send ahead of acknowledgement.

      • orderingstring

        One of: "none", "fifo"

      • onErrorstring

        One of: "continue", "hold"

      • deduplicateboolean
    • type: "soap"object

      A SOAP 1.1/1.2 endpoint at /api/triggers/soap/{listenerId} with its WSDL at ?wsdl (a Mirth Web Service Listener).

      15 fields
      • typestringrequired

        One of: "soap"

      • listenerIdstringrequired
      • serviceNamestring

        The generated WSDL's service name.

      • namespacestring

        The generated WSDL's target namespace.

      • soapVersionstring

        One of: "1.1", "1.2", "both"

      • operationsarray of string

        Operation (Body element) names it takes; empty takes any.

      • wsSecuritystring

        One of: "none", "UsernameToken"

      • wsUsernamestring
      • wsPasswordstring

        Write-only: stored encrypted, read back as __set__.

      • secretstring

        HMAC-SHA256 key for x-webhook-signature. Write-only, read back as __set__.

      • wsdlstring

        A WSDL to serve instead of the generated one.

      • responseobject
        3 fields
        • modestring

          One of: "accepted", "destination"

        • nodeIdstring
        • timeoutMsinteger
      • orderingstring

        One of: "none", "fifo"

      • onErrorstring

        One of: "continue", "hold"

      • deduplicateboolean
  • metadataobject

    Arbitrary workflow-level metadata.

    1 field
    • handlesPHIboolean

      When true the engine requires a BAA-enabled license before executing.

  • createdBystring
  • createdAtstring (date-time)
  • updatedAtstring (date-time)
  • ownerstring | null

    Who owns the workflow (Settings · General). Changed with PATCH; null = not set.

  • tagsarray of string

    Lowercased tags (Settings · General). Changed with PATCH.

  • maxInFlightinteger | null

    Most runs of this workflow the work runner starts at once across replicas: queued messages and polls wait while that many run (Settings · Delivery). A manual run is not held back but counts. Changed with PATCH; null = no limit.

  • dedupTtlHoursinteger

    GET only: how long a duplicate receipt is kept (INBOUND_DEDUP_TTL_HOURS, default 24), the Duplicate messages window.

  • maxWorkflowRetriesinteger | null

    Max times to retry the entire workflow after top-level failure. Each retry is a durable pending execution due after the backoff: it survives a restart and holds no queue slot or ordering lane while it waits. Saved with the workflow and its versions; the deployed version's value runs. null = not set (0).

  • workflowRetryDelayMsinteger | null

    Base delay (ms) before the first workflow-level retry; doubles per attempt, capped at 30 minutes.

WorkflowEdge

  • idstringrequired
  • sourcestringrequired
  • targetstringrequired
  • labelstring

    How the edge routes. "error": the failure path of its source step. "true"/"false": a condition (Filter) step's branches. "done": a loop's after-loop edge, run once after the last item with the loop output (without one, the path ends at the loop). Any other label is display text. Edges carry no condition: a request with a non-empty condition is refused (400); branch with a condition (Filter) step instead.

WorkflowNode

  • idstringrequired
  • typestringrequired

    respond: answers a webhook caller (the trigger must be a webhook; one per workflow; in a channel it is a destination's send). data.statusCode (2xx, 4xx or 5xx, default 200; not 401, 403, 409, 413, 429 or 503, which the webhook route answers itself), data.contentType, data.headers (name: Latin-1 value, at most 20; not Content-Type, Content-Length, Set-Cookie, Location, Refresh, Clear-Site-Data, Strict-Transport-Security, Access-Control-*, Content-Security-Policy* or Cross-Origin-*), data.timeoutMs (1000-60000, how long the caller waits) and data.errorStatus (4xx or 5xx, not the reserved ones, default 502, what a failed run answers); the step's input is the body. Without its own custom or destination response setting, the webhook waits for the run and answers this. component: data.componentId and data.release ("1.0.0") pin a release of a component in the same workspace; its steps run inline in this run (each one a step of the trace, ids "<step>~<inner>"), between a check of its inputs and of its outputs, and only its declared outputs go on. publish: data.topic names a topic in the same workspace; the message is checked against its schema and delivered once to every workflow with a topic trigger on it, as queued runs (not waited for). In a router branch it is the destination's send. router: each non-error outgoing edge is one isolated destination (filter → map → send). data.order "concurrent" (default) starts them all at once; "sequential" runs them one after another in edge order, a failed destination never stopping the next, and each later destination's JavaScript outputs and filters read the earlier ones as the frozen responses global: responses[name] = { status: sent | discarded (a Sink, live or test) | queued | filtered | failed | not-run, dryRun (true in a dry run or step test: status reads "sent" as in a live run, but nothing was sent; the trace shows WOULD SEND), data (the send step's output), error }. loop: runs its body per item; its "done" edge continues after the last item. trigger: the start node passes the message through; mid-graph, data.workflowId names a workflow in the same workspace that is started as a queued run with the message (data.input merged into a record message) and not waited for; chains stop at 5 levels. A "wait" step is refused (removed).

    One of: "adapter", "transform", "condition", "parallel", "router", "loop", "trigger", "publish", "component", "respond", "collector"

  • labelstringrequired
  • positionobjectrequired
    2 fields
    • xnumberrequired
    • ynumberrequired
  • dataobjectrequired

    Node-type-specific configuration. Shape varies by type (AdapterStepData, TransformStepData, ConditionStepData, etc.). Any step may carry errorHandling (ErrorHandling). A transform step's mapping rows are FieldMapping and its config options TransformStepConfig, both checked at save.

    3 fields
    • errorHandlingErrorHandling

      What a failed step does. Step retries wait in-process within one run, so each wait is capped at 60 s and the attempts at 10; longer waits are workflow retries (maxWorkflowRetries), which are durable.

    • mappingarray of FieldMapping
    • Options of a transform step (checked at save). Other keys are type-specific (fhir-to-hl7v2, fhir-bulk-split).