WhaBuzz docs
API reference

Tenants

Platform (app) keys only. Create and list the businesses you manage.

Platform (app) keys only. Create and list the businesses you manage.

Base URL https://api.whabuzz.com. Every request needs Authorization: Bearer <key> unless the operation says otherwise; see Authentication. Errors follow the two-source contract.

Operations on this page:

#List tenants created by your app key

GET/v1/tenants

Auth: API key (tenant key, or app key with X-WhaBuzz-Tenant). Operation id: listTenants.

Parameters

NameInTypeRequiredDescription
limitqueryintegerno
cursorquerystringnonext_cursor from the previous page.
external_refquerystringno

cURL:

curl -X GET "https://api.whabuzz.com/v1/tenants" \
  -H "Authorization: Bearer $WHABUZZ_KEY"
bash

Responses

200 Tenants

{
  "data": [
    {
      "id": "7d0f3c1e-2b8a-4c55-9f61-0e9b1a2c3d4e",
      "name": "Sunrise Clinic",
      "external_ref": "org_4812",
      "status": "active",
      "created_at": "2026-10-16T10:00:00Z"
    }
  ],
  "next_cursor": null
}
json

Common errors. Shape and meanings are on the Errors page.

HTTPWhaBuzz codeMeaning
403forbiddenNot allowed for this caller

#Create a tenant for one of your customers

POST/v1/tenants

Tenants created with an app key are active immediately. Connect their number with a Connect session.

Auth: API key (tenant key, or app key with X-WhaBuzz-Tenant). Operation id: createTenant.

Request body (application/json, required)

FieldTypeRequiredDescription
namestringyes
external_refstringnoYour own id for this business. Unique per app.
retention_days30 or 90 or 180 or 365noDefault 90.

Request example:

{
  "name": "Sunrise Clinic",
  "external_ref": "org_4812"
}
json

cURL:

curl -X POST "https://api.whabuzz.com/v1/tenants" \
  -H "Authorization: Bearer $WHABUZZ_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Sunrise Clinic",
  "external_ref": "org_4812"
}'
bash

Responses

201 Created

{
  "id": "7d0f3c1e-2b8a-4c55-9f61-0e9b1a2c3d4e",
  "name": "Sunrise Clinic",
  "external_ref": "org_4812",
  "status": "active",
  "retention_days": 90,
  "created_at": "2026-10-16T10:00:00Z"
}
json

Common errors. Shape and meanings are on the Errors page.

HTTPWhaBuzz codeMeaning
400invalid_requestInvalid request
403forbiddenNot allowed for this caller

#Get one of your app's tenants

GET/v1/tenants/{tenant_id}

Auth: API key (tenant key, or app key with X-WhaBuzz-Tenant). Operation id: getTenantById.

Parameters

NameInTypeRequiredDescription
tenant_idpathstring (uuid)yes

cURL:

curl -X GET "https://api.whabuzz.com/v1/tenants/$TENANT_ID" \
  -H "Authorization: Bearer $WHABUZZ_KEY"
bash

Responses

200 Tenant

{
  "id": "7d0f3c1e-2b8a-4c55-9f61-0e9b1a2c3d4e",
  "name": "Sunrise Clinic",
  "external_ref": "org_4812",
  "status": "active"
}
json

Common errors. Shape and meanings are on the Errors page.

HTTPWhaBuzz codeMeaning
404not_foundNot found

This page as Markdown: /api/tenants.md. All docs in one file: /llms-full.txt.