# Key concepts

The words these docs use, and what each one means here.

## How a message travels

1. Your system sends it with `POST /v1/messages` and the workspace's API key.
2. Airbox checks the 24-hour window, the template and consent, and hands it to WhatsApp or Instagram.
3. The channel delivers it to the customer. Each change of its status comes to your webhook as `message.status`.
4. The customer's reply comes to your webhook as a signed `message.received` event.

## Workspace

One business and everything it has: its channels, contacts, messages and API keys. As an integrator you run one workspace for each client. Its Workspace ID, on its Settings page, is what every webhook event names it by. See [Clients and workspaces](https://airbox.kz/docs/workspaces.md).

## API key

A key works in one workspace only. A live key starts with `abx_live_` and sends real messages. A test key starts with `abx_test_` and sends to the simulator. See [Making requests](https://airbox.kz/docs/api/requests.md).

## Channel

Where a message goes: `whatsapp` or `instagram`. A workspace has one WhatsApp number and one Instagram account at most. See [Channels](https://airbox.kz/docs/channels.md).

## Contact

A customer the workspace talks to. Each one has a `contact_id`, so you can tie their messages together in your system.

## Message

An incoming message is one a customer wrote. It arrives as the `message.received` event. A message of the workspace is one sent to a customer, and it moves through statuses from `queued` to `read`. See [Messages](https://airbox.kz/docs/api/messages.md).

## The 24-hour window

After a customer writes, you may answer with free text for 24 hours. Every new message from them starts the 24 hours again. Once they pass, WhatsApp takes only a template, and Instagram waits until the customer writes again.

## Template

A WhatsApp message with set wording that Meta approves before you can send it. You need one in two cases:

1. To message a customer who has never written to you.
2. To message a customer whose last message is more than 24 hours old.

A template to a number that has never written needs the customer's consent first. See [Send a template](https://airbox.kz/docs/api/send-template.md).

## Webhook

The address on your server where events arrive, signed: new messages, status changes and channel changes. One address serves all your workspaces. See [Webhooks](https://airbox.kz/docs/webhooks.md).

## Test mode

With a test key every message goes to a simulator. Nothing reaches customers or Meta, and you can write as a customer yourself. See [Test mode](https://airbox.kz/docs/test-mode.md).