WhatsApp message template management
List WhatsApp message templates
query Parameters
statuscategorywaba_idFilter by WhatsApp Business Account ID
List WhatsApp message templates › Responses
List of templates
idwaba_idWhatsApp Business Account ID
namelanguageBCP-47 language code (e.g. id, en_US)
categorystatuscomponentsMeta template components array (HEADER, BODY, FOOTER, BUTTONS)
created_atupdated_atmeta_template_idTemplate ID assigned by Meta
header_media_urlPublic MinIO URL for the header media (IMAGE/VIDEO/DOCUMENT)
Create a WhatsApp message template
Submits the template to Meta for review and stores it locally.
Create a WhatsApp message template › Request Body
nameLowercase letters, numbers, and underscores only. Max 512 chars.
componentsMeta template components array
languagecategoryintegration_account_idUse specific WABA account. Falls back to META_WABA_ID env var.
Create a WhatsApp message template › Responses
Template created and submitted to Meta
idwaba_idWhatsApp Business Account ID
namelanguageBCP-47 language code (e.g. id, en_US)
categorystatuscomponentsMeta template components array (HEADER, BODY, FOOTER, BUTTONS)
created_atupdated_atmeta_template_idTemplate ID assigned by Meta
header_media_urlPublic MinIO URL for the header media (IMAGE/VIDEO/DOCUMENT)
Sync templates from Meta
Downloads all templates from the WABA and upserts them locally. Optionally re-hosts header media to MinIO for persistent public URLs. Optionally scope to a specific integration account via query param.
query Parameters
integration_account_idUse specific WABA account. Falls back to META_WABA_ID env var.
Sync templates from Meta › Responses
Sync result
messagetotal_from_metasyncederrorsGet a WhatsApp template by ID
path Parameters
idGet a WhatsApp template by ID › Responses
Template details
idwaba_idWhatsApp Business Account ID
namelanguageBCP-47 language code (e.g. id, en_US)
categorystatuscomponentsMeta template components array (HEADER, BODY, FOOTER, BUTTONS)
created_atupdated_atmeta_template_idTemplate ID assigned by Meta
header_media_urlPublic MinIO URL for the header media (IMAGE/VIDEO/DOCUMENT)
Update template header media URL
Sets or replaces the header_media_url for a template. Use this when the automatic re-hosting during sync fails (e.g. expired scontent URL).
path Parameters
idUpdate template header media URL › Request Body
header_media_urlPublicly accessible URL for the header media
Update template header media URL › Responses
Header media URL updated
idwaba_idWhatsApp Business Account ID
namelanguageBCP-47 language code (e.g. id, en_US)
categorystatuscomponentsMeta template components array (HEADER, BODY, FOOTER, BUTTONS)
created_atupdated_atmeta_template_idTemplate ID assigned by Meta
header_media_urlPublic MinIO URL for the header media (IMAGE/VIDEO/DOCUMENT)