Validate a message template
Dry-run validation of a WhatsApp message template against the Cloud API rules (name format, component cardinality, header format, text limits, placeholder sequencing, button constraints). Returns errors for hard violations that WhatsApp would reject and warnings for best-practice issues. Performs no network call and does not submit the template.
Authorizations
Prefix your API key with "Bearer ". Example: Authorization: Bearer sapi_key_...
Body
Template definition to validate
Category is the message category. Marketing intent in a UTILITY template triggers automatic rejection.
MARKETING, UTILITY, AUTHENTICATION "UTILITY"
Components define the template body, optional header, optional footer, and optional buttons. At minimum one BODY component is required.
Language is the BCP-47 language code (e.g. en_US, fr_FR, pt_BR).
"en_US"
Name is the template identifier. Lowercase letters, digits, underscores only; no spaces.
"order_confirmation"