Tenants
Your account, its status and retention, and how accounts create tenants for their businesses, with account keys, tenant limits and who pays.
Account = your signup. It holds your tenants, the wallet and the account keys. Tenant = one business. It holds numbers, templates, webhooks and tenant keys. The API says "tenant". Some older docs say "app" for an account.
A tenant is one business account: its numbers, keys, webhook endpoints and event log. Every signup is an account: it starts with one tenant (the one you signed up with) and can hold more, one per business you connect. Platforms using an account key create one per end customer.
#Your tenant
GET /v1/tenant returns your account, its status, plan, retention_days, and the getting-started checklist (number_connected, api_key_created, webhook_verified, test_message_sent). It works in every status, so use it as a health probe for your own credentials.
PATCH /v1/tenant changes the business name, retention_days (see Retention), billing_email, billing_phone, website and tax_id (a GSTIN or PAN; null clears it, and invoices then say "Unregistered"). From a console session only the owner can change these.
#Status
| Status | Meaning |
|---|---|
pending_verification | Signed up and email confirmed; the owner has not entered the WhatsApp code sent to their mobile yet. |
active | Email and phone verified (or created by an account key). Everything works. |
rejected | Older accounts only: refused under the review process WhaBuzz no longer runs. |
suspended | Paused by WhaBuzz (for example, unpaid invoice past grace, or abuse). Sends stop; inbound is still forwarded. |
What each status allows is in Authentication.
#Creating tenants for your customers
With an account key:
curl -X POST https://api.whabuzz.com/v1/tenants \
-H "Authorization: Bearer $WHABUZZ_ACCOUNT_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Sunrise Clinic","external_ref":"org_4812"}'See POST /v1/tenants, GET /v1/tenants and GET /v1/tenants/{tenant_id}.
Then address that business on every later call with X-WhaBuzz-Tenant: <tenant_id>, and connect its number with a hosted connect session so your customer does Meta's popup on a WhaBuzz-hosted page.
Each tenant has its own keys, webhook endpoints, event log and retention. Billing is per tenant: each tenant's connected numbers are billed on that tenant (Pricing), unless the owner pays for them (see Who pays).
You can do the same from the console: the Tenants page lists your tenants, adds one, and makes a connect link to send to the business.
#What the list shows
GET /v1/tenants and GET /v1/tenants/{tenant_id} add the account view to each tenant:
| Field | Meaning |
|---|---|
numbers[] | The tenant's connected numbers, each with connection_state. |
billing | { status, trial_ends_at } for the tenant. |
business_verification_status | Meta's business verification state of the tenant's business, or null before the first reading. Worst state across its accounts. |
wallet | { paid_by, state }: paid_by is owner or self; state is the wallet state of whoever pays. |
#Account keys
An account key (the app_key credential; that value is unchanged on the wire) belongs to the account, not to one tenant. New account keys start with wb_acct_live_ or wb_acct_test_; older wb_live_ account keys keep working. It creates tenants and connect links, and reaches every tenant of the account when you send X-WhaBuzz-Tenant: <tenant_id>. Create one in the console under Account, Keys (account owners only). The key is shown once. Revoke it from the same page.
An account key can carry scopes; an empty list means full access. Tenant keys (POST /v1/api-keys) can also take scopes and a number_id to bind the key to one number. A scoped key can only create keys inside its own scopes. If account keys are not enabled on your account, the console says so and POST answers 403 forbidden.
#Tenant limits
An account holds 1 tenant in total (its signup tenant) until its first paid wallet top-up, then 10. WhaBuzz support raises the limit on request. Over the limit, POST /v1/tenants answers 403 tenant_cap, and message says why: add funds, or ask support to raise it. details carries max_tenants, tenants and funded.
The limit is partly ours and partly Meta's. Meta allows WhaBuzz 200 new businesses per rolling 7 days across all accounts, which is one reason limits exist.
A suspended account answers 403 owner_suspended on every account-key call. Its tenants are suspended with it, and come back when WhaBuzz reinstates the account. A tenant suspended on its own stays suspended.
#Who pays
By default each tenant pays from its own wallet. When an account adds its first extra tenant, the account switches to parent pays: the account's wallet pays for every tenant under it. The account's wallet lines carry for_tenant_id, the tenant each line was charged for, so you can re-bill your customers from the ledger. wallet.paid_by on each tenant says which applies.
WhaBuzz mails only the account's console members about the account's wallet and tenants, never a tenant's own addresses. The "wallet running low" mail can be turned off per person under Settings, Notifications. Suspension and grace mails cannot.
#Your customers and Meta
- Each business completes Embedded Signup itself, under its own Meta Business Portfolio. An account never signs up on a business's behalf.
- WhaBuzz is the provider of record to Meta and is answerable for every business connected through it. So an account sells its own service, never resold WhaBuzz access.
- The Facebook dialog in Embedded Signup names WhaBuzz as the app, whatever branding the connect session carries.
- Each business verifies itself in Meta Business Manager. WhaBuzz cannot do it for them. Until a business is verified, its messaging limits stay lower;
business_verification_statustells you where it stands. - The business still gets Meta's own mails (business verification, payment method) from Meta directly. WhaBuzz does not control them.
This page as Markdown: /guides/tenants.md. All docs in one file: /llms-full.txt. Status.