whatsapp_template_create
Submit a new WhatsApp message template to Meta for review. Either pass components (custom template: HEADER / BODY / FOOTER / BUTTONS in Meta's shape, with example values for any {{n}} placeholders) or library_template_name to instantiate one of Meta's pre-approved library templates (approved instantly). name must be lowercase letters, digits and underscores; category is UTILITY, MARKETING or AUTHENTICATION. Custom templates come back PENDING — watch the message_template.status_updated webhook or re-list with refresh.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Template name: lowercase letters, digits and underscores, starting with a letter | |
| category | Yes | ||
| language | Yes | Language code, e.g. en_US | |
| components | No | Meta template components. Required for a custom template. | |
| profile_id | Yes | Profile hashid of a whatsapp profile (the WhatsApp Business Account) | |
| parameter_format | No | Placeholder style: {{1}} (default) or {{name}} | |
| library_template_name | No | Name of a Meta template-library entry to instantiate (see whatsapp_template_library_get) | |
| message_send_ttl_seconds | No | Time-to-live for sends of this template. AUTHENTICATION 30-900, UTILITY 30-43200, MARKETING 43200-2592000, or -1 to keep Meta's default | |
| library_template_body_inputs | No | Body inputs the library template asks for | |
| library_template_button_inputs | No | Button inputs the library template asks for |