---
title: "Get Agent Trace Span Error"
method: GET
path: "/v1/traces/{trace_id}/spans/{span_id}/error"
tags: ["agent tracing"]
---

# Get Agent Trace Span Error

`GET /v1/traces/{trace_id}/spans/{span_id}/error`

## Request

- Base URL: `https://api.sea-lion.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sea-lion.ai/v1/traces/{trace_id}/spans/{span_id}/error`
- Auth: API key in header `x-litellm-api-key`

## Path parameters

- `trace_id` string, required
- `span_id` string, required

## Query parameters

- `trace_ref` string
- `cursor` string, nullable

## Response `200`

Successful Response

- SpanErrorPage
  - `span_id` string, required
  - `message` string, required
  - `total_chars` integer, required
  - `next_cursor` string, nullable, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-21** `f2fb14eab3f5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sea-lion/apis/litellm-api/changes/v1/traces/:trace_id/spans/:span_id/error/get.md)

---

[API](https://skmtc.dev/sea-lion/apis/litellm-api.md) · [All operations](https://skmtc.dev/sea-lion/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sea-lion/apis/litellm-api/revisions/1ba9123c189a?raw)
