> ## Documentation Index
> Fetch the complete documentation index at: https://docs.goguava.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Client

> Manage account-level resources

`guava.Client` complements [`guava.Agent`](/sdk-reference/agent) by providing functions for managing account-level resources. It also provides any functions that don't fit onto [`guava.Agent`](/sdk-reference/agent).

<Tabs>
  <Tab title="Python">
    ```python run.py theme={null}
    import guava, os

    client = guava.Client(
        api_key=os.environ["GUAVA_API_KEY"],   # or omit — reads env automatically
    )
    ```
  </Tab>

  <Tab title="TypeScript">
    ```typescript run.ts theme={null}
    import * as guava from "@guava-ai/guava-sdk";

    const client = new guava.Client({
      apiKey: process.env.GUAVA_API_KEY,  // or omit — reads env automatically
    });
    ```
  </Tab>
</Tabs>

## API

<Tabs>
  <Tab title="Python">
    | Parameter | Type | Default | Description |
    | - | - | - | - |
    | `api_key` | `str \| None` | env `GUAVA_API_KEY` | Your Guava API key. |
    | `base_url` | `str \| None` | production | Override the API endpoint (for testing). |
  </Tab>

  <Tab title="TypeScript">
    | Parameter | Type | Default | Description |
    | - | - | - | - |
    | `apiKey` | `string` | env `GUAVA_API_KEY` | Your Guava API key. |
    | `baseUrl` | `string` | production | Override the API endpoint (for testing). |
  </Tab>
</Tabs>

## Methods

<Tabs>
  <Tab title="Python">
    | Method | Description |
    | - | - |
    | `create_sip_agent()` | Generate a SIP code linked to your account for inbound SIP call handling. |
    | `create_webrtc_agent(ttl)` | Generate a WebRTC code for browser-based voice interaction, with optional TTL. |
    | `send_sms()` | Send an SMS message. See [SMS Messaging](/guides/messaging). |
    | `next_sms()` | Wait for and return the next inbound SMS reply. See [SMS Messaging](/guides/messaging). |
  </Tab>

  <Tab title="TypeScript">
    | Method | Description |
    | - | - |
    | `createSipAgent()` | Generate a SIP code linked to your account for inbound SIP call handling. |
    | `createWebrtcAgent(ttlSec)` | Generate a WebRTC code for browser-based voice interaction, with optional TTL. |
    | `sendSms()` | Send an SMS message. See [SMS Messaging](/guides/messaging). |
    | `nextSms()` | Wait for and return the next inbound SMS reply. See [SMS Messaging](/guides/messaging). |
  </Tab>
</Tabs>


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