> ## Documentation Index
> Fetch the complete documentation index at: https://docs.galtea.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Span

> Retrieve a single span by ID.

> [!WARNING]
>
> You are reading the docs of Galtea 5.13. [Read this page in the latest version](https://docs.galtea.ai/sdk/api/span/get.md).

## Returns

Returns a [Span](https://docs.galtea.ai/v5.13/concepts/product/version/session/span.md) object.

## Example

```python theme={"system"}
span = galtea.spans.get(span_id=span_id)
```

## Parameters

**span\_id** `string` *required*

The unique identifier of the span to retrieve.

## Errors

| Error | Cause |
| - | - |
| `EntityNotFoundException` | The platform holds nothing under the id or name you passed. Import it with `from galtea import EntityNotFoundException`. Read the status from `e.status_code`. When the API answered 404 the SDK raises the subclass `EntityNotFoundHTTPError`, which also derives from `requests.HTTPError` and carries `e.response`, so code catching `requests.HTTPError` keeps working. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.