---
title: "Search Workflow Executions"
method: GET
path: "/workspaces/{workspace_id}/workflow-executions/search"
tags: ["workflow-executions"]
---

# Search Workflow Executions

`GET /workspaces/{workspace_id}/workflow-executions/search`

## Request

- Base URL: `https://platform.tracecat.com/api`
- URL: `https://platform.tracecat.com/api/workspaces/{workspace_id}/workflow-executions/search`
- Auth: one of:
  - API key in cookie `fastapiusersauth`
  - HTTP bearer

## Path parameters

- `workspace_id` string, uuid, required

## Query parameters

- `trigger` TriggerType[], nullable
- `status` string[], nullable
- `status_mode` 'include' | 'exclude'
- `start_time_from` string, date-time, nullable
- `start_time_to` string, date-time, nullable
- `close_time_from` string, date-time, nullable
- `close_time_to` string, date-time, nullable
- `duration_gte_seconds` integer, nullable
- `duration_lte_seconds` integer, nullable
- `search_term` string, nullable: Filter by workflow title or alias.
- `relation` 'all' | 'root' | 'child'
- `case_task_id` string, uuid, nullable: Filter by the case task that started the run.
- `workflow_id` union
  - string
  - string
- `limit` integer
- `cursor` string, nullable
- `reverse` boolean
- `user_id` union
  - string, uuid
  - 'current': A sentinel user ID that represents the current user.

## Response `200`

Successful Response

- CursorPaginatedResponseWorkflowRunReadMinimal
  - `items` WorkflowRunReadMinimal[], required
    - `id` string, required: The ID of the workflow execution
    - `run_id` string, required: The run ID of the workflow execution
    - `start_time` string, date-time, required: The start time of the workflow execution
    - `execution_time` string, date-time, nullable: When this workflow run started or should start.
    - `close_time` string, date-time, nullable: When the workflow was closed if closed.
    - `status` 'RUNNING' | 'COMPLETED' | 'FAILED' | 'CANCELED' | 'TERMINATED' | 'CONTINUED_AS_NEW' | 'TIMED_OUT', required
    - `workflow_type` string, required
    - `task_queue` string, required
    - `history_length` integer, required: Number of events in the history
    - `parent_wf_exec_id` string, nullable
    - `trigger_type` 'manual' | 'scheduled' | 'webhook' | 'case' | 'form', required: Trigger type for a workflow execution.
    - `execution_type` 'draft' | 'published': Execution type for a workflow execution. Distinguishes between draft (development) and published (production) executions.
    - `workflow_id` string, nullable: Short workflow ID parsed from workflow execution ID.
    - `workflow_title` string, nullable: Workflow title from workspace metadata when available.
    - `workflow_alias` string, nullable: Workflow alias from workspace metadata or execution search attributes.
  - `next_cursor` string, nullable: Cursor for next page
  - `prev_cursor` string, nullable: Cursor for previous page
  - `has_more` boolean: Whether more items exist
  - `has_previous` boolean: Whether previous items exist
  - `total_estimate` integer, nullable: Estimated total count from table statistics

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tracecat/apis/tracecat-api.md) - [All operations](https://skmtc.dev/tracecat/apis/tracecat-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tracecat/apis/tracecat-api/revisions/2efdda25045f?raw)
