---
title: "Get agent names by trace ids"
method: POST
path: "/traces/agent-names-by-ids"
tags: ["Traces"]
---

# Get agent names by trace ids

`POST /traces/agent-names-by-ids`

Returns a map of trace id to agent name (from ClickHouse trace_stats).

## Request body

- object
  - `project_id` string, required
  - `trace_ids` string[], required

## Response `200`

Agent names

- object
  - `agent_names` object[], required
    - `trace_id` string, required
    - `agent_name` string, nullable, required

## Other responses

- `400` — Bad request
- `404` — Not found

---

[API](https://skmtc.dev/uselemma/apis/lemma-platform-api.md) · [All operations](https://skmtc.dev/uselemma/apis/lemma-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/uselemma/lemma-platform-api/revisions/5242165d7015/schema)
