Customers

A business inside the tenant. Not a login and not a Stripe customer.

Store your id in externalCustomerId. Sending does not read metadata.

http
POST /api/v1/customers
Authorization: Bearer $VITRAL_WHATSAPP_API_KEY
Content-Type: application/json

{
  "name": "Clínica Norte",
  "externalCustomerId": "clinic_1842",
  "metadata": { "city": "Monterrey" }
}
Field Rule
name Required. 1–255 characters.
externalCustomerId Optional. Max 255. Unique per tenant. Your id, not a Whitelabel WhatsApp Cloud API billing id.
metadata Optional JSON object.

201 returns the stored row (id, tenantId, timestamps, and the fields you sent).

Call Scope Result
GET /api/v1/customers?search=&page=1&limit=50 customers:read data plus meta (page, limit, total, totalPages). limit default 50, max 100.
GET /api/v1/customers/:id customers:read One row. 404 if it is not on this tenant.
PATCH /api/v1/customers/:id customers:write Same fields, all optional. externalCustomerId and metadata accept null.
DELETE /api/v1/customers/:id customers:write 204. Phone numbers stay. customerId becomes null.

A duplicate externalCustomerId is 409 CONFLICT.

The next step is a setup link for that customer.

View as Markdown llms.txt