WabaTemplateCreateRaw
Payload to register a WABA template. WabaTemplateCreateRaw (used by the auto endpoint) derives name/ext_id automatically from the channel and prepared message; WabaTemplateCreate requires them explicitly.
ID of the owning company (the top-level tenant account).
ID of the prepared message to base the template on.
ID of the messaging channel this record relates to.
variables object[]
Variables to substitute into the template, each sourced from a lead or contact field.
Whether the value comes from the lead or the contact.
Possible values: [lead, contact]
leadThe field key to read the value from.
Possible values: [pending, approved, rejected, failed, paused]
pendingWABA template category — marketing, utility, or authentication.
Possible values: [marketing, utility, authentication]
marketingTemplate media type — text, video, image, or document.
Possible values: [text, video, image, document]
textexample object
Example rendering of the template body.
- string
- null
vertical object
- string
- null
Template language (ru or en_US).
Possible values: [ru, en_US]
ruheader object
Optional template header text.
- string
- null
example_header object
- string
- null
footer object
Optional template footer text.
- string
- null
{
"company_id": 0,
"prepared_msg_id": 0,
"channel_id": 0,
"variables": [
{
"source": "lead",
"key": "string"
}
],
"status": "pending",
"category": "marketing",
"type": "text",
"example": "string",
"vertical": "string",
"lang": "ru",
"header": "string",
"example_header": "string",
"footer": "string",
"buttons": [
null
]
}