# LangSmithApiError

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/config/LangSmithApiError)

The LangSmith SDK call raised — auth, 404, network, etc.

Wraps the underlying SDK exception in `__cause__`.

## Signature

```python
LangSmithApiError()
```

## Extends

- `LangSmithLookupError`

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/a98f0dfa8d534d8a1885b524632400e52db22ac6/libs/code/deepagents_code/config.py#L2411)