Templates and media tools
Read Meta-approved templates, save drafts, submit new ones for approval, and find files already in your media library.
waca_templates_list#List message templates
Templates registered with Meta for this workspace, with status (APPROVED templates are the only ones that can be sent), body text and the list of placeholders each needs. Use detailed for the raw components and version.
Parameters (5)›
status"APPROVED" | "PENDING" | "REJECTED" | "PAUSED" | "DISABLED"
No extra notes.category"MARKETING" | "UTILITY" | "AUTHENTICATION"
No extra notes.querystring
Substring of the template name or body.page_sizeinteger
Rows per page, 1-100. Default 20.Default20response_format"concise" | "detailed"
concisereturns the fields a person reads;detailedadds ids and raw fields for follow-up calls.Default"concise"
waca_templates_get#Get one template
One template by name and language, with its body, placeholders, buttons, status and rejection reason. Check placeholders before any template send.
Parameters (2)›
template_namerequiredstring
Template name as registered with Meta: lowercase snake case.languagerequiredstring
Template language code, e.g.en_US,en,hi.
waca_templates_list_drafts#List template drafts
Local drafts not yet submitted to Meta. A draft becomes a real template with waca_templates_submit.
Takes no parameters.
waca_templates_save_draft#Save a template draft
Writes a template draft locally without submitting it to Meta, so a person can review it in the dashboard. Pass draft_id to update an existing draft. Body placeholders are positional {{1}}, {{2}}. Nothing is sent to Meta.
Parameters (11)›
template_namerequiredstring
Template name as registered with Meta: lowercase snake case.languagerequiredstring
Template language code, e.g.en_US,en,hi.categoryrequired"MARKETING" | "UTILITY" | "AUTHENTICATION"
MARKETING for promotions, UTILITY for transactional updates, AUTHENTICATION for codes.bodyrequiredstring
Message body. Positional placeholders{{1}},{{2}}… in order; no placeholder at the very start or end.header_textstring
Short text header. Mutually exclusive with header_format.header_format"IMAGE" | "VIDEO" | "DOCUMENT"
Media header type; pair with header_asset_id from waca_media_list.header_asset_idstring
Media-library asset used as the header sample.footer_textstring
No extra notes.quick_reply_buttonsstring[]
No extra notes.url_buttonobject
No extra notes.draft_idstring
No extra notes.
waca_templates_submit#Submit a template to Meta for approval
Submits a template to Meta. Approval usually takes minutes to hours; the template cannot be sent until its status is APPROVED. Either pass draft_id alone to submit an existing draft, or the full fields. Owner/admin only.
Parameters (11)›
template_namestring
Template name as registered with Meta: lowercase snake case.languagestring
Template language code, e.g.en_US,en,hi.category"MARKETING" | "UTILITY" | "AUTHENTICATION"
MARKETING for promotions, UTILITY for transactional updates, AUTHENTICATION for codes.bodystring
Message body. Positional placeholders{{1}},{{2}}… in order; no placeholder at the very start or end.header_textstring
Short text header. Mutually exclusive with header_format.header_format"IMAGE" | "VIDEO" | "DOCUMENT"
Media header type; pair with header_asset_id from waca_media_list.header_asset_idstring
Media-library asset used as the header sample.footer_textstring
No extra notes.quick_reply_buttonsstring[]
No extra notes.url_buttonobject
No extra notes.draft_idstring
No extra notes.
waca_templates_library_search#Search the template library
Ready-made template ideas from Meta's utility library and SheetWA's community library, searchable by words, category and industry. Use one as the starting point for waca_templates_save_draft. Read-only; importing is done by a person in the dashboard.
Parameters (5)›
querystring
No extra notes.source"meta" | "community" | "both"
No extra notes.Default"both"category"MARKETING" | "UTILITY" | "AUTHENTICATION"
No extra notes.industrystring
No extra notes.page_sizeinteger
Rows per page, 1-100. Default 20.Default20
waca_media_list#List media library files
Images, videos, documents and audio already uploaded to the workspace's media library. Use an asset_id as a template media header (waca_templates_save_draft) or as the file of a media broadcast (waca_broadcasts_create). Uploading new files is done by a person in the dashboard.
Parameters (4)›
kind"image" | "video" | "document" | "audio"
No extra notes.querystring
Start of the file name.pageinteger
1-based page number.Default1page_sizeinteger
Rows per page, 1-100. Default 20.Default20