Skip to main content

WhatsApp Messaging

Send WhatsApp template messages through your own provider account. Vocobase holds the credentials and queues the send; the message goes out on your WhatsApp business number, not ours. Two providers are supported: AiSensy and Interakt.
This is bring-your-own-provider, the same model as telephony. You need an existing AiSensy or Interakt account with approved templates.

Connect your account

Which credentials to send depends on the provider: Credentials are encrypted at rest and only ever returned masked.

Wire up the webhook

The response includes a webhook_url. Paste it into your provider dashboard so delivery-status webhooks reach Vocobase:
You choose webhook_secret, and you must set the same value in your provider dashboard. Vocobase never generates it. If the two do not match, delivery-status webhooks fail signature verification and are dropped.

Verify before sending

This calls your provider with the stored credentials and records the outcome. The connection must reach ACTIVE before sends are accepted — otherwise POST /messaging/send returns 400 CONNECTION_INACTIVE. On failure, the reason lands in last_error_message.

Send a message

The call returns as soon as the message is queued — 202, not 200. Delivery is asynchronous; track it through your provider’s delivery webhooks, correlating on log_id.

Which template fields to send

This differs by connection, and it is the most common source of a 400: variables fills the template body placeholders in order; header_values fills the header ones.
to must include its own country code. It is parsed rather than pattern-matched, and there is no default country — a partner-supplied number has no call to borrow one from. +919876543210 works; 9876543210 does not.

Manage connections

Sending credentials on PATCH replaces them. Deleting a connection stops any agent referencing it from sending.

Troubleshooting


Next steps

Bring Your Own Phone

The same model for telephony providers.

API Reference

Every messaging field and error code.