Skip to main content
POST
Validate a message template

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Template definition to validate

category
enum<string>
required

Category is the message category. Marketing intent in a UTILITY template triggers automatic rejection.

Available options:
AUTHENTICATION,
MARKETING,
UTILITY
Example:

"UTILITY"

components
object[]
required

Components define the template body, optional header, optional footer, and optional buttons. At minimum one BODY component is required.

language
string
required

Language is the BCP-47 language code (e.g. en_US, fr_FR, pt_BR).

Example:

"en_US"

name
string
required

Name is the template identifier. Lowercase letters, digits, underscores only; no spaces.

Example:

"order_confirmation"

Response

Validation result

errors
object[]
required

Errors are hard violations WhatsApp would reject at submission.

valid
boolean
required

Valid is true when there are no errors (warnings do not affect validity).

warnings
object[]
required

Warnings are best-practice issues or items that cannot be fully verified offline.