{"id":1711,"date":"2026-11-10T19:21:42","date_gmt":"2026-11-10T19:21:42","guid":{"rendered":"https:\/\/vectalk.com.br\/blog\/lovable-whatsapp-business-api\/"},"modified":"2026-11-10T19:21:46","modified_gmt":"2026-11-10T19:21:46","slug":"lovable-whatsapp-business-api","status":"publish","type":"post","link":"https:\/\/vectalk.com.br\/blog\/en\/lovable-whatsapp-business-api\/","title":{"rendered":"How to connect a Lovable app to the official WhatsApp Business API"},"content":{"rendered":"\n<p><em>Updated on November 10, 2026<\/em><\/p>\n\n\n\n<p>There are two ways to connect a Lovable app to the official WhatsApp Business API. The first is Lovable&#8217;s own <strong>WhatsApp Business<\/strong> connector, which connects your number through Meta&#8217;s guided signup and bills messages directly to your Meta account. The second is integrating a provider&#8217;s API like any external API: the call goes out from a backend function (Edge Function or server function), the token is stored in <strong>Secrets<\/strong>, and the webhook is another, public function. In both cases, the token never reaches the browser.<\/p>\n\n\n\n<p>This guide explains when to use each path, the prompts to ask Lovable for the integration, the code it should generate (for you to review) and the safeguards that prevent leaked tokens and a number abused for spam.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Path 1: Lovable&#8217;s WhatsApp Business connector<\/h2>\n\n\n\n<p>According to the <a href=\"https:\/\/docs.lovable.dev\/integrations\/whatsapp\" target=\"_blank\" rel=\"noreferrer noopener\">WhatsApp Business connector page<\/a>, Lovable offers an &#8220;app + chat&#8221; connector that lets you receive messages, send replies and templates, track statuses (sent, delivered, read, failed) and list, create and delete templates. The connection is made through Meta&#8217;s Embedded Signup, without creating a developer app or copying a key. Points the documentation highlights:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Meta bills usage directly, outside Lovable credits, and Meta&#8217;s pricing, limits and <a href=\"https:\/\/business.whatsapp.com\/policy\" target=\"_blank\" rel=\"noreferrer noopener\">Business Messaging Policy<\/a> apply.<\/li>\n\n\n<li>Each connection represents one account and one number; each project uses a single WhatsApp Business connection.<\/li>\n\n\n<li>Only one project receives messages and statuses at a time, and it must be a newer app, created on or after May 13, 2026 on TanStack Start. Older React + Vite projects can&#8217;t receive messages through the connector.<\/li>\n\n\n<li>The connector doesn&#8217;t edit existing templates: to change one, you create a new one.<\/li>\n\n\n<li>If the number shares conversation routing with another provider, incoming messages may go to that provider; the documentation explains how to adjust this in Meta Business Suite.<\/li>\n\n<\/ul>\n\n\n\n<p>If your app is new, the number isn&#8217;t on any provider yet and you want to pay Meta directly with your account&#8217;s payment method, the connector is the shortest path.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Path 2: integrating a provider&#8217;s API<\/h2>\n\n\n\n<p>An API integration makes sense when the number is already with a provider (and you don&#8217;t want to change routing), when the app is React + Vite, when the same number serves other systems besides Lovable, or when you prefer the provider&#8217;s billing model. <a href=\"https:\/\/docs.lovable.dev\/integrations\/any-api\" target=\"_blank\" rel=\"noreferrer noopener\">Lovable&#8217;s API integration docs<\/a> describe the approach: in newer TanStack Start apps, Lovable writes a server function; in React + Vite apps, an Edge Function in the built-in backend. The key lives in the project&#8217;s secrets and is read only by server code.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Piece<\/th><th>Where it runs<\/th><th>What it does<\/th><\/tr><\/thead><tbody><tr><td>App screen (React)<\/td><td>Browser<\/td><td>Collects data and calls the function; never sees the token<\/td><\/tr><tr><td>Send function<\/td><td>Backend (Edge Function or server function)<\/td><td>Checks the caller, builds the JSON and calls the API<\/td><\/tr><tr><td>Webhook function<\/td><td>Backend, public<\/td><td>Receives events, validates their origin and writes to the database<\/td><\/tr><tr><td>Database (Postgres)<\/td><td>Built-in backend or your own Supabase<\/td><td>Stores messages, statuses and who already received what<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>A variation is the <strong>custom connector<\/strong>: according to the <a href=\"https:\/\/docs.lovable.dev\/integrations\/create-connector\" target=\"_blank\" rel=\"noreferrer noopener\">create a connector page<\/a>, a workspace admin can register any REST API with an <code>https:\/\/<\/code> base URL and Bearer token authentication, and each person enters their own credential when connecting. The examples below use an Edge Function, which gives you full control of the code and works in both project types.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why the token can&#8217;t live in the front end<\/h2>\n\n\n\n<p>Everything that goes into front-end code ends up in the visitor&#8217;s browser. A WhatsApp API token there lets anyone send messages on behalf of your number, burn your balance and tank the account&#8217;s quality.<\/p>\n\n\n\n<p>Lovable&#8217;s <a href=\"https:\/\/docs.lovable.dev\/features\/secrets\" target=\"_blank\" rel=\"noreferrer noopener\">Secrets page<\/a> says secrets are encrypted, injected automatically into Edge Functions and never reach the browser. Variables prefixed with <code>VITE_<\/code>, on the other hand, are build-time values embedded in the client bundle: they&#8217;re for public keys, never for the WhatsApp token.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: store the token in Secrets<\/h2>\n\n\n\n<p>Add the values under <strong>More \u2192 Settings \u2192 Secrets \u2192 Add secret<\/strong>, as the documentation indicates. Don&#8217;t paste the token in the chat. Suggested names:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>WA_SEND_URL<\/code>: the provider&#8217;s send endpoint.<\/li>\n\n\n<li><code>WA_TOKEN<\/code>: the access token.<\/li>\n\n\n<li><code>WA_WEBHOOK_KEY<\/code>: a secret you make up to protect the webhook.<\/li>\n\n<\/ul>\n\n\n\n<p>If the project uses your own Supabase, the <a href=\"https:\/\/docs.lovable.dev\/integrations\/supabase\" target=\"_blank\" rel=\"noreferrer noopener\">Supabase integration page<\/a> warns that Lovable projects sharing the same Supabase project overwrite each other&#8217;s secrets. Use one Supabase project per app.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: ask Lovable for the send function<\/h2>\n\n\n\n<p>A precise prompt, with endpoint, authentication and a security rule, gets better results than &#8220;integrate WhatsApp&#8221;:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-text\">Create an edge function called send-whatsapp. It must:\n1. Require a logged-in user: read the JWT from the Authorization header and reject with 401 if there is no user.\n2. Receive { orderId } in the body and look up the customer's phone in the orders table.\n3. Send the \"order_confirmed\" template (language en_US) with orderId as a body variable,\n   via POST to Deno.env.get(\"WA_SEND_URL\"), header Authorization: Bearer Deno.env.get(\"WA_TOKEN\").\n4. Store the returned wamid in the whatsapp_outbound table.\nDo not put any token in the front-end code.<\/code><\/pre>\n\n\n\n<p>The generated code should look like this. Review it before publishing:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-ts\">\/\/ supabase\/functions\/send-whatsapp\/index.ts\nimport { createClient } from \"npm:@supabase\/supabase-js@2\";\n\nconst supabase = createClient(\n  Deno.env.get(\"SUPABASE_URL\")!,\n  Deno.env.get(\"SUPABASE_SERVICE_ROLE_KEY\")!,\n);\n\nDeno.serve(async (req) =&gt; {\n  const jwt = (req.headers.get(\"Authorization\") ?? \"\").replace(\"Bearer \", \"\");\n  const { data: { user } } = await supabase.auth.getUser(jwt);\n  if (!user) return new Response(\"unauthorized\", { status: 401 });\n\n  const { orderId } = await req.json();\n  const { data: order } = await supabase\n    .from(\"orders\").select(\"phone\").eq(\"id\", orderId).eq(\"user_id\", user.id).single();\n  if (!order) return new Response(\"not found\", { status: 404 });\n\n  const res = await fetch(Deno.env.get(\"WA_SEND_URL\")!, {\n    method: \"POST\",\n    headers: {\n      Authorization: `Bearer ${Deno.env.get(\"WA_TOKEN\")}`,\n      \"Content-Type\": \"application\/json\",\n    },\n    body: JSON.stringify({\n      messaging_product: \"whatsapp\",\n      to: order.phone,\n      type: \"template\",\n      template: {\n        name: \"order_confirmed\",\n        language: { code: \"en_US\" },\n        components: [{ type: \"body\", parameters: [{ type: \"text\", text: String(orderId) }] }],\n      },\n    }),\n  });\n\n  const data = await res.json();\n  if (!res.ok) return Response.json({ error: data?.error?.message }, { status: 502 });\n\n  await supabase.from(\"whatsapp_outbound\").insert({\n    wamid: data.messages[0].id, to: order.phone, user_id: user.id, status: \"accepted\",\n  });\n  return Response.json({ wamid: data.messages[0].id });\n});<\/code><\/pre>\n\n\n\n<p>In the front end, the call uses the Supabase client, which sends the user session automatically:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-ts\">const { data, error } = await supabase.functions.invoke(\"send-whatsapp\", {\n  body: { orderId: \"12345\" },\n});<\/code><\/pre>\n\n\n\n<p>The body follows the format in <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/messages\/send-messages\" target=\"_blank\" rel=\"noreferrer noopener\">Meta&#8217;s send messages documentation<\/a>. Store phone numbers as digits only, with the country code. For header media and buttons, see <a href=\"https:\/\/vectalk.com.br\/blog\/en\/send-whatsapp-template-message-api\/\">how to send a template through the API<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: lock down what the function accepts<\/h2>\n\n\n\n<p><a href=\"https:\/\/docs.lovable.dev\/features\/edge-functions\" target=\"_blank\" rel=\"noreferrer noopener\">Lovable&#8217;s Edge Functions page<\/a> points out that anyone who knows a function&#8217;s address can send requests to it, and recommends that every function check who is calling. For WhatsApp, go beyond login:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Template fixed on the server.<\/strong> The front end sends only data (<code>orderId<\/code>), never the template name or free text.<\/li>\n\n\n<li><strong>Recipient from the database.<\/strong> As in the example, the phone comes from the user&#8217;s own order, not from the request body.<\/li>\n\n\n<li><strong>Per-user limit.<\/strong> A simple count of sends per hour prevents abuse from a compromised account.<\/li>\n\n\n<li><strong>Consent.<\/strong> Only message people who asked to receive messages, as Meta&#8217;s policy requires.<\/li>\n\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: receive messages with a webhook function<\/h2>\n\n\n\n<p>The webhook is another function, public, because the caller is the provider (or Meta), not a logged-in user. The full code, with <code>hub.challenge<\/code> verification, signature validation and table writes, is in <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-webhook-supabase\/\">WhatsApp webhook with Supabase<\/a>. It applies to Lovable because the built-in backend uses the same database, auth and Edge Functions foundation, according to the Supabase integration page.<\/p>\n\n\n\n<p>A prompt for Lovable:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-text\">Create a public edge function called whatsapp-webhook, without requiring login.\n- Reject with 401 if the URL parameter key is different from Deno.env.get(\"WA_WEBHOOK_KEY\").\n- POST: read the body with req.text() and only then JSON.parse it.\n- Store messages[] in whatsapp_inbound (unique wamid) and update statuses[] in whatsapp_outbound.\n- Respond 200 quickly.<\/code><\/pre>\n\n\n\n<p>Redeliveries happen: Meta retries deliveries that didn&#8217;t get a <code>200<\/code> for up to 7 days, and they may arrive duplicated, according to the <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/webhooks\/overview\" target=\"_blank\" rel=\"noreferrer noopener\">webhooks overview<\/a>. That&#8217;s why <code>wamid<\/code> needs a unique index. If messages don&#8217;t show up, open the function&#8217;s <strong>View logs<\/strong> and follow the <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-webhook-not-working\/\">webhook not working checklist<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common mistakes<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Symptom<\/th><th>Likely cause<\/th><th>Fix<\/th><\/tr><\/thead><tbody><tr><td>Token shows up in the front-end code<\/td><td>Request made without specifying a backend<\/td><td>Ask to move the call into a function and revoke the old token<\/td><\/tr><tr><td>401 on every call to the send function<\/td><td>Front end calling with <code>fetch<\/code> without the session<\/td><td>Use <code>supabase.functions.invoke<\/code>, which sends the JWT<\/td><\/tr><tr><td>Webhook returns 401 to the provider<\/td><td>Function requiring login<\/td><td>Make the function public and validate the secret or signature<\/td><\/tr><tr><td>Incoming messages don&#8217;t reach the app<\/td><td>Conversation routing pointing elsewhere<\/td><td>Check where the number delivers messages (connector or provider)<\/td><\/tr><tr><td>Message &#8220;sent&#8221; but never arrives<\/td><td>Outside the 24-hour window without a template<\/td><td>Use an approved template; see the <a href=\"https:\/\/vectalk.com.br\/blog\/en\/whatsapp-24-hour-customer-service-window\/\">24-hour window<\/a><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">How to do this with Vectalk<\/h2>\n\n\n\n<p>Vectalk is a proxy for Meta&#8217;s official Cloud API and fits path 2: the code above doesn&#8217;t change, only the values in Secrets. Use <code>WA_SEND_URL=https:\/\/apis.vectalk.com.br\/api\/messages<\/code> and, in <code>WA_TOKEN<\/code>, a token created under <strong>Settings (Configura\u00e7\u00f5es) \u2192 API Tokens<\/strong> in the dashboard. According to the <a href=\"https:\/\/docs.vectalk.com.br\/authentication\">authentication page<\/a>, an instance token resolves the <code>phone_number_id<\/code> on its own; an organization token (the global token) serves every instance and requires <code>phone_number_id<\/code> in the body. The token is shown only once at creation, so paste it straight into Secrets.<\/p>\n\n\n\n<p>For the webhook, register the function URL with <code>POST https:\/\/apis.vectalk.com.br\/api\/webhooks<\/code> (<code>instance_id<\/code>, <code>url<\/code>, <code>name<\/code>), with <code>?key=<\/code> already appended. The Hub forwards the same payload Meta sends and expects <code>200<\/code> within 20 seconds, according to the <a href=\"https:\/\/docs.vectalk.com.br\/concepts\/webhooks\">webhooks documentation<\/a>; it doesn&#8217;t describe a signature header on the forwarded request, hence the secret in the URL. Confirm the details through the <a href=\"https:\/\/vectalk.com.br\/contato.html\">contact page<\/a>.<\/p>\n\n\n\n<p>For billing, you pay the plan&#8217;s monthly fee and load a prepaid balance; Vectalk puts its own credit line on your number and each delivered message is deducted from the balance, with no card registered at Meta. And to be clear: Vectalk has no support inbox, AI or bulk messaging in its dashboard. You build those screens in your own Lovable app. To get started, <a href=\"https:\/\/apps.vectalk.com.br\/register\">create your account<\/a>. If you prefer visual workflows, see <a href=\"https:\/\/vectalk.com.br\/blog\/en\/bubble-whatsapp-business-api\/\">WhatsApp API in Bubble<\/a>; for the big picture, the <a href=\"https:\/\/vectalk.com.br\/blog\/en\/official-whatsapp-api\/\">official WhatsApp API<\/a> guide.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Does Lovable have a native WhatsApp integration?<\/h3>\n\n\n\n<p>Yes. The WhatsApp Business connector connects your number through Meta&#8217;s guided signup, and Meta bills usage directly to your account. To receive messages, the project must be a TanStack Start app created on or after May 13, 2026.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can I use the connector and a provider on the same number?<\/h3>\n\n\n\n<p>A number&#8217;s incoming messages go to a single destination, set by Meta&#8217;s conversation routing. The connector documentation describes exactly the case where another provider keeps the incoming messages. Choose one path per number.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can I use a <code>VITE_<\/code> variable for the token?<\/h3>\n\n\n\n<p>No. <code>VITE_<\/code> variables are embedded in the browser bundle at build time. They&#8217;re for public keys, never for the WhatsApp token.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can I use an unofficial (QR code) API in Lovable?<\/h3>\n\n\n\n<p>Technically any HTTP API can be called, but QR code connections go against WhatsApp&#8217;s terms and can get the number banned. The official API is the path Meta authorizes.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How do I message a customer who has never contacted me?<\/h3>\n\n\n\n<p>Only with an approved template and the contact&#8217;s consent (opt-in). Free-form messages are only allowed inside the 24-hour window opened by a customer message.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Official sources consulted on November 10, 2026:<\/strong> <a href=\"https:\/\/docs.lovable.dev\/integrations\/whatsapp\" target=\"_blank\" rel=\"noreferrer noopener\">Lovable: WhatsApp Business connector<\/a>, <a href=\"https:\/\/docs.lovable.dev\/integrations\/any-api\" target=\"_blank\" rel=\"noreferrer noopener\">Lovable: Integrate any API<\/a>, <a href=\"https:\/\/docs.lovable.dev\/integrations\/create-connector\" target=\"_blank\" rel=\"noreferrer noopener\">Lovable: create a custom connector<\/a>, <a href=\"https:\/\/docs.lovable.dev\/features\/secrets\" target=\"_blank\" rel=\"noreferrer noopener\">Lovable: Secrets<\/a>, <a href=\"https:\/\/docs.lovable.dev\/features\/edge-functions\" target=\"_blank\" rel=\"noreferrer noopener\">Lovable: Edge functions<\/a>, <a href=\"https:\/\/docs.lovable.dev\/integrations\/supabase\" target=\"_blank\" rel=\"noreferrer noopener\">Lovable: Connect to Supabase<\/a>, <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/messages\/send-messages\" target=\"_blank\" rel=\"noreferrer noopener\">Meta: send messages<\/a>, <a href=\"https:\/\/developers.facebook.com\/documentation\/business-messaging\/whatsapp\/webhooks\/overview\" target=\"_blank\" rel=\"noreferrer noopener\">Meta: webhooks overview<\/a>, <a href=\"https:\/\/business.whatsapp.com\/policy\" target=\"_blank\" rel=\"noreferrer noopener\">WhatsApp: Business Messaging Policy<\/a>, <a href=\"https:\/\/docs.vectalk.com.br\/authentication\">Vectalk: authentication<\/a>, <a href=\"https:\/\/docs.vectalk.com.br\/concepts\/webhooks\">Vectalk: webhooks<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The two ways to connect a Lovable app to the official WhatsApp Business API: the native connector or a provider integration, with the token kept off the front end.<\/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-1711","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>Lovable + WhatsApp Business API: step by step | Vectalk<\/title>\n<meta name=\"description\" content=\"Lovable WhatsApp API: use the native connector or a provider via Edge Function, keep the token in Secrets and protect the webhook. Prompts and code.\" \/>\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\/lovable-whatsapp-business-api\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Lovable + WhatsApp Business API: step by step | Vectalk\" \/>\n<meta property=\"og:description\" content=\"Lovable WhatsApp API: use the native connector or a provider via Edge Function, keep the token in Secrets and protect the webhook. Prompts and code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vectalk.com.br\/blog\/en\/lovable-whatsapp-business-api\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog Vectalk\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-10T19:21:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-10T19:21:46+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=\"10 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\\\/lovable-whatsapp-business-api\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/lovable-whatsapp-business-api\\\/\"},\"author\":{\"name\":\"wanderleyfcunha\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#\\\/schema\\\/person\\\/ff36ecd9d8257856f227f8e5d639db2b\"},\"headline\":\"How to connect a Lovable app to the official WhatsApp Business API\",\"datePublished\":\"2026-11-10T19:21:42+00:00\",\"dateModified\":\"2026-11-10T19:21:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/lovable-whatsapp-business-api\\\/\"},\"wordCount\":1623,\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/lovable-whatsapp-business-api\\\/\",\"url\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/lovable-whatsapp-business-api\\\/\",\"name\":\"Lovable + WhatsApp Business API: step by step | Vectalk\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#website\"},\"datePublished\":\"2026-11-10T19:21:42+00:00\",\"dateModified\":\"2026-11-10T19:21:46+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/#\\\/schema\\\/person\\\/ff36ecd9d8257856f227f8e5d639db2b\"},\"description\":\"Lovable WhatsApp API: use the native connector or a provider via Edge Function, keep the token in Secrets and protect the webhook. Prompts and code.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/lovable-whatsapp-business-api\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/lovable-whatsapp-business-api\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/en\\\/lovable-whatsapp-business-api\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vectalk.com.br\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to connect a Lovable app to the official WhatsApp Business API\"}]},{\"@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":"Lovable + WhatsApp Business API: step by step | Vectalk","description":"Lovable WhatsApp API: use the native connector or a provider via Edge Function, keep the token in Secrets and protect the webhook. Prompts and code.","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\/lovable-whatsapp-business-api\/","og_locale":"en_US","og_type":"article","og_title":"Lovable + WhatsApp Business API: step by step | Vectalk","og_description":"Lovable WhatsApp API: use the native connector or a provider via Edge Function, keep the token in Secrets and protect the webhook. Prompts and code.","og_url":"https:\/\/vectalk.com.br\/blog\/en\/lovable-whatsapp-business-api\/","og_site_name":"Blog Vectalk","article_published_time":"2026-11-10T19:21:42+00:00","article_modified_time":"2026-11-10T19:21:46+00:00","author":"wanderleyfcunha","twitter_card":"summary_large_image","twitter_misc":{"Written by":"wanderleyfcunha","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/vectalk.com.br\/blog\/en\/lovable-whatsapp-business-api\/#article","isPartOf":{"@id":"https:\/\/vectalk.com.br\/blog\/en\/lovable-whatsapp-business-api\/"},"author":{"name":"wanderleyfcunha","@id":"https:\/\/vectalk.com.br\/blog\/#\/schema\/person\/ff36ecd9d8257856f227f8e5d639db2b"},"headline":"How to connect a Lovable app to the official WhatsApp Business API","datePublished":"2026-11-10T19:21:42+00:00","dateModified":"2026-11-10T19:21:46+00:00","mainEntityOfPage":{"@id":"https:\/\/vectalk.com.br\/blog\/en\/lovable-whatsapp-business-api\/"},"wordCount":1623,"articleSection":["Blog"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/vectalk.com.br\/blog\/en\/lovable-whatsapp-business-api\/","url":"https:\/\/vectalk.com.br\/blog\/en\/lovable-whatsapp-business-api\/","name":"Lovable + WhatsApp Business API: step by step | Vectalk","isPartOf":{"@id":"https:\/\/vectalk.com.br\/blog\/#website"},"datePublished":"2026-11-10T19:21:42+00:00","dateModified":"2026-11-10T19:21:46+00:00","author":{"@id":"https:\/\/vectalk.com.br\/blog\/#\/schema\/person\/ff36ecd9d8257856f227f8e5d639db2b"},"description":"Lovable WhatsApp API: use the native connector or a provider via Edge Function, keep the token in Secrets and protect the webhook. Prompts and code.","breadcrumb":{"@id":"https:\/\/vectalk.com.br\/blog\/en\/lovable-whatsapp-business-api\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vectalk.com.br\/blog\/en\/lovable-whatsapp-business-api\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/vectalk.com.br\/blog\/en\/lovable-whatsapp-business-api\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vectalk.com.br\/blog\/"},{"@type":"ListItem","position":2,"name":"How to connect a Lovable app to the official WhatsApp Business API"}]},{"@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\/1711","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=1711"}],"version-history":[{"count":1,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/posts\/1711\/revisions"}],"predecessor-version":[{"id":1714,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/posts\/1711\/revisions\/1714"}],"wp:attachment":[{"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/media?parent=1711"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/categories?post=1711"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vectalk.com.br\/blog\/wp-json\/wp\/v2\/tags?post=1711"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}