Complete API reference for the Kubiya Workflows service methods and exceptions
execute(workflow_definition: Union[Dict[str, Any], str], parameters: Optional[Dict[str, Any]] = None, stream: bool = True, runner: Optional[str] = None) -> Union[Dict[str, Any], Generator[str, None, None]]
workflow_definition
(Union[Dict[str, Any], str]
): Workflow definition as dictionary or JSON stringparameters
(Optional[Dict[str, Any]]
): Parameters to inject into the workflow (default: None)stream
(bool
): Whether to stream the execution in real-time (default: True)runner
(Optional[str]
): Specific runner to use for execution (default: None, uses default runner)stream=True
): Generator[str, None, None]
- Generator yielding execution eventsstream=False
): Dict[str, Any]
- Final response containing all eventsWorkflowExecutionError
: For execution-specific errors with detailed contextlist(filter: str = "all", limit: int = 10, offset: int = 0) -> Dict[str, Any]
filter
(str
): Filter criteria for executions (default: “all”)
"all"
: All executions regardless of status"running"
: Currently executing workflows"completed"
: Successfully completed workflows"failed"
: Failed workflow executionslimit
(int
): Maximum number of results to return (default: 10)offset
(int
): Number of results to skip for pagination (default: 0)Dict[str, Any]
: Dictionary containing workflow executions and metadataworkflow_id
(Optional[str]
): ID of the workflow that caused the errorexecution_id
(Optional[str]
): ID of the specific execution that faileddetails
(Dict[str, Any]
): Additional error context and metadataworkflow_id
(Optional[str]
): ID of the workflow that failedexecution_id
(Optional[str]
): ID of the failed executionstep
(Optional[str]
): Name of the step where failure occurreddetails
(Dict[str, Any]
): Complete error context