# Clients and workspaces

Airbox is built for teams that connect messaging for their own clients. You keep one account, and each client gets a workspace of its own.

## How it fits together

- **Your account** is where you sign in, pay and set the webhook address.
- **A workspace** holds one client's channels, contacts and messages. Only you sign in to it. Your client never does.
- **An API key** belongs to one workspace and works only there.
- **One webhook address** receives the events of every workspace you run. Each event names its workspace.

## Adding a client

1. Open **Workspaces** and create a **New workspace** named after the client.
2. Under the workspace's **API keys**, create its key. Copy its **Workspace ID** from its **Settings**.
3. Send the client a link to connect their own number. See [Connecting a client](https://airbox.kz/docs/connecting.md).

## Keys and events in your system

Keep each client's key and Workspace ID with the client's record in your system, the key encrypted and never in code. To send for a client, use that client's key.

Every event carries `workspace`: its `id`, which is the Workspace ID and never changes, and its current `name`. Find the client by `workspace.id`.

```json
{
    "type": "message.received",
    "timestamp": "2026-10-09T09:30:00+00:00",
    "workspace": {
        "id": "0199c5e2-0d4b-7e21-a3f6-8c2b1e7d9a40",
        "name": "Smile Clinic"
    },
    "data": {
        "id": "0199c5e2-6a29-7b40-8e0d-2f1c3a4b5d6e",
        "contact_id": "0199c5e2-1f0a-7a42-8d1e-5b7c9a2e4f10",
        "from": "+77011234567",
        "name": "Asel",
        "channel": "whatsapp",
        "type": "text",
        "text": {
            "body": "Hello! When will my order be ready?"
        },
        "received_at": "2026-10-09T09:30:00+00:00",
        "free_text_until": "2026-10-10T09:30:00+00:00"
    }
}
```

## Billing

Each connected WhatsApp number or Instagram account is billed on its own, monthly from the day it connects. A workspace with nothing connected costs nothing. A connection left unpaid stops sending with `payment_required`, while incoming messages still arrive. See [Pricing](https://airbox.kz/en/pricing).