from dari import Dariclient = Dari(api_key="YOUR_API_KEY")executions = client.list_workflow_executions("wf_123456789")print(f"Found {len(executions['executions'])} executions")for execution in executions['executions']: print(f"- {execution['status']}: {execution['id']}")
Copy
{ "executions": [ { "id": "exec_abc123def456", "name": "My First Workflow", "workflow_id": "wf_123456789", "status": "completed", "created_at": "2025-01-15T14:30:00.123456+00:00", "completed_at": "2025-01-15T14:32:15.789012+00:00" }, { "id": "exec_xyz789ghi012", "name": "My First Workflow", "workflow_id": "wf_123456789", "status": "running", "created_at": "2025-01-15T15:45:30.567890+00:00", "completed_at": null } ]}
Workflows
List Workflow Executions
Retrieve all executions for a specific workflow
GET
https://api.usedari.com
/
public
/
workflows
/
{workflow_id}
Copy
from dari import Dariclient = Dari(api_key="YOUR_API_KEY")executions = client.list_workflow_executions("wf_123456789")print(f"Found {len(executions['executions'])} executions")for execution in executions['executions']: print(f"- {execution['status']}: {execution['id']}")
Copy
{ "executions": [ { "id": "exec_abc123def456", "name": "My First Workflow", "workflow_id": "wf_123456789", "status": "completed", "created_at": "2025-01-15T14:30:00.123456+00:00", "completed_at": "2025-01-15T14:32:15.789012+00:00" }, { "id": "exec_xyz789ghi012", "name": "My First Workflow", "workflow_id": "wf_123456789", "status": "running", "created_at": "2025-01-15T15:45:30.567890+00:00", "completed_at": null } ]}
This endpoint allows you to retrieve a list of all executions for a specific workflow that your workspace has access to. When a workflow is executed, each run creates a new execution record with a unique execution ID.