Create a WhatsApp template
Submit a new message template for WhatsApp's review in a channel's business account: name, language, category (marketing or utility), body, and optional header, footer and buttons. The header is a fixed text, or a document (PDF), image or video with a sample file in base64 (up to 5 MiB) for the review; each send then carries its own file. It stays pending until WhatsApp approves or rejects it, usually within minutes, and WhatsApp may change its category. Check the result with list_templates; a rejected template explains why in rejectedReason.
- Scope:
raiz:templates:write - Credentials: an API key, a client-credentials token or a person's access token
- Effect: writes; not idempotent: check the outcome before you retry
- Limits: request body up to 8 MB, response up to 1 MB
- CLI:
arbol raiz templates create· MCP tool:raiz_templates_create
POST
https://api.getarbol.com/v1/raiz/templatesAuthorization
Request body JSON required
Returns
200
Successful operation.
404
NOT_FOUND: The requested operation does not exist.TEMPLATE_NOT_FOUND: The template does not exist in this channel's WhatsApp Business Account.RESOURCE_NOT_FOUND: The requested resource does not exist in this organization.
409
CHANNEL_NOT_READY: The channel is not connected yet, or this kind of traffic is not enabled on it.CHANNEL_TYPE_MISMATCH: This operation or field does not apply to this channel's type.
422
PROVIDER_REJECTED: The provider refused the request. Check the configuration and try again.
429
RATE_LIMITED: The request rate limit was exceeded. Try again later.WHATSAPP_RATE_LIMITED: WhatsApp is limiting messages from this number. Try again later.
502
OUTCOME_UNKNOWN: The operation may have been applied; check its result before repeating it.
503
UPSTREAM_UNAVAILABLE: The upstream service could not complete the request.INTEGRATIONS_UNAVAILABLE: The organization's integrations cannot be read right now. Try again shortly.