workflow-editor

Test Workflow

Test a V3 workflow via the V3 Temporal orchestrator.

The workflow is materialized (YAML → DB nodes/edges), then the test service builds a WorkflowExecutionContext with the trigger node's output pre-populated from body.context - the trigger itself is not executed.

Currently supports the event-trigger type for testing.

post/v3/workflow-editor/drafts/{workflow_id}/test

Request

  • Base URL
    https://api.mentium.io (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Path parameters

workflow_idstring uuid required

Headers

mentium-workspace-idstring nullable

Request body

contextobject

Trigger test data - validated against the trigger node's output_model. For event-trigger: include resource_type, resource_id, event_data, etc. For email-trigger: include subject, sender, message_id, etc. triggered_at is auto-populated if not provided.

is_testboolean

Whether this is a test run.

Response

Successful Response

temporal_workflow_idstring required

Temporal workflow ID for tracking.

workflow_idstring required

The workflow that was tested.

execution_idstring required

The workflow execution ID.

statusstring

Test run status.

Changes

No recorded changes to this operation across all 2 revisions of this API.