---
title: "search for workflows by a search attribute query"
method: POST
path: "/api/v1/workflow/search"
---

# search for workflows by a search attribute query

`POST /api/v1/workflow/search`

## Request body

- WorkflowSearchRequest
  - `query` string, required
  - `pageSize` integer
  - `nextPageToken` string

## Response `200`

successful operation

- WorkflowSearchResponse
  - `workflowExecutions` WorkflowSearchResponseEntry[]
    - `workflowId` string, required
    - `workflowRunId` string, required
  - `nextPageToken` string

## Other responses

- `400` — Invalid input

## Changes

> 50 revisions in range; 1 could not be searched.

- **2023-07-05** `b341064dfc4b` — 1 warning
  - added the new `LONG_POLL_TIME_OUT_SUB_STATUS` enum value to the `subStatus` response property for the response status `400`
- **2023-04-15** `86630172940f` — 1 warning, 3 info
  - added the new `WORKER_API_ERROR` enum value to the `subStatus` response property for the response status `400`
  - added the optional property `originalWorkerErrorDetail` to the response with the `400` status
  - added the optional property `originalWorkerErrorStatus` to the response with the `400` status
  - added the optional property `originalWorkerErrorType` to the response with the `400` status
- **2023-01-12** `f7d20041860e` — 3 warning
  - added the new `UNCATEGORIZED_SUB_STATUS` enum value to the `subStatus` response property for the response status `400`
  - added the new `WORKFLOW_ALREADY_STARTED_SUB_STATUS` enum value to the `subStatus` response property for the response status `400`
  - added the new `WORKFLOW_NOT_EXISTS_SUB_STATUS` enum value to the `subStatus` response property for the response status `400`
- **2022-12-27** `5a146368b6cd` — 2 info
  - added the new optional request property `nextPageToken`
  - added the optional property `nextPageToken` to the response with the `200` status
- …earlier changes not shown

[Full history](https://skmtc.dev/indeedeng/apis/workflow-apis/changes/api/v1/workflow/search/post.md)

---

[API](https://skmtc.dev/indeedeng/apis/workflow-apis.md) · [All operations](https://skmtc.dev/indeedeng/apis/workflow-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/indeedeng/workflow-apis/revisions/fe9c7606824c/schema)
