Template groups | Developer Documentation
Template groups
Updated: Feb 27, 2026
This document describes how to create, manage, and measure template groups.
Template groups allow you to associate a set of templates so it’it's easier to track their performance as a set when querying template metrics.
Limitations
Create
a template group
Request
curl 'https://graph.facebook.com/<API_VERSION>/<WABA_ID>/template_groups' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer <ACCESS_TOKEN>' \ -d ' { "name": "<TEMPLATE_GROUP_NAME>", "description": "<TEMPLATE_GROUP_DESCRIPTION>", "whatsapp_business_templates": [ <TEMPLATE_IDS> ] }'
Request parameters
| ||
| | |
| | |
| | |
| | |
| |
Response
{ "id": "<TEMPLATE_GROUP_ID>" }
Response parameters
| |
Example request
curl 'https://graph.facebook.com/v25.0/102290129340398/template_groups' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer EAAJB...' \
-d '
{
"name": "Black Friday 2024",
"description": "US-based Black Friday sale 2024 templates.",
"whatsapp_business_templates": [278077987957091,1945418102598215,1035843174854974]
}'
Example response
{ "id": "9020555671393375" }
Get a template group
Request
curl 'https://graph.facebook.com/<API_VERSION>/<TEMPLATE_GROUP_ID>' \ -H 'Authorization: Bearer <ACCESS_TOKEN>'
Request parameters
| | |
| ||
| |
Response
{ "name": "<TEMPLATE_GROUP_NAME>", "description": "<TEMPLATE_GROUP_DESCRIPTION>", "creation_time": "<TEMPLATE_GROUP_CREATION_TIMESTAMP>", "update_time": "<TEMPLATE_GROUP_LAST_UPDATE_TIMESTAMP>", "whatsapp_business_account": { <WABA_DETAILS> }, "whatsapp_business_templates": { "data": [ <TEMPLATE_DETAILS> ], "paging": { <PAGING_CURSORS> } }, "id": "<TEMPLATE_GROUP_ID>" }
Response parameters
| | |
| | |
| | |
| | |
| ||
| ||
| ||
| |
Example request
curl 'https://graph.facebook.com/v25.0/9020555671393375' \
-H 'Authorization: Bearer EAAJB...'
Example response
{ "name": "Black Friday 2024", "description": "US-based Black Friday sale 2024 templates.", "creation_time": "2025-01-06T23:05:12+0000", "update_time": "2025-01-06T23:05:12+0000", "whatsapp_business_account": { "id": "102290129340398", "name": "Lucky Shrub", "currency": "USD", "timezone_id": "1", "message_template_namespace": "ba30dd89_2ebd_41e4_b805_f2c05ae04cc9" }, "whatsapp_business_templates": { "data": [ { "name": "black_friday_2024_carousel_media_header_cards", "parameter_format": "POSITIONAL", "components": [ { "type": "BODY", "text": "Rare black succulents for sale! {{1}}, add...", "example": { "body_text": [ [ "Pablo" ] ] } }, { "type": "CAROUSEL", "cards": [ { "components": [ { "type": "HEADER", "format": "IMAGE", "example": { "header_handle": [ "https://scontent.whatsapp.net/v/t61.29..." ] } }, { "type": "BODY", "text": "Add a touch of..." }, { "type": "BUTTONS", "buttons": [ { "type": "QUICK_REPLY", "text": "Send me more like this!" }, { "type": "URL", "text": "Shop", "url": "https://www.luckyshrub.com/rare-succulents/{{1}}", "example": [ "BLUE_ELF" ] } ] } ] }, ... ] } ], "language": "en_US", "status": "APPROVED", "category": "MARKETING", "id": "1945418102598215" }, ... ], "paging": { "cursors": { "before": "QVFIU...", "after": "QVFIU..." } } }, "id": "9020555671393375" }
Update a template group
Request
curl 'https://graph.facebook.com/<API_VERSION>/<TEMPLATE_GROUP_ID>' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer <ACCESS_TOKEN>' \ -d ' { "name": "<TEMPLATE_GROUP_NAME>", "description": "<TEMPLATE_GROUP_DESCRIPTION>", "add_templates": [ <TEMPLATE_IDS> ], "remove_templates": [ <TEMPLATE_IDS> ] }'
Request parameters
| ||
| | |
| | |
| | |
| | |
| |
Response
{ "success": <SUCCESS> }
Response parameters
| | |
Example request
curl 'https://graph.facebook.com/v25.0/9020555671393375' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer EAAJB...' \
-d '
{
"add_templates": [844006344365270,1188657612184382],
"remove_templates": [1035843174854974]
}'
Example response
{ "success": true }
Delete a template group
Request
curl -X DELETE 'https://graph.facebook.com/<API_VERSION>/<TEMPLATE_GROUP_ID>' \ -H 'Authorization: Bearer <ACCESS_TOKEN>'
Request parameters
| ||
| | |
| |
Response
{ "success": <SUCCESS> }
Response parameters
| | |
Example request
curl -X DELETE 'https://graph.facebook.com/v25.0/9020555671393375' \
-H 'Authorization: Bearer EAAJB...'
Example response
{ "success": true }
Template group analytics
See the Template group analytics document.