Skip to main content
Use WhatsApp commands to list approved templates and send outbound template messages. For REST details, see WhatsApp. Authenticate first — see CLI Auth. Most commands require an agent ID (-a agt_123) or a default agent. Connect a WhatsApp number to your agent before using these commands — see WhatsApp integration and WhatsApp templates in the user guide.

List templates

List every approved template across the agent’s connected WhatsApp Business Accounts:
Output includes template names, languages, variable placeholders grouped by component, and the connected numbers you can send from. A template can only be sent from a number on its own Business Account — match the template’s WABA to a sender before sending. Fetch raw JSON for scripting:

Send a template

Send a template with no variables:
The recipient number uses international format (digits with country code, no + required). When the agent has exactly one connected number, --from is optional.

Send with variables

Pass template variable values as JSON grouped by component:
Use --language when the template name has multiple approved language variants. Header and body placeholders are numbered independently — supply every key the template listing reported. See Template variables for format rules. Send from a specific connected number when the agent has more than one:
A 201 means WhatsApp accepted the message. Delivery to the recipient is not guaranteed — see Delivery and conversations.

Commands

For every flag, run chatbase whatsapp <command> --help.