For the complete documentation index, see llms.txt. This page is also available as Markdown.

Templates

Endpoints for managing WhatsApp message templates

Get Message Template Library

get

Retrieve message templates from the template library for a WABA.

Authorizations
D360-API-KEYstringRequired

API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.

Responses
200

Template library retrieved successfully

application/json

Response payload containing a list of templates from the library

get/message_template_library

List Message Templates

get

Retrieve message templates. Returns paginated results with template details including status, category, components, and quality scores.

Authorizations
D360-API-KEYstringRequired

API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.

Query parameters
fieldsstringOptional

Comma-separated list of fields to include (e.g. id,name,status,components)

limitintegerOptional

Maximum number of templates to return per page

afterstringOptional

Cursor for the next page of results

beforestringOptional

Cursor for the previous page of results

Responses
200

Templates retrieved successfully

application/json
get/message_templates

Create Message Template

post

Create a new message template. Templates must be approved before they can be used to send messages. Supports cloning from the Meta Template Library.

Authorizations
D360-API-KEYstringRequired

API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.

Body

Message template payload

allow_category_changebooleanOptional
categorystringOptionalExample: UTILITY
cta_url_link_tracking_opted_outbooleanOptional
display_formatstringOptionalExample: ORDER_DETAILS
is_primary_device_delivery_onlybooleanOptional
languagestringOptionalExample: en_US
library_template_namestringOptionalExample: welcome_template
message_send_ttl_secondsintegerOptional
namestringOptionalExample: order_update
parameter_formatstringOptionalExample: POSITIONAL
send_typestringOptionalExample: direct
sub_categorystringOptionalExample: ORDER_STATUS
Responses
200

Template created successfully

application/json
categorystringOptionalExample: UTILITY
idstringOptionalExample: {hsm-id}
statusstringOptionalExample: APPROVED
post/message_templates

Delete Message Templates

delete

Delete message templates. Can delete by name (all languages), by specific template ID, or by multiple template IDs.

Authorizations
D360-API-KEYstringRequired

API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.

Query parameters
namestringOptional

Template name to delete (deletes all languages if hsm_id not specified)

hsm_idstringOptional

Specific template ID to delete (used with name for single-language deletion)

hsm_idsstringOptional

JSON array of template IDs to delete (max 100)

Responses
200

Templates deleted successfully

application/json
successbooleanOptionalExample: true
delete/message_templates

Archive Message Templates

post

Archive one or more message templates for a WABA. Only approved or rejected templates can be archived. Archived templates are scheduled for deletion after 28 days.

Authorizations
D360-API-KEYstringRequired

API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.

Body

Template IDs to archive (up to 100)

hsm_idsstring[]OptionalExample: ["1368161468357453"]
Responses
200

Archive operation result

application/json
archived_templatesstring[]OptionalExample: ["1368161468357453"]
post/message_templates/archive

Unarchive Message Templates

post

Unarchive one or more archived message templates for a WABA within the 28-day window. Restores templates to their previous status (defaults to APPROVED if no previous status is available). Resets the inactivity clock.

Authorizations
D360-API-KEYstringRequired

API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.

Body

Template IDs to unarchive (up to 100)

hsm_idsstring[]OptionalExample: ["1368161468357453"]
Responses
200

Unarchive operation result

application/json
unarchived_templatesstring[]OptionalExample: ["1368161468357453"]
post/message_templates/unarchive

Get Message Template by ID

get

Retrieve a specific message template by its ID with all available fields.

Authorizations
D360-API-KEYstringRequired

API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.

Path parameters
template_idstringRequired

Message template ID

Query parameters
fieldsstringOptional

Comma-separated list of fields to include (e.g. id,name,status,components)

Responses
200

Template retrieved successfully

application/json
ad_account_idstringOptional
ad_adset_idstringOptional
ad_campaign_idstringOptional
ad_idstringOptional
categorystringOptionalExample: UTILITY
correct_categorystringOptionalExample: UTILITY
cta_url_link_tracking_opted_outbooleanOptional
display_formatstringOptionalExample: ORDER_DETAILS
idstringOptionalExample: 123456789
is_primary_device_delivery_onlybooleanOptional
is_sms_fallback_enabledbooleanOptional
languagestringOptionalExample: en_US
last_updated_timeintegerOptional
library_template_namestringOptionalExample: welcome_template
message_send_ttl_secondsintegerOptional
namestringOptionalExample: order_update
parameter_formatstringOptionalExample: POSITIONAL
previous_categorystringOptionalExample: MARKETING
rejected_reasonstringOptionalExample: NONE
sourcestringOptionalExample: manual
statusstringOptionalExample: APPROVED
sub_categorystringOptionalExample: ORDER_STATUS
get/message_templates/{template_id}

Edit Message Template

post

Update an existing message template. Only approved or rejected templates can be edited.

Authorizations
D360-API-KEYstringRequired

API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.

Path parameters
template_idstringRequired

Message template ID to edit

Body

Updated template fields

allow_category_changebooleanOptional
categorystringOptionalExample: UTILITY
cta_url_link_tracking_opted_outbooleanOptional
display_formatstringOptionalExample: ORDER_DETAILS
is_primary_device_delivery_onlybooleanOptional
message_send_ttl_secondsintegerOptional
parameter_formatstringOptionalExample: POSITIONAL
sub_categorystringOptionalExample: ORDER_STATUS
Responses
200

Template updated successfully

application/json
successbooleanOptionalExample: true
post/message_templates/{template_id}

Compare Message Templates

get

Compare two message templates by block rate, message send volume, and top block reason. Both templates must be in the same WhatsApp Business account and must have been sent at least 1,000 times in the specified timeframe. Lookback windows are limited to 7, 30, 60, and 90 days.

Authorizations
D360-API-KEYstringRequired

API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.

Path parameters
template_idstringRequired

ID of the target WhatsApp Message Template

Query parameters
template_idsstringRequired

JSON array with the ID of the template to compare against (e.g. [1533406637136032])

startintegerRequired

UNIX timestamp for the start of the comparison timeframe

endintegerRequired

UNIX timestamp for the end of the comparison timeframe

Responses
200

Comparison results including block rate, send volume, and top block reason

application/json

Response payload for Meta's Template Comparison API

get/message_templates/{template_id}/compare
Deprecated

Get Templates

get

Deprecated: use GET /message_templates instead.

Authorizations
D360-API-KEYstringRequired

API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.

Responses
200

Templates retrieved successfully

application/json
objectOptional
get/v1/configs/templates
Deprecated

Create Template

post

Deprecated: use POST /message_templates instead

Authorizations
D360-API-KEYstringRequired

API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.

Body
objectOptional
Responses
200

Template created successfully

application/json
objectOptional
post/v1/configs/templates
Deprecated

Delete Template

delete

Deprecated: use DELETE /message_templates instead

Authorizations
D360-API-KEYstringRequired

API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.

Path parameters
template_namestringRequired

Template name

Query parameters
external_idstringOptional

Template id on Meta. If specified, name is ignored. Example: 1423298775400

idstringOptional

Template id on HUB. If specified, name and external_id are ignored. Example: exampleWT

Responses
200

Template deleted successfully

application/json
objectOptional
delete/v1/configs/templates/{template_name}
Deprecated

Update WhatsApp Message Template

post

Deprecated: use POST /message_templates/{template_id} instead

Authorizations
D360-API-KEYstringRequired

API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.

Path parameters
whats_app_message_template_idstringRequired

WhatsApp Message Template ID

Body
objectOptional
Responses
200

Template updated successfully

application/json
objectOptional
post/v1/configs/templates/{whats_app_message_template_id}
Deprecated

Compare Template

get

Deprecated: use GET /message_templates/:template_id/compare instead.

Authorizations
D360-API-KEYstringRequired

API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.

Path parameters
template_idstringRequired

Template ID

Responses
200

Template comparison completed successfully

application/json

Response payload containing template comparison results

categorystringOptionalExample: UTILITY
idstringOptionalExample: 594425479261596
languagestringOptionalExample: en_US
namestringOptionalExample: order_confirmation
statusstringOptionalExample: APPROVED
get/{template_id}/compare

Last updated

Was this helpful?