# emailagent-sdk (Python)

Official Python SDK for EmailAgent.

## Install

```bash
pip install emailagent-sdk==0.1.0
```

## Usage

```python
from emailagent_sdk import EmailAgentClient

client = EmailAgentClient(
    api_key="<api_key>",
    base_url="https://api.emailagent.dev",
)

print(client.list_inboxes())

emails = client.list_emails(inbox_id="<inbox_uuid>")
print(emails)

client.update_email_read(
    email_id="<email_uuid>",
    is_read=True,
    idempotency_key="mark-read-001",
)
```

## Idempotency

```python
client.create_inbox(
    local_part="agent-1",
    idempotency_key="create-inbox-agent-1",
)
```
