> ## Documentation Index
> Fetch the complete documentation index at: https://arizeai-433a7140.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 12.09.2025: Span Notes API

> Available in Phoenix 12.21+

## Span Notes API

New dedicated endpoints for span notes enable open coding and seamless annotation integrations. Add notes to spans programmatically using the Phoenix client in both Python and TypeScript.

**Python Client:**

```python theme={null}
from phoenix.client import Client

client = Client()
client.spans.add_span_note(
    span_id="your-span-id",
    note="This span shows unexpected latency"
)
```

**TypeScript Client:**

```typescript theme={null}
import { addSpanNote } from "@arizeai/phoenix-client/spans";

await addSpanNote({
  spanNote: {
    spanId: "your-span-id",
    note: "This span shows unexpected latency"
  }
});
```

**Use Cases:**

* Add contextual notes during debugging sessions
* Annotate spans with human feedback
* Build custom annotation pipelines and integrations
* Document issues or observations for team collaboration

#### API Reference:

<CardGroup cols={2}>
  <Card title="Python Client" icon="python" href="https://arize-phoenix.readthedocs.io/projects/client/api/spans.html#client.resources.spans.Spans.add_span_note" horizontal>
    spans.add\_span\_note()
  </Card>

  <Card title="TypeScript Client" icon="js" href="https://arize-ai.github.io/phoenix/functions/_arizeai_phoenix-client.spans_addSpanNote.addSpanNote.html" horizontal>
    addSpanNote()
  </Card>
</CardGroup>
