# RestApiClient

> **Class** in `langchain_snowflake`

📖 [View in docs](https://reference.langchain.com/python/langchain-snowflake/_connection/rest_client/RestApiClient)

Unified REST API client for all Snowflake Cortex operations.

This client provides a consistent interface for both sync and async
REST API operations while preserving existing fallback mechanisms.

## Signature

```python
RestApiClient()
```

## Methods

- [`prepare_request()`](https://reference.langchain.com/python/langchain-snowflake/_connection/rest_client/RestApiClient/prepare_request)
- [`make_sync_request()`](https://reference.langchain.com/python/langchain-snowflake/_connection/rest_client/RestApiClient/make_sync_request)
- [`make_async_request()`](https://reference.langchain.com/python/langchain-snowflake/_connection/rest_client/RestApiClient/make_async_request)
- [`make_sync_streaming_request()`](https://reference.langchain.com/python/langchain-snowflake/_connection/rest_client/RestApiClient/make_sync_streaming_request)
- [`make_async_streaming_request()`](https://reference.langchain.com/python/langchain-snowflake/_connection/rest_client/RestApiClient/make_async_streaming_request)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-snowflake/blob/1a32a1c6642b6c453e9537f35afbc7da280f8679/libs/snowflake/langchain_snowflake/_connection/rest_client.py#L20)