{"id":1363,"date":"2026-11-04T16:15:30","date_gmt":"2026-11-04T16:15:30","guid":{"rendered":"https:\/\/vectalk.com.br\/blog\/multi-tenant-whatsapp-api-saas\/"},"modified":"2026-11-04T16:15:35","modified_gmt":"2026-11-04T16:15:35","slug":"multi-tenant-whatsapp-api-saas","status":"publish","type":"post","link":"https:\/\/vectalk.com.br\/blog\/en\/multi-tenant-whatsapp-api-saas\/","title":{"rendered":"Multi-Tenant SaaS on the WhatsApp Business API: Tokens, Webhooks and Per-Customer Isolation"},"content":{"rendered":"\n<p><em>Updated on November 4, 2026<\/em><\/p>\n\n\n\n<p>A multi-tenant SaaS on the official WhatsApp Business API works best with one messaging account (WABA) per customer, connected through Embedded Signup, and a single webhook endpoint that identifies the tenant by <code>phone_number_id<\/code> or WABA ID. Each customer gets its own token, stored encrypted on your servers, and its own send queue, so one tenant&#8217;s limits, quality and errors never spill over to the others.<\/p>\n\n\n\n<p>This guide covers the data model, webhook routing with code, token storage, and how to isolate limits, queues and costs per tenant.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The model: one WABA per customer<\/h2>\n\n\n\n<p>One question shapes the whole architecture: who owns the phone number? In SaaS, the right answer is almost always &#8220;the customer&#8221;. Each customer has its own Meta business portfolio, its own messaging account with its own templates, and its own number. Your app is granted access to that account; it doesn&#8217;t own it.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Option<\/th><th>How it works<\/th><th>When it makes sense<\/th><\/tr><\/thead><tbody><tr><td>One WABA per customer, in the customer&#8217;s portfolio<\/td><td>The customer connects via Embedded Signup; you get a token scoped to them<\/td><td>Most SaaS (CRM, support, e-commerce, scheduling)<\/td><\/tr><tr><td>Several numbers for one customer in the same WABA<\/td><td>A customer with branches or departments<\/td><td>Large customer, single brand<\/td><\/tr><tr><td>All customers&#8217; numbers in your own portfolio<\/td><td>You own everything<\/td><td>Rarely: limits and quality become one shared bucket<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Why the first option wins:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Messaging limits.<\/strong> According to the <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/messaging-limits\" target=\"_blank\" rel=\"noreferrer noopener\">messaging limits docs<\/a>, the limit is calculated per business portfolio, and all numbers in that portfolio share it. If every tenant lives in your portfolio, one customer&#8217;s campaign can burn the daily limit for everyone.<\/li>\n\n\n<li><strong>Templates and display name.<\/strong> Templates live in the messaging account. Each customer gets its own templates approved under its own display name.<\/li>\n\n\n<li><strong>Churn.<\/strong> If a customer cancels, the number and its templates stay with them. You only lose access.<\/li>\n\n\n<li><strong>Verification and policy.<\/strong> Each business is accountable for its own verification and its own policy violations.<\/li>\n\n<\/ul>\n\n\n\n<p>How many numbers a portfolio can hold, and what numbers share, is covered in <a href=\"https:\/\/vectalk.com.br\/blog\/en\/multiple-numbers-whatsapp-business-api\/\">how many numbers you can have on the API<\/a>. The new split between WhatsApp account and messaging account is explained in <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-account-messaging-account-waba\/\">WhatsApp account vs. messaging account<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Onboarding: Embedded Signup and what to store<\/h2>\n\n\n\n<p>Customers connect their WhatsApp through <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-embedded-signup\/\">Embedded Signup<\/a>, Meta&#8217;s flow that runs inside your product. When it finishes, your front end receives a <code>code<\/code>, the <code>waba_id<\/code> and the <code>phone_number_id<\/code>. On your server you:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Exchange the <code>code<\/code> for a business token with <code>GET \/oauth\/access_token<\/code> (<code>client_id<\/code>, <code>client_secret<\/code>, <code>code<\/code>). The <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/embedded-signup\/onboarding-customers-as-a-tech-provider\" target=\"_blank\" rel=\"noreferrer noopener\">onboarding docs<\/a> are explicit that these calls are server-to-server, never from the browser.<\/li>\n\n\n<li>Subscribe your app to the customer&#8217;s WABA webhooks with <code>POST \/{WABA_ID}\/subscribed_apps<\/code>.<\/li>\n\n\n<li>Register the number with <code>POST \/{PHONE_NUMBER_ID}\/register<\/code> and a 6-digit PIN (skip this with coexistence, where the number is already registered).<\/li>\n\n<\/ol>\n\n\n\n<p>The returned token is a <em>business integration system user access token<\/em>. Per the <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/access-tokens\" target=\"_blank\" rel=\"noreferrer noopener\">access tokens page<\/a>, it is scoped to that single customer and avoids future re-authentication. That is what a SaaS should store: one per tenant. Never run production on a user access token; it expires within hours.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Data model<\/h2>\n\n\n\n<p>Four tables cover the essentials. The key invariant: <code>phone_number_id<\/code> and <code>waba_id<\/code> are unique across the whole system and map to exactly one <code>tenant_id<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-sql\">create table tenants (\n  id uuid primary key default gen_random_uuid(),\n  name text not null,\n  status text not null default 'active', -- active, suspended, offboarded\n  daily_send_quota int,                   -- your own cap, on top of Meta's\n  created_at timestamptz default now()\n);\n\ncreate table wa_accounts (\n  waba_id text primary key,\n  tenant_id uuid not null references tenants(id),\n  business_id text,\n  token_ciphertext bytea not null,   -- encrypted token (envelope encryption)\n  token_key_id text not null,        -- which KMS key encrypted it\n  connected_at timestamptz default now(),\n  revoked_at timestamptz\n);\n\ncreate table wa_phone_numbers (\n  phone_number_id text primary key,\n  waba_id text not null references wa_accounts(waba_id),\n  tenant_id uuid not null references tenants(id),\n  display_phone_number text,\n  coexistence boolean default false, -- changes throughput\n  max_mps int default 80\n);\n\ncreate table wa_events (\n  id bigint generated always as identity primary key,\n  tenant_id uuid,                    -- null if the ID wasn't recognized\n  waba_id text,\n  phone_number_id text,\n  field text not null,\n  dedup_key text unique not null,\n  payload jsonb not null,\n  received_at timestamptz default now()\n);<\/code><\/pre>\n\n\n\n<p>Every business table (contacts, conversations, messages) carries <code>tenant_id<\/code>. If your database supports it, turn on row-level security filtered by <code>tenant_id<\/code>, so a query bug can&#8217;t leak one customer&#8217;s data to another.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Routing webhooks per tenant<\/h2>\n\n\n\n<p>There is one webhook per app: Meta sends events from every subscribed WABA to the same callback URL. Routing relies on two IDs in the payload:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>entry[].id<\/code>: the messaging account (WABA) ID. Present on every field.<\/li>\n\n\n<li><code>changes[].value.metadata.phone_number_id<\/code>: the number that received or sent the message. Present on the <code>messages<\/code> field, but not on template or account events.<\/li>\n\n<\/ul>\n\n\n\n<p>So the rule is: try <code>phone_number_id<\/code> first, then fall back to <code>entry.id<\/code>. The Node.js example below validates the signature, resolves the tenant, stores the event and returns 200 before doing any processing:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-js\">import express from \"express\";\nimport crypto from \"node:crypto\";\n\nconst app = express();\napp.use(express.raw({ type: \"application\/json\" })); \/\/ raw body for the signature\n\nfunction validSignature(raw, header) {\n  if (!header?.startsWith(\"sha256=\")) return false;\n  const expected = crypto.createHmac(\"sha256\", process.env.META_APP_SECRET).update(raw).digest(\"hex\");\n  const received = header.slice(7);\n  return received.length === expected.length &amp;&amp;\n    crypto.timingSafeEqual(Buffer.from(received), Buffer.from(expected));\n}\n\nasync function resolveTenant(db, wabaId, phoneNumberId) {\n  if (phoneNumberId) {\n    const n = await db.oneOrNone(\n      \"select tenant_id from wa_phone_numbers where phone_number_id = $1\", [phoneNumberId]);\n    if (n) return n.tenant_id;\n  }\n  const a = await db.oneOrNone(\n    \"select tenant_id from wa_accounts where waba_id = $1 and revoked_at is null\", [wabaId]);\n  return a?.tenant_id ?? null;\n}\n\napp.post(\"\/webhook\", async (req, res) =&gt; {\n  if (!validSignature(req.body, req.get(\"x-hub-signature-256\"))) return res.sendStatus(401);\n  const payload = JSON.parse(req.body.toString(\"utf8\"));\n\n  for (const entry of payload.entry ?? []) {\n    for (const change of entry.changes ?? []) {\n      const v = change.value ?? {};\n      const phoneNumberId = v.metadata?.phone_number_id ?? null;\n      const tenantId = await resolveTenant(req.app.locals.db, entry.id, phoneNumberId);\n      const item = v.messages?.[0]?.id ?? v.statuses?.[0]?.id ?? v.message_template_id ?? v.event ?? \"\";\n      const dedupKey = `${entry.id}:${change.field}:${item}:${v.statuses?.[0]?.status ?? \"\"}:${entry.time ?? \"\"}`;\n\n      await req.app.locals.db.none(\n        `insert into wa_events (tenant_id, waba_id, phone_number_id, field, dedup_key, payload)\n         values ($1, $2, $3, $4, $5, $6) on conflict (dedup_key) do nothing`,\n        [tenantId, entry.id, phoneNumberId, change.field, dedupKey, change]);\n    }\n  }\n  res.sendStatus(200); \/\/ workers process wa_events per tenant, outside the request\n});<\/code><\/pre>\n\n\n\n<p>Three production details:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Orphan events.<\/strong> If <code>tenant_id<\/code> comes back null, store the event anyway and raise an alert. It happens when a customer reconnects a different WABA or onboarding failed halfway.<\/li>\n\n\n<li><strong>One app secret for everyone.<\/strong> The signature uses your app&#8217;s secret, not the customer&#8217;s. See <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-webhook-signature-validation\/\">how to validate the webhook signature<\/a>.<\/li>\n\n\n<li><strong>Deduplication.<\/strong> Meta retries unacknowledged events for up to 7 days and may batch up to 1,000 updates per POST, per the <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/webhooks\/create-webhook-endpoint\" target=\"_blank\" rel=\"noreferrer noopener\">webhook endpoint docs<\/a>. The unique key on <code>wa_events<\/code> absorbs retries.<\/li>\n\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Dedicated webhook per tenant (overrides)<\/h3>\n\n\n\n<p>Enterprise customers sometimes want their number&#8217;s events delivered to separate infrastructure. Meta lets you <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/webhooks\/override\" target=\"_blank\" rel=\"noreferrer noopener\">override the callback URL<\/a> per WABA (<code>POST \/{WABA_ID}\/subscribed_apps<\/code> with <code>override_callback_uri<\/code> and <code>verify_token<\/code>) or per number (<code>POST \/{PHONE_NUMBER_ID}<\/code> with <code>webhook_configuration<\/code>). Precedence is number, then WABA, then app.<\/p>\n\n\n\n<p>The catch: overrides only apply to fields such as <code>messages<\/code>, <code>message_echoes<\/code>, <code>calls<\/code>, <code>standby<\/code> and <code>history<\/code>. Template webhooks (like <code>message_template_status_update<\/code>) and account webhooks (like <code>account_update<\/code>) always go to the app&#8217;s default callback URL. Your central endpoint stays mandatory.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Where and how to store tokens<\/h2>\n\n\n\n<p>Each tenant&#8217;s token grants full access to that customer&#8217;s messaging. Treat it like a password:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Use envelope encryption.<\/strong> A master key in a KMS (AWS KMS, Google Cloud KMS, Azure Key Vault or HashiCorp Vault) encrypts data keys; the database stores only ciphertext plus the key ID. A database dump exposes no tokens.<\/li>\n\n\n<li><strong>Decrypt only in the sending worker.<\/strong> Your front end and your SaaS&#8217;s public API never see the token.<\/li>\n\n\n<li><strong>Don&#8217;t log it.<\/strong> Mask <code>Authorization<\/code> in logs, APM and error messages.<\/li>\n\n\n<li><strong>Handle error 190.<\/strong> An invalid or revoked token returns error 190; mark the account as disconnected and ask the customer to reconnect instead of retrying. See <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-error-190-access-token-expired\/\">error 190: expired or invalid token<\/a>.<\/li>\n\n\n<li><strong>Listen for offboarding.<\/strong> The <code>account_update<\/code> field reports events like <code>PARTNER_REMOVED<\/code>, when the customer removes your app&#8217;s access. Set <code>revoked_at<\/code> and stop that tenant&#8217;s queues.<\/li>\n\n<\/ol>\n\n\n\n<p>If you also run numbers of your own (your SaaS&#8217;s support line, for instance), use a separate system user token, as described in <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-api-permanent-access-token\/\">permanent access token with a system user<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Per-tenant limits: Meta&#8217;s and yours<\/h2>\n\n\n\n<p>There are two kinds of limits, and both must be isolated per tenant.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Limit<\/th><th>Value (Meta)<\/th><th>Scope<\/th><th>What to do in your SaaS<\/th><\/tr><\/thead><tbody><tr><td>Messaging limit<\/td><td>250 unique recipients per 24 h for new portfolios; then 2,000, 10,000, 100,000 and unlimited<\/td><td>Customer&#8217;s portfolio<\/td><td>Read the current tier and block campaigns that exceed it<\/td><\/tr><tr><td>Throughput<\/td><td>Up to 80 messages per second per number; 20 mps with coexistence<\/td><td>Number<\/td><td>One rate limiter per <code>phone_number_id<\/code><\/td><\/tr><tr><td>Throughput exceeded<\/td><td>Error <code>130429<\/code><\/td><td>Number<\/td><td>Back off and retry<\/td><\/tr><tr><td>Too many messages to the same user<\/td><td>Pair rate limit error (<code>131056<\/code>)<\/td><td>Number + user pair<\/td><td>Space out messages to the same person<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Sources: <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/messaging-limits\" target=\"_blank\" rel=\"noreferrer noopener\">messaging limits<\/a> and <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/throughput\" target=\"_blank\" rel=\"noreferrer noopener\">throughput<\/a>. Handling details in <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-api-rate-limit-throughput\/\">WhatsApp API rate limits and throughput<\/a>.<\/p>\n\n\n\n<p>The classic multi-tenant failure is the <em>noisy neighbor<\/em>: one customer blasts 50,000 messages and a global queue stalls everyone else&#8217;s support replies. The fix:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>One queue (or partition) per tenant<\/strong>, with fair consumption across queues (round-robin or plan-based weights).<\/li>\n\n\n<li><strong>Priority within a tenant<\/strong>: support replies and OTPs jump ahead of campaigns.<\/li>\n\n\n<li><strong>A rate limiter per number<\/strong>, honoring 80 or 20 mps from the <code>max_mps<\/code> column.<\/li>\n\n\n<li><strong>Your own per-plan quota<\/strong> (<code>daily_send_quota<\/code>), which also protects customers from a surprise bill.<\/li>\n\n<\/ul>\n\n\n\n<p>Queue, retry and idempotency design is covered in <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-api-integration-architecture\/\">WhatsApp API integration architecture<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Billing: who pays Meta<\/h2>\n\n\n\n<p>Every delivered message is billed to the messaging account that sent it. In SaaS the question is who holds the payment method: the customer adds their own card to the account, or a partner extends a credit line and passes the cost through. The options are laid out in <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-api-payment-methods\/\">WhatsApp API payment methods<\/a>. Whatever the model, record per <code>tenant_id<\/code> what each customer sent by category. As a reference, for recipients in Brazil since October 1, 2026, Meta charges BRL 0.3217 per delivered marketing message and BRL 0.0350 for utility, authentication and service; rates differ by recipient country.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to do it with Vectalk<\/h2>\n\n\n\n<p>Vectalk is a proxy for the <a href=\"https:\/\/vectalk.com.br\/blog\/en\/official-whatsapp-api\/\">official WhatsApp API<\/a> and already ships the organization-and-instances structure a SaaS would otherwise build. Per the <a href=\"https:\/\/docs.vectalk.com.br\/concepts\/instances.md\">instances docs<\/a>, each instance is a <code>phone_number_id<\/code> with its <code>waba_id<\/code>, created through Embedded Signup (<code>POST \/api\/onboarding\/embedded-signup<\/code> with the <code>code<\/code>) or manually; the Meta access token is stored by the Hub.<\/p>\n\n\n\n<p>In practice:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>An organization token<\/strong> sends through every instance, with <code>phone_number_id<\/code> in the body. <strong>Instance tokens<\/strong> are locked to a single number, which limits the blast radius if one leaks (<a href=\"https:\/\/docs.vectalk.com.br\/authentication.md\">authentication<\/a>).<\/li>\n\n\n<li><strong>Webhooks per instance<\/strong>: you can register one or several URLs per instance, receiving Meta&#8217;s payload unchanged, so the <code>phone_number_id<\/code> routing in this article works as is.<\/li>\n\n\n<li><strong>Billing<\/strong>: Vectalk attaches its own credit line to the customer&#8217;s number and deducts each delivered message from a prepaid balance; the customer doesn&#8217;t add a card at Meta.<\/li>\n\n<\/ul>\n\n\n\n<p>The dashboard has no inbox, AI or bulk sending: that&#8217;s your SaaS. To get started, <a href=\"https:\/\/apps.vectalk.com.br\/register\">create an account<\/a> or read the <a href=\"https:\/\/docs.vectalk.com.br\/quickstart.md\">quickstart<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Do I need one Meta app per customer?<\/h3>\n\n\n\n<p>No. One app serves every tenant: each customer grants access through Embedded Signup and you store one token per customer. Webhooks from all WABAs arrive at your app&#8217;s URL.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How do I know which tenant a template event belongs to?<\/h3>\n\n\n\n<p>From <code>entry[].id<\/code>, the messaging account ID. Template and account events carry no <code>phone_number_id<\/code>, so a <code>waba_id \u2192 tenant_id<\/code> mapping is mandatory.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can I put every customer&#8217;s number in my own portfolio?<\/h3>\n\n\n\n<p>You can, but the messaging limit belongs to the portfolio and would be split among all of them. One customer&#8217;s campaign would affect the rest, and customers couldn&#8217;t take their number with them when they leave.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Does the customer&#8217;s token expire?<\/h3>\n\n\n\n<p>According to Meta, the business integration system user token from Embedded Signup doesn&#8217;t require periodic re-authentication. It stops working if the customer removes access; handle error 190 and the <code>PARTNER_REMOVED<\/code> event.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can I send one tenant&#8217;s webhooks to a different server?<\/h3>\n\n\n\n<p>Yes, with a WABA or phone number override, but only for message fields. Template and account events still go to the app&#8217;s default endpoint.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Official sources checked on November 4, 2026:<\/strong> <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/messaging-limits\" target=\"_blank\" rel=\"noreferrer noopener\">Messaging limits<\/a>, <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/throughput\" target=\"_blank\" rel=\"noreferrer noopener\">Throughput<\/a>, <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/access-tokens\" target=\"_blank\" rel=\"noreferrer noopener\">Access tokens<\/a>, <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/embedded-signup\/overview\" target=\"_blank\" rel=\"noreferrer noopener\">Embedded Signup<\/a>, <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/embedded-signup\/onboarding-customers-as-a-tech-provider\" target=\"_blank\" rel=\"noreferrer noopener\">Onboarding as a Tech Provider<\/a>, <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/webhooks\/override\" target=\"_blank\" rel=\"noreferrer noopener\">Webhook overrides<\/a>, <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/webhooks\/create-webhook-endpoint\" target=\"_blank\" rel=\"noreferrer noopener\">Create a webhook endpoint<\/a>, <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/webhooks\/reference\/account_update\" target=\"_blank\" rel=\"noreferrer noopener\">account_update<\/a>, <a href=\"https:\/\/docs.vectalk.com.br\/concepts\/instances.md\">Vectalk: instances<\/a>, <a href=\"https:\/\/docs.vectalk.com.br\/authentication.md\">Vectalk: authentication<\/a>, <a href=\"https:\/\/docs.vectalk.com.br\/concepts\/webhooks.md\">Vectalk: webhooks<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How a SaaS serves many customers on the official WhatsApp Business API: one WABA per tenant, one webhook endpoint routed by ID, encrypted tokens and per-tenant queues.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-1363","post","type-post","status-publish","format-standard","hentry","category-blog"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Multi-Tenant WhatsApp API: SaaS Architecture | Vectalk<\/title>\n<meta name=\"description\" content=\"WhatsApp API multi tenant architecture: one WABA per customer, webhook routing by phone_number_id, secure token storage and per-tenant limits.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vectalk.com.br\/blog\/en\/multi-tenant-whatsapp-api-saas\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Multi-Tenant WhatsApp API: SaaS Architecture | Vectalk\" \/>\n<meta property=\"og:description\" content=\"WhatsApp API multi tenant architecture: one WABA per customer, webhook routing by phone_number_id, secure token storage and per-tenant limits.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vectalk.com.br\/blog\/en\/multi-tenant-whatsapp-api-saas\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog Vectalk\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-04T16:15:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-04T16:15:35+00:00\" \/>\n<meta name=\"author\" content=\"wanderleyfcunha\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"wanderleyfcunha\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/multi-tenant-whatsapp-api-saas\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/multi-tenant-whatsapp-api-saas\\\/\"},\"author\":{\"name\":\"wanderleyfcunha\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#\\\/schema\\\/person\\\/ff36ecd9d8257856f227f8e5d639db2b\"},\"headline\":\"Multi-Tenant SaaS on the WhatsApp Business API: Tokens, Webhooks and Per-Customer Isolation\",\"datePublished\":\"2026-11-04T16:15:30+00:00\",\"dateModified\":\"2026-11-04T16:15:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/multi-tenant-whatsapp-api-saas\\\/\"},\"wordCount\":1654,\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/multi-tenant-whatsapp-api-saas\\\/\",\"url\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/multi-tenant-whatsapp-api-saas\\\/\",\"name\":\"Multi-Tenant WhatsApp API: SaaS Architecture | Vectalk\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#website\"},\"datePublished\":\"2026-11-04T16:15:30+00:00\",\"dateModified\":\"2026-11-04T16:15:35+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#\\\/schema\\\/person\\\/ff36ecd9d8257856f227f8e5d639db2b\"},\"description\":\"WhatsApp API multi tenant architecture: one WABA per customer, webhook routing by phone_number_id, secure token storage and per-tenant limits.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/multi-tenant-whatsapp-api-saas\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/multi-tenant-whatsapp-api-saas\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/multi-tenant-whatsapp-api-saas\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Multi-Tenant SaaS on the WhatsApp Business API: Tokens, Webhooks and Per-Customer Isolation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/\",\"name\":\"Blog Vectalk\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#\\\/schema\\\/person\\\/ff36ecd9d8257856f227f8e5d639db2b\",\"name\":\"wanderleyfcunha\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g\",\"caption\":\"wanderleyfcunha\"},\"sameAs\":[\"https:\\\/\\\/vectalk.com.br\\\/blog\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Multi-Tenant WhatsApp API: SaaS Architecture | Vectalk","description":"WhatsApp API multi tenant architecture: one WABA per customer, webhook routing by phone_number_id, secure token storage and per-tenant limits.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vectalk.com.br\/blog\/en\/multi-tenant-whatsapp-api-saas\/","og_locale":"en_US","og_type":"article","og_title":"Multi-Tenant WhatsApp API: SaaS Architecture | Vectalk","og_description":"WhatsApp API multi tenant architecture: one WABA per customer, webhook routing by phone_number_id, secure token storage and per-tenant limits.","og_url":"https:\/\/vectalk.com.br\/blog\/en\/multi-tenant-whatsapp-api-saas\/","og_site_name":"Blog Vectalk","article_published_time":"2026-11-04T16:15:30+00:00","article_modified_time":"2026-11-04T16:15:35+00:00","author":"wanderleyfcunha","twitter_card":"summary_large_image","twitter_misc":{"Written by":"wanderleyfcunha","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/vectalk.com.br\/blog\/en\/multi-tenant-whatsapp-api-saas\/#article","isPartOf":{"@id":"https:\/\/vectalk.com.br\/blog\/en\/multi-tenant-whatsapp-api-saas\/"},"author":{"name":"wanderleyfcunha","@id":"https:\/\/vectalk.com.br\/blog\/#\/schema\/person\/ff36ecd9d8257856f227f8e5d639db2b"},"headline":"Multi-Tenant SaaS on the WhatsApp Business API: Tokens, Webhooks and Per-Customer Isolation","datePublished":"2026-11-04T16:15:30+00:00","dateModified":"2026-11-04T16:15:35+00:00","mainEntityOfPage":{"@id":"https:\/\/vectalk.com.br\/blog\/en\/multi-tenant-whatsapp-api-saas\/"},"wordCount":1654,"articleSection":["Blog"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/vectalk.com.br\/blog\/en\/multi-tenant-whatsapp-api-saas\/","url":"https:\/\/vectalk.com.br\/blog\/en\/multi-tenant-whatsapp-api-saas\/","name":"Multi-Tenant WhatsApp API: SaaS Architecture | Vectalk","isPartOf":{"@id":"https:\/\/vectalk.com.br\/blog\/#website"},"datePublished":"2026-11-04T16:15:30+00:00","dateModified":"2026-11-04T16:15:35+00:00","author":{"@id":"https:\/\/vectalk.com.br\/blog\/#\/schema\/person\/ff36ecd9d8257856f227f8e5d639db2b"},"description":"WhatsApp API multi tenant architecture: one WABA per customer, webhook routing by phone_number_id, secure token storage and per-tenant limits.","breadcrumb":{"@id":"https:\/\/vectalk.com.br\/blog\/en\/multi-tenant-whatsapp-api-saas\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vectalk.com.br\/blog\/en\/multi-tenant-whatsapp-api-saas\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/vectalk.com.br\/blog\/en\/multi-tenant-whatsapp-api-saas\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vectalk.com.br\/blog\/"},{"@type":"ListItem","position":2,"name":"Multi-Tenant SaaS on the WhatsApp Business API: Tokens, Webhooks and Per-Customer Isolation"}]},{"@type":"WebSite","@id":"https:\/\/vectalk.com.br\/blog\/#website","url":"https:\/\/vectalk.com.br\/blog\/","name":"Blog Vectalk","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vectalk.com.br\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/vectalk.com.br\/blog\/#\/schema\/person\/ff36ecd9d8257856f227f8e5d639db2b","name":"wanderleyfcunha","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/21c37077f1731eb558973f27a7b647d55f72fde5200a843ac5f5345b247ea725?s=96&d=mm&r=g","caption":"wanderleyfcunha"},"sameAs":["https:\/\/vectalk.com.br\/blog"]}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/posts\/1363","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/comments?post=1363"}],"version-history":[{"count":1,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/posts\/1363\/revisions"}],"predecessor-version":[{"id":1366,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/posts\/1363\/revisions\/1366"}],"wp:attachment":[{"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/media?parent=1363"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/categories?post=1363"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/tags?post=1363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}