Vobiz WhatsApp skill
Use this when the user wants to send WhatsApp messages programmatically, build a chatbot, run a campaign, or set up multi-agent customer support over WhatsApp.
How Vobiz fits
Vobiz is a Meta-approved BSP (Business Solution Provider). You connect your WhatsApp Business Account (WABA) once, then send/receive via Vobiz's REST API or no-code campaign builder.
Base URL for every messaging endpoint: https://api.vobiz.ai/api/v1/messaging. Auth on every request: X-Auth-ID (MA_XXXXXXXX) + X-Auth-Token headers (a login JWT via Authorization: Bearer <token> is also accepted). Send Content-Type: application/json with a body. Relative paths below are under that base URL.
Capabilities
- Messaging - send
text,template, and media (image,audio,video,document,sticker) viaPOST /api/v1/messaging/messages. Interactive (buttons, lists),location, andcontactsare WhatsApp message types you receive inbound; the documented send contract covers the types above. To offer buttons outside the window, use an approved template with buttons. - Templates - submit + manage Meta-approved templates, scoped per channel under
/channels/{channelId}/templates(list with?status=, create, andPOST .../templates/sync). Statuses:APPROVED,PENDING_REVIEW,REJECTED,DISABLED,PAUSED. Categories:UTILITY,MARKETING,AUTHENTICATION. - Campaigns -
POST /campaignswithchannel_id,name,template_id(template UUID, not name),template_components,audience_type(tags+audience_tags, orcontact_ids+audience_contact_ids), optionalrecipient_variables,variable_mappings,scheduled_at(omit to send now). Lifecycledraft->scheduled->sending->paused->completed/cancelled/failed;POST /campaigns/{id}/pause|resume|cancel(no body),GET /campaigns/{id}/recipientsfor per-contact status (queued/sent/delivered/read/failed/skipped). - Calls - WhatsApp Business Calling over WebRTC (not PSTN).
POST /calls/whatsappwithchannel_id,to,sdp_offerreturns201withcall_id- the SDP answer arrives later via thecall.<event>webhook, not in the response.POST /calls/whatsapp/actionwithchannel_id,call_id,action(pre_accept/accept/reject/terminate;sdprequired foraccept/pre_accept).GET /calls/whatsapp/logslists call history (page,limit,direction,status). - Inbox - multi-agent dashboard for conversation handling;
GET /conversationsandGET /conversations/{id}/messagesfor history;/contactsCRUD +POST /contacts/import;/canned-responses. - Webhooks - outbound events
message.inbound,message.status(status =sent/delivered/read/failed), andcall.<event>(call.connect,call.status_change,call.terminate); signed withX-Webhook-Signature, event name also in theX-Webhook-Eventheader. Manage subscriptions atPOST|GET /webhooks,DELETE /webhooks/{id}. - Channels - three onboarding modes:
bring_your_own(BYON),buy_from_vobiz,embedded_signup.POST|GET /channels/whatsapp,POST /channels/whatsapp/embedded-signup(Meta OAuthcode),PUT|DELETE /channels/whatsapp/{id}. - Numbers -
GET /numbers/whatsapp/availability?country=INto search,POST /numbers/whatsapp/ordersto buy a WhatsApp-capable number, or OTP-verify a BYON number before connecting.
Core request shape (send a message)
Every send needs channel_id (UUID), waba_id, to (E.164 with leading +), and type. The send endpoint returns 201 with a Message object whose status starts at pending and is updated to sent -> delivered -> read (or failed) via message.status webhooks. The Meta id arrives as meta_message_id (the wamid) once Meta accepts it - null until then. A 2xx means accepted, not delivered.
{ "channel_id": "<uuid>", "waba_id": "<digits>", "to": "+919876543210",
"type": "text", "text": { "body": "Hi!" } }Media uses a single media object with either link (public HTTPS) or Meta media id, plus optional caption/filename. Templates use type: "template" with template.name, template.language.code, optional category, and components[] carrying ordered parameters.
Key restrictions
- 24-hour customer-service window: free-form messages (text/media) are allowed only for 24h after the customer's last inbound message. Each new inbound message resets the timer. Outside the window, you can send only approved templates - a free-form send is rejected by WhatsApp and surfaces as
failedon themessage.statuswebhook. Templates are always allowed; once the customer replies to one, a fresh 24h free-form window is open. - Templates must be pre-approved by Meta. New templates start at
PENDING_REVIEW; approval takes minutes to ~24h. After creating or approving templates in Meta Business Manager directly, callPOST /channels/{channelId}/templates/syncto pull the latest statuses into Vobiz (returns{ "synced": n }). - One provider per number: a WhatsApp number can be attached to exactly one provider (BSP) at a time. If it is live with another provider, deregister it there first; the number also cannot be registered on the WhatsApp or WhatsApp Business consumer app.
- Quality rating + limits: Meta assigns a Green/Yellow/Red quality rating and a daily messaging limit per number. Low quality (spam, blocks, slow replies) reduces messaging limits.
Pitfalls
- First message to a new contact must be a template. A brand-new contact has never replied, so the 24h window is closed - a free-form
textsend fails. Use an approved template (oftenUTILITYorMARKETING) to open the conversation. delivered/readare not events. They are values of thestatusfield inside a singlemessage.statuswebhook. There is nomessage.delivered/message.read/message.sent/message.failed, norcontact.updated/campaign.completed. Only three outbound event types exist:message.inbound,message.status,call.<event>.- Verify
X-Webhook-Signatureover the raw bytes. It is the hex HMAC-SHA256 of the exact request body keyed by your subscriptionsecret- nosha256=prefix. Do not re-serialize parsed JSON before hashing; constant-time compare. (The Meta->Vobiz leg athttps://api.vobiz.ai/api/v1/webhooks/whatsappusesX-Hub-Signature-256with asha256=prefix - different mechanism, you don't build against it.) - Two webhook systems. Meta->Vobiz (platform plumbing, set once in your Meta App) is separate from Vobiz->your-server (what you build against). The
secretis never returned after creation - store it when you create the subscription. Thewss://api.vobiz.ai/api/v1/messaging/wsWebSocket is for live inbox UIs only, not a webhook substitute. - Template category mismatch = rejection. Don't ship promotional content as
UTILITY.AUTHENTICATIONis OTP-only and gets theCOPY_CODEbutton + expedited review. access_tokenis write-only. The Meta system-user token (starts withEAA...) is stored securely and never returned by any channel API. Rotate it viaPUT /channels/whatsapp/{id}when it expires.- Deduplicate on
event_id. Deliveries are retried; the underlying Meta event can also repeat. Return200fast and process async. - Campaigns take a template UUID.
template_idis the Vobiz templateidfromGET /channels/{channelId}/templates, not the Meta template name.
Recipes
- Auto-reply to an inbound message: receive
message.inbound-> reply withtype: "text"(you're inside the 24h window). Seewhatsapp/webhooks/events+whatsapp/api/send-message. - Proactive notification (window closed): create + get an approved template -> send with
type: "template"and orderedcomponents[].parameters. Seewhatsapp/messaging/templates. - Connect an existing number (BYON):
POST /numbers/whatsapp/bring-your-own/verifywithphone_number+verification_method(sms/voice) ->POST /numbers/whatsapp/bring-your-own/confirmwithphone_number+otp_code->POST /channels/whatsappwithnumber_onboarding_mode: "bring_your_own",waba_id,phone_number_id,phone_number,number_provider(e.g.meta_direct),access_token,display_name. Seewhatsapp/channels/byon+whatsapp/api/numbers. - Track delivery: store the returned
id/meta_message_id, then correlatemessage.statuswebhooks by thewamidinstatuses[].id. - Broadcast to a segment: tag contacts ->
POST /campaignswithaudience_type: "tags"-> pollGET /campaigns/{id}counts orGET /campaigns/{id}/recipients?status=failed. Seewhatsapp/api/campaigns.
When to search docs
- "Send a template message" ->
whatsapp/messaging/templates,whatsapp/api/send-message - "Inbound webhook / verify signature" ->
whatsapp/webhooks,whatsapp/webhooks/events,whatsapp/api/webhooks - "Connect my existing WhatsApp number (BYON)" ->
whatsapp/channels/byon,whatsapp/api/numbers - "Connect a channel via API / embedded signup" ->
whatsapp/api/channels - "Build a chatbot flow" ->
whatsapp/messaging - "Buy a WhatsApp number" ->
whatsapp/api/numbers - "Run a broadcast campaign" ->
whatsapp/api/campaigns - "WhatsApp voice calls" ->
whatsapp/api/calls - "24-hour window / conversation billing" ->
whatsapp/messaging,whatsapp/api/conversations