# Tenants

> The account Whitelabel WhatsApp Cloud API bills. One integrator is one tenant.

A tenant has:

- API keys that act on every customer under it
- one webhook URL and one webhook secret
- one Whitelabel WhatsApp Cloud API plan (the dashboard subscription, not a Cloud API price)

Whitelabel WhatsApp Cloud API does not create a tenant per business. Businesses are [Customers](/whatsapp/concepts/customers.md).

Sign up in the dashboard. That provisions this tenant for the workspace. Create the key your backend uses at **Dashboard → WhatsApp → API keys**. The partner preset includes `conversations:read`. See [Authentication](/whatsapp/guides/authentication.md).

The created tenant’s `id` is new. Keys you create next, or `apiKeys` you include on this create, are stored on that new id.

Optional `apiKeys` on the create body (`name`, optional `scopes`, optional `expiresAt`, at most 10) returns each raw key once:

```json
{
  "data": { "id": "ck_new_tenant", "name": "Petycard" },
  "apiKeys": [
    { "data": { "id": "ck_key", "tenantId": "ck_new_tenant", "keyPrefix": "***…", "scopes": ["messages:send"] }, "rawKey": "<secret>" }
  ]
}
```

Omit `apiKeys` and the response stays `{ data }` only

The response of the separate key route is `201`. `rawKey` is a sibling of `data`, returned once:

```json
{ "data": { "id": "ck_key", "keyPrefix": "***…", "scopes": ["messages:send"] }, "rawKey": "<secret>" }
```

`keyPrefix` is the first 12 characters of the raw key. The raw key starts with `***`. Later reads return `keyPrefix` and `scopes`, not the secret. The stored value is an HMAC-SHA256 of the raw key. A revoked or expired key returns `401` `UNAUTHORIZED`.

On `POST /api/v1/api-keys`, omitting `scopes` copies the caller’s scopes instead.

A tenant whose `status` is not `ACTIVE` gets `403` `FORBIDDEN`. The message is `Tenant is pending` or `Tenant is suspended`.

Tenant-scoped key lifecycle is `GET` and `POST /api/v1/api-keys` and `DELETE /api/v1/api-keys/:id`. See [Authentication](/whatsapp/guides/authentication.md).

Use **Dashboard → WhatsApp → API keys** for this bearer token. Settings → API keys is a different list.

## What the tenant pays

Whitelabel WhatsApp Cloud API’s subscription is the tenant’s plan. It is not created by this API, and this API does not enforce a phone-number cap or a monthly message cap against it.

WhatsApp conversation fees, in the default `META_DIRECT` mode, are Meta’s invoice to each business’s WABA. See [Billing and usage](/whatsapp/guides/billing-and-usage.md).
