import osfrom unstructured import UnstructuredClientclient = UnstructuredClient( username=os.environ.get("UNSTRUCTURED_USERNAME"), # This is the default and can be omitted password=os.environ.get("UNSTRUCTURED_PASSWORD"), # This is the default and can be omitted)response = client.workflows.execute( workflow_id="workflow_id",)print(response.workflow_id)
{ "workflow_id": "<string>"}
Workflows
Execute Workflow
Execute a workflow
POST
/
workflows
/
execute
Python
import osfrom unstructured import UnstructuredClientclient = UnstructuredClient( username=os.environ.get("UNSTRUCTURED_USERNAME"), # This is the default and can be omitted password=os.environ.get("UNSTRUCTURED_PASSWORD"), # This is the default and can be omitted)response = client.workflows.execute( workflow_id="workflow_id",)print(response.workflow_id)