> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.houseofapps.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.houseofapps.ai/_mcp/server.

# Python SDK

> Official Python client for the House of Apps integrations API

The House of Apps REST API works in any language that can send HTTP. For Python, use the official `houseofapps` client (Python 3.10+).

## Install

```bash
pip install houseofapps
```

## Quick start

```python
from houseofapps import HouseOfApps

with HouseOfApps(
    license_key="YOUR_LICENSE_KEY",
    app_secret="YOUR_APP_SECRET",
    base_url="https://api-dev.houseofapps.ai",
) as client:
    created = client.leads.create(
        {
            "lead": {"name": "Acme renewal"},
            "contact": {
                "email": "ada@acme.com",
                "first_name": "Ada",
                "last_name": "Lovelace",
            },
        }
    )
    print(created)

    leads = client.leads.list(page=1, page_size=20)
    print(leads.total)
```

`license_key` and `app_secret` are sent as the `licenseKey` and `appSecret` headers. See [Authentication](/api-reference/authentication).

## What it covers

| Client             | Resources                                            |
| ------------------ | ---------------------------------------------------- |
| `client.leads`     | List, get, create, update, delete, search, activity  |
| `client.contacts`  | Contacts under `/v1/integrations/clients/contacts`   |
| `client.companies` | Companies under `/v1/integrations/clients/companies` |
| `client.tasks`     | Work / content-planner tasks                         |

`client.leads` does not wrap lead products or lead-linked task helpers — call those paths with HTTP (see **Other** in the API Reference) or extend the client.

For the full surface, use the [API Reference](/api-reference/overview).