Workflow Runs
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.
Before you start
You need:
- An API key. See Authentication.
- A published workflow identifier known to your integration.
- The input shape expected by that workflow. Plextera does not validate the workflow-specific input at the Public API boundary.
Workflow input is defined by the workflow configuration. The same endpoint can accept different JSON shapes for different workflows.
Start a workflow with JSON
Use JSON when the workflow trigger expects structured request data.
The response is accepted asynchronously:
Start a workflow with multipart form-data
Use multipart form-data when the workflow was designed to consume form fields and uploaded files, similar to a webhook trigger.
Multipart behavior:
- Text fields are forwarded under their original part names.
- JSON parts are parsed as JSON when their content type is
application/json. - File parts are uploaded to Plextera File Service.
- File parts are exposed to the workflow under the same part name as file-node arrays.
Multipart input should only be used when the workflow is configured to expect form-data semantics. Otherwise, prefer JSON.
Poll a workflow run
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 and FAILED.
Receive workflow events
Subscribe to workflow events when your application should be notified after a run completes or fails:
workflow.run.completedworkflow.run.failed
For 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.