WhatsApp Business Cloud API Automation avatar

WhatsApp Business Cloud API Automation

Pricing

from $10.00 / 1,000 message sents

Go to Apify Store
WhatsApp Business Cloud API Automation

WhatsApp Business Cloud API Automation

Connect your applications to WhatsApp effortlessly using this high-performance Apify Actor powered by the official Meta WhatsApp Business Cloud API. Perfect for e-commerce notifications, transactional alerts, multi-channel marketing campaigns, and customer support workflows.

Pricing

from $10.00 / 1,000 message sents

Rating

0.0

(0)

Developer

onur kaplan

onur kaplan

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

a day ago

Last modified

Categories

Share

WhatsApp Business Platform API

Use this Actor to build your own WhatsApp Business product — connect customers’ numbers, create templates, send messages — without applying as a Meta Tech Provider. Traffic goes through the Meta-approved watext.io Cloud API app.

You pay on Apify. There is no watext.io signup and no API key. Direct REST to watext.io is disabled. Meta tokens never appear in Actor input.

Each Apify user gets a workspace. Each WhatsApp number you connect belongs to that workspace.

Build your own panel

  1. Run this Actor with createConnectSession and a returnUrl on your site
  2. Open the returned watext.io URL in the browser — Facebook login runs there
  3. Run createTemplate / syncTemplates / send

One-time setup

Rent this Actor on Apify. That is the whole setup. Do not paste a Meta token or a watext.io key.

Actions

actionWhat it does
getConfigMeta appId + Embedded Signup config_id - only if you run FB.login on your own domain
createConnectSessionReturns a https://watext.io/connect/whatsapp?session=… URL. Open it in a popup or redirect
connectNumberFinish connect from your own FB.login: code, wabaId, phoneNumberId
listNumbersNumbers in your workspace (no tokens)
disconnectNumberDrop Cloud API access for a number (id)
getTemplateOptionsLanguages, categories, formats, header types, buttons - same as the New template screen
createTemplateFull template builder submit (language, format, header type/media, buttons, catalog/carousel/LTO)
saveTemplateSave as draft without submitting to Meta
syncTemplatesRefresh template approval status from Meta
listTemplatesTemplates, statuses, and builder fields
sendSend an approved template or a 24-hour session text

Connect WhatsApp (hosted Facebook login)

Do not run FB.login on your SaaS domain. Apify cannot open Facebook popups. Your backend asks for a session, then the browser opens watext.io:

{
"action": "createConnectSession",
"returnUrl": "https://your-saas.com/settings/whatsapp"
}

Open url from the result (https://watext.io/connect/whatsapp?session=…). Listen for postMessage from https://watext.io (watext-whatsapp-connected) or handle returnUrl?whatsapp=connected&id=….

connectNumber is only for the rare case where your domain is already on the Meta app allowlist and you run Embedded Signup yourself.

Create a template

Same as the watext New template screen - including Add button → Copy offer code (coupon). Every builder button type is valid: URL, phone, WhatsApp call, quick reply, copy code.

{
"action": "createTemplate",
"name": "spring_sale_2026",
"language": "en",
"category": "MARKETING",
"format": "standard",
"headerType": "image",
"headerMedia": "https://cdn.example.com/hero.jpg",
"body": "Hello {{1}}, use code SAVE20 at checkout.",
"footer": "Powered by Watext.io",
"buttons": [
{ "type": "URL", "text": "Shop", "url": "https://example.com" },
{ "type": "PHONE_NUMBER", "text": "Call", "phone_number": "+905321234567" },
{ "type": "VOICE_CALL", "text": "WhatsApp", "ttl_minutes": 10080 },
{ "type": "QUICK_REPLY", "text": "Help" },
{ "type": "COPY_CODE", "text": "Copy code", "example": "SAVE20" }
]
}

COPY_CODE is the coupon / offer-code button from the builder (example = “Offer code example”). Shorthand: "copyCode": "SAVE20" (or couponCode) adds that button if you omit it from buttons.

Limited-time offer (builder LTO: offer text, expiration, copy code, URL):

{
"action": "createTemplate",
"name": "flash_sale_lto",
"language": "en",
"category": "MARKETING",
"format": "limited_time_offer",
"body": "Offer ends soon.",
"ltoText": "Expiring offer!",
"ltoHasExpiration": true,
"ltoCopyCodeExample": "OFFER25",
"ltoUrlButtonText": "Shop now",
"ltoUrl": "https://example.com/offer?code={{1}}",
"ltoUrlExample": "https://example.com/offer?ref=abc",
"ltoHeaderFormat": "IMAGE",
"ltoHeaderMedia": "https://cdn.example.com/lto.jpg"
}

Catalog uses catalogId. Carousel uses carouselCards. saveAsDraft: true is Save as draft. GET /api/v1/templates/options is the same options list the New template screen loads.

Send

{
"action": "send",
"to": "+905321234567",
"templateName": "welcome_message",
"languageCode": "en",
"parameters": ["Ahmet"]
}

Input fields

FieldRequiredDescription
actionYesPrefer setting it explicitly (createConnectSession, createTemplate, send, …)
code, wabaId, phoneNumberIdconnectNumberFrom Embedded Signup if you run Facebook login yourself
returnUrlcreateConnectSessionRequired https URL on your site. After connect we redirect here with ?whatsapp=connected&id=
iddisconnectNumberNumber id from listNumbers
name, language, category, format, headerType, bodycreateTemplateSame as the New template form
headerMediaimage/video/pdf/gifdata URL or https URL; or draft.headerMediaHandle after /templates/media
buttonsNoURL, PHONE_NUMBER, VOICE_CALL, QUICK_REPLY, COPY_CODE (coupon; example is the code)
copyCode / couponCodeNoAdds the Copy offer code button (SAVE20) if it is not already in buttons
catalogId, carouselCards, ltoCopyCodeExample, draftcatalog/carousel/LTOSame fields as the builder
saveAsDraftNotrue = Save as draft
to, templateName or textsendRecipient + approved template or session text
fromNoNumber id when the workspace has more than one line

Direct REST to watext.io is disabled (402). Call this Actor from your backend. See ../README.md in the repo.

Pricing

On Apify, a successful send may be charged as message-sent. Connect/template calls are not that event. Meta conversation fees are billed by Meta on the WhatsApp Business Account you connected.

Policy

  • Recipients must be valid international WhatsApp numbers
  • Templates must be approved before send
  • Session text only works inside the 24-hour window
  • Do not use this for spam or anything that violates WhatsApp Business Policy

Troubleshooting

ErrorWhat to do
API keys from watext.io are disabledDo not send apiKey. Run the Actor on Apify.
This Actor must run on ApifyUse Apify Console / API, not a local script without APIFY_USER_ID
No connected WhatsApp numbercreateConnectSession, open the returned URL, then retry
Approved template … was not foundcreateTemplate + syncTemplates, wait for APPROVED
HTML 502 / Cloudflarewatext.io API blocked or down - retry later
input_schema.json is not json fileRebuild from latest main. Schema on 0.2.2+ is valid JSON