allow_category_change
boolean
| Set to
true
to allow us to assign a category based on our
template guidelines
and the template's contents. This can prevent the template
status
from immediately being set to
REJECTED
upon creation due to miscategorization.
If omitted, template will not be auto-assigned a category and its status may be set to
REJECTED
if determined to be miscategorized.
See
Template Categories
.
|
category
enum {UTILITY, MARKETING, AUTHENTICATION}
| 必須
|
components
array<JSON object>
| Array of components that make up the template. See
Template Components
.
For types
HEADER
,
BODY
,
FOOTER
,
text
is required.
|
type
enum {GREETING, HEADER, BODY, FOOTER, BUTTONS, CAROUSEL, LIMITED_TIME_OFFER}
| 必須
|
format
enum {TEXT, IMAGE, DOCUMENT, VIDEO, LOCATION}
| |
text
string
| Required for components with type
HEADER
,
BODY
, or
FOOTER
.
Component text.
|
buttons
array<JSON object>
| Button components to be used in the template.
|
type
enum {QUICK_REPLY, URL, PHONE_NUMBER, OTP, MPM, CATALOG, FLOW, VOICE_CALL}
| 必須
|
text
string
| |
url
URI
| |
phone_number
phone number string
| |
example
array<string>
| |
flow_id
int64
| |
zero_tap_terms_accepted
boolean
| |
example
JSON object
| Placeholder examples. Templates will not be approved without examples.
|
header_text
array<string>
| |
body_text
array<array<string>>
| |
header_handle
array<string>
| |
language
string
| 必須
|
message_send_ttl_seconds
int64
| Time to live for message template sent. If users are offline for more than TTL duration after message template is sent, message will be dropped from message queue and will not be delivered.
Only allowed for authentication message templates.
|
name
string
| 必須
|
sub_category
enum {ORDER_DETAILS, ORDER_STATUS}
| Sub category of the template
|