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

# Get WebRTC Connection By Name

> Retrieve a specific WebRTC connection by its name within a product.

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

## Returns

Returns a [WebRTC Connection](https://docs.galtea.ai/v5.14/concepts/product/webrtc-connection.md) object for the given product and name. The object exposes a `has_api_key` boolean, not the stored API key.

## Example

```python theme={"system"}
web_rtc_connection = galtea.web_rtc_connections.get_by_name(
    name="production-voice-agent-" + run_identifier,
    product_id=product_id,
)
```

## Parameters

**name** `string` *required*

Name of the WebRTC connection to retrieve.

**product\_id** `string` *required*

ID of the product the connection belongs to.

## Errors

| Error | Cause |
| - | - |
| `EntityNotFoundException` | The platform holds nothing under the id or name you passed. Import it with `from galtea import EntityNotFoundException`. Read the status from `e.status_code`. When the API answered 404 the SDK raises the subclass `EntityNotFoundHTTPError`, which also derives from `requests.HTTPError` and carries `e.response`, so code catching `requests.HTTPError` keeps working. |


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