# SyncAPIClient

> **Class** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/_openapi_client/_base_client/SyncAPIClient)

## Signature

```python
SyncAPIClient(
    self,
    *,
    version: str,
    base_url: str | URL,
    max_retries: int = DEFAULT_MAX_RETRIES,
    timeout: float | Timeout | None | NotGiven = not_given,
    http_client: httpx.Client | None = None,
    custom_headers: Mapping[str, str] | None = None,
    custom_query: Mapping[str, object] | None = None,
    _strict_response_validation: bool,
)
```

## Extends

- `BaseClient[httpx.Client, Stream[Any]]`

## Constructors

```python
__init__(
    self,
    *,
    version: str,
    base_url: str | URL,
    max_retries: int = DEFAULT_MAX_RETRIES,
    timeout: float | Timeout | None | NotGiven = not_given,
    http_client: httpx.Client | None = None,
    custom_headers: Mapping[str, str] | None = None,
    custom_query: Mapping[str, object] | None = None,
    _strict_response_validation: bool,
) -> None
```

| Name | Type |
|------|------|
| `version` | `str` |
| `base_url` | `str \| URL` |
| `max_retries` | `int` |
| `timeout` | `float \| Timeout \| None \| NotGiven` |
| `http_client` | `httpx.Client \| None` |
| `custom_headers` | `Mapping[str, str] \| None` |
| `custom_query` | `Mapping[str, object] \| None` |
| `_strict_response_validation` | `bool` |


## Methods

- [`is_closed()`](https://reference.langchain.com/python/langsmith/_openapi_client/_base_client/SyncAPIClient/is_closed)
- [`close()`](https://reference.langchain.com/python/langsmith/_openapi_client/_base_client/SyncAPIClient/close)
- [`request()`](https://reference.langchain.com/python/langsmith/_openapi_client/_base_client/SyncAPIClient/request)
- [`get()`](https://reference.langchain.com/python/langsmith/_openapi_client/_base_client/SyncAPIClient/get)
- [`post()`](https://reference.langchain.com/python/langsmith/_openapi_client/_base_client/SyncAPIClient/post)
- [`patch()`](https://reference.langchain.com/python/langsmith/_openapi_client/_base_client/SyncAPIClient/patch)
- [`put()`](https://reference.langchain.com/python/langsmith/_openapi_client/_base_client/SyncAPIClient/put)
- [`delete()`](https://reference.langchain.com/python/langsmith/_openapi_client/_base_client/SyncAPIClient/delete)
- [`get_api_list()`](https://reference.langchain.com/python/langsmith/_openapi_client/_base_client/SyncAPIClient/get_api_list)

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-sdk/blob/d6cd6082f09e7826a2d6afe444ae6119e61b82a6/python/langsmith/_openapi_client/_base_client.py#L845)