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

# Phone Connection Service

> Phone Connection Service API methods in the Galtea SDK

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

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

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

## Quick Example

First, initialize the Galtea SDK:

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

Create a phone connection:

```python theme={"system"}
phone_connection = galtea.phone_connections.create(
    product_id=product_id,
    name="production-voice-agent-" + run_identifier,
    phone_number="+14155552671",
    agent_speaks_first=False,
)
```

List phone connections for a product:

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

Get a phone connection by ID:

```python theme={"system"}
phone_connection = galtea.phone_connections.get(phone_connection_id=phone_connection_id)
```

## Service Methods

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

## Related

> [card] [Phone Connection](https://docs.galtea.ai/v5.16/concepts/product/phone-connection.md)
>
> A reusable telephony connection for dialing your AI agent's phone number during voice evaluation


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