---
title: "get workflow search attributes"
method: POST
path: "/api/v1/workflow/searchattributes/get"
---

# get workflow search attributes

`POST /api/v1/workflow/searchattributes/get`

## Request body

- WorkflowGetSearchAttributesRequest
  - `workflowId` string, required
  - `workflowRunId` string
  - `keys` SearchAttributeKeyAndType[]
    - `key` string
    - `valueType` 'KEYWORD' | 'TEXT' | 'DATETIME' | 'INT' | 'DOUBLE' | 'BOOL' | 'KEYWORD_ARRAY'

## Response `200`

successful operation

- WorkflowGetSearchAttributesResponse
  - `searchAttributes` SearchAttribute[]
    - `key` string
    - `stringValue` string
    - `integerValue` integer
    - `doubleValue` number, double
    - `boolValue` boolean
    - `stringArrayValue` string[]
    - `valueType` 'KEYWORD' | 'TEXT' | 'DATETIME' | 'INT' | 'DOUBLE' | 'BOOL' | 'KEYWORD_ARRAY'

## 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`
- …earlier changes not shown

[Full history](https://skmtc.dev/indeedeng/apis/workflow-apis/changes/api/v1/workflow/searchattributes/get/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)
