> ## 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.

# WebRTC Connection Service

> WebRTC Connection Service API methods in the Galtea SDK

> [!WARNING]
>
> You are reading the docs of Galtea 5.12. [Read this page in the latest version](https://docs.galtea.ai/sdk/api/webrtc-connection/service.md).

The WebRTC Connection Service in the Galtea SDK allows you to manage [WebRTC connections](https://docs.galtea.ai/v5.12/concepts/product/webrtc-connection.md) for your products.
This Service is exposed by the `galtea.web_rtc_connections` object.

> [!NOTE]
>
> Remember that we will be using the `galtea` object. More information [here](https://docs.galtea.ai/v5.12/sdk/api/galtea.md).

## Quick Example

First, initialize the Galtea SDK:

```python theme={"system"}
galtea = Galtea(api_key="YOUR_API_KEY")
```

Create a WebRTC connection:

```python theme={"system"}
web_rtc_connection = galtea.web_rtc_connections.create(
    product_id=product_id,
    name="production-voice-agent-" + run_identifier,
    api_key="YOUR_PIPECAT_CLOUD_API_KEY",
    agent_name="my-pipecat-agent",
    agent_speaks_first=False,
)
```

List WebRTC connections for a product:

```python theme={"system"}
web_rtc_connections = galtea.web_rtc_connections.list(
    product_ids=[product_id],
    sort_by_created_at="desc",
    limit=10,
)
```

Get a WebRTC connection by ID:

```python theme={"system"}
web_rtc_connection = galtea.web_rtc_connections.get(web_rtc_connection_id=web_rtc_connection_id)
```

## Service Methods

* [Create WebRTC Connection](https://docs.galtea.ai/v5.12/sdk/api/webrtc-connection/create.md)
* [List WebRTC Connections](https://docs.galtea.ai/v5.12/sdk/api/webrtc-connection/list.md)
* [Get WebRTC Connection](https://docs.galtea.ai/v5.12/sdk/api/webrtc-connection/get.md)
* [Get WebRTC Connection By Name](https://docs.galtea.ai/v5.12/sdk/api/webrtc-connection/get-by-name.md)
* [Update WebRTC Connection](https://docs.galtea.ai/v5.12/sdk/api/webrtc-connection/update.md)
* [Delete WebRTC Connection](https://docs.galtea.ai/v5.12/sdk/api/webrtc-connection/delete.md)

## Related

> [card] [WebRTC Connection](https://docs.galtea.ai/v5.12/concepts/product/webrtc-connection.md)
>
> A reusable connection that reaches your AI voice agent over WebRTC during voice evaluation


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