---
title: "Genai Conversation Spans"
method: POST
path: "/agents/conversations/spans"
tags: ["Agents"]
---

# Genai Conversation Spans

`POST /agents/conversations/spans`

## Request

- Base URL: `https://trace.wandb.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://trace.wandb.ai/agents/conversations/spans`
- Auth: none declared

## Request body

- AgentConversationSpansReq: Request the span sequences for an explicit set of conversations. Reads span scalar columns only (no message bodies) for the given `conversation_ids`. Powers the conversations-list spans minimap.
  - `project_id` string, required
  - `conversation_ids` string[]
  - `started_after` string, date-time, nullable
  - `started_before` string, date-time, nullable

## Response `200`

Successful Response

- AgentConversationSpansRes: Span sequences + feedback markers, one entry per requested conversation.
  - `conversations` AgentConversationSpans[], required
    - `conversation_id` string, required
    - `spans` AgentConversationSpan[], required
      - `operation_name` string, required
      - `trace_id` string, required
      - `span_id` string, required
      - `status` 'UNSET' | 'OK' | 'ERROR', required
      - `duration_ms` integer, required
    - `spans_feedback` AgentConversationSpanFeedback[], required
      - `trace_id` string, nullable, required: The turn this feedback is anchored to; None for conversation-level.
      - `feedback_type` 'wandb.agent_user_feedback' | 'wandb.agent_monitor', required
      - `tags` string[], required: Arbitrary descriptive tags applied to this feedback.
      - `ratings` AgentConversationSpanRating[], required: Numeric scorer ratings applied to this feedback.
        - `name` string, required
        - `value` number, required
        - `reason` string, nullable, required
        - `confidence` number, nullable, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-16** `dd89fadfe4e4`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/wandb/apis/fastapi/changes/agents/conversations/spans/post.md)

---

[API](https://skmtc.dev/wandb/apis/fastapi.md) - [All operations](https://skmtc.dev/wandb/apis/fastapi/llms.txt) - [OpenAPI document](https://skmtc.dev/wandb/apis/fastapi/revisions/f7643c49bf2e?raw)
