---
title: "Changes to List spans in a trace"
method: GET
path: "/v2/agent_analytics/traces/{trace_id}/spans"
---

# Changes to List spans in a trace

`GET /v2/agent_analytics/traces/{trace_id}/spans`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 1 of 13 revisions.

- **2026-09-14** `c94fd099d78b` — 1 info

## Changes

- **2026-09-14** `c94fd099d78b` — 1 info
  - added the optional property `spans/items/oneOf[#/components/schemas/ChatTraceSpan]/allOf[subschema #2]/attributes/time_to_first_token_ms` to the response with the `200` status

---

[Operation](https://skmtc.dev/vectara/apis/vectara-rest-api-v2/docs/v2/agent_analytics/traces/:trace_id/spans/get.md) · [API](https://skmtc.dev/vectara/apis/vectara-rest-api-v2.md) · [Page](https://skmtc.dev/vectara/apis/vectara-rest-api-v2/changes/v2/agent_analytics/traces/:trace_id/spans/get)
