Skip to main content

MetaTemplate

Stored in the metatemplates collection. createdAt and updatedAt are maintained automatically.

Returned by GET /template/whatsapp, GET /template/whatsapp/:id, POST /template/whatsapp/generate-ai.

FieldTypeNotes
appObjectId -> MetaApprequired
namestringrequired
categorystringdefault UTILITY · one of UTILITY, MARKETING, AUTHENTICATION
appCategorystring
languagestringrequired
headerTypestringdefault None · one of None, Text, Image, Video, Document
headerTextstring
headerFileObjectId
bodyTextstring
frontendBodyTextstring
footerTextstring
variablesobject[]default []
variables.namestringrequired
variables.examplestringrequired
variables.requiredbooleandefault false
variables.dateTypestringone of dd/mm/yyyy hh:mm a, dd/mm/yyyy
frontendVariablesobject[]default []
frontendVariables.namestringrequired
frontendVariables.examplestringrequired
frontendVariables.requiredbooleandefault false
frontendVariables.dateTypestringone of dd/mm/yyyy hh:mm a, dd/mm/yyyy
buttonsobject[]default []
buttons.typestringrequired · one of Reply, Copy, Phone, URL
buttons.textstring
buttons.codestring
buttons.numberstring
buttons.urlstring
buttons.examplestring
buttons.isURLDynamicboolean
expirynumber
ttlnumber
addSecurityboolean
copyCodeTextstring
statusstringdefault PENDING · one of PENDING, APPROVED, REJECTED, PAUSED
reasonstring
tidstringrequired
lastSyncedAtdate
companyIDObjectId
_idObjectIddefault "6a95712f932657988a91c069"
createdAtdateset once
updatedAtdate