WorkflowRunStatus values
| Value | Description |
|---|---|
PENDING | The run has been created but not yet started. |
RUNNING | The runner is actively executing the workflow. |
COMPLETED | The workflow finished successfully. |
FAILED | The workflow encountered an unrecoverable error. |
WorkflowRunnerType values
| Value | Description |
|---|---|
SELF_HOSTED | The workflow runs on your own self-hosted runner. |
Get run
Returns the current state of a single workflow run.UUID of the workflow run.
WorkflowRunResponse
UUID of the run.
UUID of the workflow definition that produced this run.
UUID of the user who triggered the run.
The runner that executed this run. Currently always
SELF_HOSTED.Current lifecycle status. One of
PENDING, RUNNING, COMPLETED, FAILED.ISO 8601 timestamp when execution began.
ISO 8601 timestamp when execution finished.
null if still in progress.A frozen copy of the workflow configuration captured at trigger time, including sources, instructions, outputs, and template. This ensures the run record is self-contained even if the definition changes later.
Error message if the run failed.
null otherwise.ISO 8601 timestamp when the run record was created.
ISO 8601 timestamp of the last status update.
Delete run
Deletes the record of a workflow run. This removes the run from the API — it does not cancel an in-progress execution.UUID of the run to delete.
Run callback
Called by your self-hosted runner to report the outcome of a run. Use this endpoint to signal completion or failure once your runner has finished processing.UUID of the run to update.
Final status to set on the run. One of
COMPLETED or FAILED.Error description if
status is FAILED. Up to 8192 characters.This endpoint is intended for your self-hosted runner, not for end-user clients. Secure the callback using your runner’s webhook secret.
WorkflowCallbackResponse
List document version ingestion workflows
Returns ingestion workflows for document versions. These track how documents were processed into the knowledge base.Page number (1-indexed).
Number of results per page.
PaginatedResponse[WorkflowSummaryResponse]
Workflow ID for this ingestion job.
UUID of the document associated with this ingestion.
UUID of the document version being ingested.
Ingestion pipeline status. One of
pending, processing, completed, failed, cancelled.Description of the last recorded activity.
Error message if the ingestion failed.
ISO 8601 timestamp of the most recent run.
ISO 8601 timestamp of the last state change.
ISO 8601 timestamp of record creation.
Get document version ingestion workflow
Returns detailed information about a specific document version ingestion workflow.The workflow ID returned when the ingestion was triggered.
WorkflowDetailResponse
Returns all fields from WorkflowSummaryResponse plus:
Live execution status of the ingestion pipeline.
ISO 8601 timestamp when the pipeline started.
ISO 8601 timestamp when the pipeline completed.
null if still running.Number of content chunks processed during ingestion.
Rerun document version ingestion
Re-triggers the ingestion pipeline for a specific document version. Use this to retry a failed ingestion or reprocess after updating extraction settings. Knowledge Stack reuses the existing uploaded file — no re-upload needed.The workflow ID of the ingestion to rerun.
WorkflowActionResponse
Get workflow status
Returns the current execution status of any active workflow by its ID.The workflow ID to query.
WorkflowStatusResponse
The workflow ID.
Current execution status of the workflow.
ISO 8601 timestamp when the workflow started.
ISO 8601 timestamp when the workflow completed.
null if still running.Cancel workflow
Cancels an in-progress workflow.The workflow ID to cancel.
WorkflowCancelResponse