---
title: "Search traces with raw OpenSearch DSL"
method: POST
path: "/api/agent-observability/v1/traces/_search"
tags: ["traces"]
---

# Search traces with raw OpenSearch DSL

`POST /api/agent-observability/v1/traces/_search`

Proxy raw OpenSearch DSL to the configured trace index and return the original OpenSearch response body.

## Request body

- string

## Response `200`

Raw OpenSearch search response

- string

## Other responses

- `400` — Bad Request
- `405` — Method Not Allowed
- `504` — Gateway Timeout

---

[API](https://skmtc.dev/kweaver-ai/apis/agent-observability-api.md) · [All operations](https://skmtc.dev/kweaver-ai/apis/agent-observability-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kweaver-ai/agent-observability-api/revisions/7892b1b0bb52/schema)
