---
title: "Search traces"
method: POST
path: "/v2/workflows/{workflowId}/traces/search"
tags: ["Workflow"]
---

# Search traces

`POST /v2/workflows/{workflowId}/traces/search`

Retrieves the trace ids of a given workflow id and state data

## Path parameters

- `workflowId` string, required

## Request body

- TraceStateDataDto
  - `filters` object — The state data keys and values on which the Traces will be filtered on

## Response `200`

The trace ids of the given workflow id and state data

- WorkflowSearchV2Dto
  - `error` unknown, required
  - `data` string[] — The trace ids

---

[API](https://skmtc.net/stratumn/apis/open-api.md) · [All operations](https://skmtc.net/stratumn/apis/open-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/stratumn/open-api/revisions/7acd41fdff82/schema)
