Skip to content

WhatsApp templates ​

Use an approved Galatext template when a recipient's WhatsApp reply window is closed. Galatext manages template submission and approval for your account.

List templates ​

bash
curl https://api.galatext.com/api/whatsapp/templates \
  -H "Authorization: Bearer $GALATEXT_ACCESS_TOKEN"
js
const templates = await client.whatsapp.templates();

Choose an approved template returned for your account. Use its sid value as contentSid; Galatext template references start with tpl_. Treat the value as opaque and retain it exactly as returned.

Send a template ​

js
const result = await client.whatsapp.send({
  requestId: crypto.randomUUID(),
  recipients: ['254712345678'],
  contentSid: approvedTemplate.sid,
  contentVariables: {
    '1': 'Jane',
    '2': 'ORD-12345',
  },
});

Pass variables matching the selected template. The template must be approved and belong to the same account. The customer API exposes listing and sending; template creation, approval submission, and service setup are handled by Galatext. Contact info@galatext.com for a new template.

Powered by Galatext Software