Skip to main content

WhatsApp API

WhatsApp endpoints exposed by the Devotel CPaaS API Base path: /api/v1/whatsapp Endpoint count: 5

Get conversational-automation config

GET /api/v1/whatsapp/conversational-automation
Read the WhatsApp conversational-automation configuration for the organization’s default connection — the ice breakers, slash commands, and welcome-message toggle shown when a customer first opens the chat. Mirrors WhatsApp’s conversational_automation settings for the phone number.

Test-account analytics KPIs

GET /api/v1/whatsapp/test-account/analytics
Pre-aggregated KPI counts plus a 30-day daily-volume series for the test-account analytics card, scoped to the tenant’s OTP-verified recipient. Read-only aggregate — no provider or billing side-effect.

Send WhatsApp marketing message

POST /api/v1/whatsapp/marketing-messages/send
Send a MARKETING-category template via Meta’s Marketing Messages API (MM Lite) for send-time/creative optimization. Reuses the tenant’s connected WABA token. tracking_id correlates status webhooks back to a campaign/journey.
string
required
Recipient E.164 phone number.
string
required
Approved marketing template name.
string
required
Template language code (e.g. en_US).
object[]
Meta template components (header/body/buttons).
string
Echoed on status webhooks for campaign/CTR correlation.
string
Optional WABA selector for multi-WABA tenants.

Send WhatsApp interactive message

POST /api/v1/whatsapp/messages/send-interactive
Send an interactive WhatsApp message (reply-buttons or list-menu) inside the 24h customer-service window — no template review required. The recipient’s tap returns as button_reply/list_reply on the inbound webhook. action is either (max 3 reply buttons) or (list menu, max 10 sections × 10 rows).
string
required
Recipient E.164 phone number OR WhatsApp Business Solution UID.
string
Optional short header text (max 60 chars).
string
required
Message body text (1-1024 chars).
Optional footer text (max 60 chars).
object
required
Reply-buttons () OR list-menu ().

Update conversational-automation config

PUT /api/v1/whatsapp/conversational-automation
Replace the WhatsApp conversational-automation configuration for the organization’s default connection. WhatsApp replaces each field present on the write, so send the complete desired state — the welcome-message flag plus all ice breakers and commands — to avoid clearing a sibling field. Restricted to owners and admins.
boolean
Toggle WhatsApp’s automatic welcome message on first open.
string[]
Ice breakers — up to four tappable prompts shown when a customer first opens the chat.
object[]
Slash commands surfaced in the chat command menu (up to 30).