Create Messaging WhatsApp Template

POST /tenants/{tenant}/messaging/whatsapp-templates

Makes a WhatsApp template in the practice's own Twilio account and submits it to Meta for approval; returns it as submitted (the list shows Meta's review as it goes). 400 with field errors when one of Meta's rules is broken (friendlyName, language, category, body, samples, samples.{n}) or Twilio refuses; 409 messaging_no_whatsapp_sender until the practice's own number is connected to WhatsApp, or when messaging is off or not set up; 503 when the service or Twilio is unavailable.

Requires: Admin on Messaging.

Parameters

NameTypeDescription
tenant* path string

The Tenant.Code

The Tenant.Code

{
  "friendlyName": "string",
  "language": "string",
  "category": "Utility",
  "body": "string",
  "samples": {}
}

Responses

400 Bad Request
401 Unauthorized – Invalid or missing API key
403 Forbidden – the caller lacks the permissions this endpoint requires; the detail lists every one missing
application/problem+json
409 Conflict
503 Service Unavailable