Use workflow runs when the full process is configured in Plextera Studio and your application only needs to start it, monitor it, and consume the result.
Workflows can include Document Insights, web automation, data transformation, file handling, and custom processing steps.
You need:
Workflow input is defined by the workflow configuration. The same endpoint can accept different JSON shapes for different workflows.
Use JSON when the workflow trigger expects structured request data.
The response is accepted asynchronously:
Use multipart form-data when the workflow was designed to consume form fields and uploaded files, similar to a webhook trigger.
Multipart behavior:
application/json.Multipart input should only be used when the workflow is configured to expect form-data semantics. Otherwise, prefer JSON.
Call GET /workflow-runs/{runId} until the run reaches a terminal status.
The response includes step-level output. Nested workflow output is represented inside steps[*].nestedRuns.
Terminal statuses are COMPLETED, FAILED, and CLOSED.
Use GET /workflow-runs to list recent workflow runs.
CLOSED is a terminal Studio state. Use it when you need to find runs that were closed in Plextera Studio.
Subscribe to workflow events when your application should be notified after a run completes or fails:
workflow.run.completedworkflow.run.failedFor completed workflow runs, the event payload includes the full run model with step-level outputs.
See Event Subscriptions for setup, headers, signatures, and retry behavior.