Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 1.89 KB

File metadata and controls

32 lines (26 loc) · 1.89 KB

Late::CreateWhatsAppTemplateRequest

Properties

Name Type Description Notes
account_id String WhatsApp social account ID
name String Template name (lowercase, letters/numbers/underscores, must start with a letter)
category String Template category
language String Template language code (e.g., en_US)
components Array<WhatsAppTemplateComponent> Template components (header, body, footer, buttons). Required for custom templates, omit when using library_template_name. [optional]
library_template_name String Name of a pre-built template from Meta's template library (e.g., &quot;appointment_reminder&quot;, &quot;auto_pay_reminder_1&quot;, &quot;address_update&quot;). When provided, the template is pre-approved by Meta with no review wait. Omit components when using this field. [optional]
library_template_body_inputs Object Optional body customizations for library templates. Available options depend on the template (e.g., add_contact_number, add_learn_more_link, add_security_recommendation, add_track_package_link, code_expiration_minutes). [optional]
library_template_button_inputs Array<CreateWhatsAppTemplateRequestLibraryTemplateButtonInputsInner> Optional button customizations for library templates. Each item specifies button type and configuration (e.g., URL, phone number, quick reply). [optional]

Example

require 'late-sdk'

instance = Late::CreateWhatsAppTemplateRequest.new(
  account_id: null,
  name: null,
  category: null,
  language: null,
  components: null,
  library_template_name: null,
  library_template_body_inputs: null,
  library_template_button_inputs: null
)