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

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

<Info>
  Remember that we will be using the `galtea` object. More information [here](/sdk/api/galtea).
</Info>

## 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](/sdk/api/webrtc-connection/create)
* [List WebRTC Connections](/sdk/api/webrtc-connection/list)
* [Get WebRTC Connection](/sdk/api/webrtc-connection/get)
* [Get WebRTC Connection By Name](/sdk/api/webrtc-connection/get-by-name)
* [Update WebRTC Connection](/sdk/api/webrtc-connection/update)
* [Delete WebRTC Connection](/sdk/api/webrtc-connection/delete)

## Related

<Card title="WebRTC Connection" icon="tower-broadcast" iconType="solid" href="/concepts/product/webrtc-connection">
  A reusable connection that reaches your AI voice agent over WebRTC during voice evaluation
</Card>
