Marketing Messages

Endpoints for marketing message features

Get Dataset Quality

get

Retrieve dataset quality metrics and validation status for conversion tracking. Use the fields parameter to select specific metrics (e.g. web{event_match_quality,event_name}).

Authorizations
D360-API-KEYstringRequired

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

Query parameters
dataset_idstringRequired

Dataset (Pixel) ID to retrieve quality metrics for

agent_namestringOptional

Partner agent name to filter quality data by integration source

fieldsstringOptional

Fields to return, e.g. web{event_match_quality{composite_score,match_key_feedback{identifier,coverage}},event_coverage,dedupe_key_feedback,data_freshness,acr,event_name}

Responses
chevron-right
200

Dataset quality retrieved successfully

application/json

Response payload containing dataset quality metrics grouped by event source (web, etc.). Use the fields query parameter to select which metrics to return.

get
/marketing/dataset_quality

Send Marketing Message (Alternative Route)

post

Alternative route for sending marketing messages via /marketing/marketing_messages endpoint. Used for template-based marketing messages.

Authorizations
D360-API-KEYstringRequired

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

Body
objectOptional
or
Responses
chevron-right
200

Marketing message sent successfully

application/json

Response payload for a successfully sent marketing message

messaging_productstringOptionalExample: whatsapp
post
/marketing/marketing_messages

Get Message Templates

get

Retrieve list of WhatsApp message templates for a WhatsApp Business Account.

Authorizations
D360-API-KEYstringRequired

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

Responses
chevron-right
200

Templates retrieved successfully

application/json

Response payload containing a paginated list of message templates for a WABA

get
/marketing/message_templates

Get Template Analytics

get

Retrieve analytics data for message templates including delivery and engagement metrics.

Authorizations
D360-API-KEYstringRequired

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

Body
objectOptional
Responses
chevron-right
200

Template analytics retrieved successfully

application/json

Response payload containing template analytics data

idstringOptionalExample: 1234567890
get
/marketing/template_analytics

Enable Template Analytics

post

Enable analytics tracking for message templates. Requires enable=true query parameter.

Authorizations
D360-API-KEYstringRequired

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

Query parameters
enablestringRequired

Must be 'true' to enable analytics

Body
objectOptional
Responses
chevron-right
200

Template analytics enabled successfully

application/json

Response payload for successful analytics enablement

successbooleanOptionalExample: true
post
/marketing/template_analytics

Get Ad Object Insights

get

Retrieve insights and analytics data for a specific ad object (ad account, campaign, ad set, or ad). Returns performance metrics such as impressions, reach, spend, actions, and more.

Authorizations
D360-API-KEYstringRequired

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

Path parameters
ad_object_idstringRequired

Ad object ID (ad account, campaign, ad set, or ad)

Query parameters
fieldsstringOptional

Comma-separated list of fields to return, e.g. impressions,reach,spend,actions

date_presetstringOptional

Predefined date range, e.g. today, yesterday, last_7d, last_30d, lifetime

time_rangestringOptional

JSON time range object, e.g. {\

levelstringOptional

Aggregate level: account, campaign, adset, ad

filteringstringOptional

JSON array of filter objects, e.g. [{\

sortstringOptional

Sort order, e.g. reach_descending, impressions_ascending

breakdownsstringOptional

Comma-separated breakdowns, e.g. age,gender,country

action_breakdownsstringOptional

Comma-separated action breakdowns, e.g. action_type,action_device

action_attribution_windowsstringOptional

JSON array of attribution windows, e.g. ['1d_click','7d_click','1d_view']

use_unified_attribution_settingbooleanOptional

Use ad-set-level attribution settings to match Ads Manager behavior

limitintegerOptional

Maximum number of results to return

Responses
chevron-right
200

Ad object insights retrieved successfully

application/json

Response payload containing ad object analytics and insights data. Fields in each entry depend on the fields query parameter.

get
/marketing/{ad_object_id}/insights

Get Conversion Dataset

get

Retrieve conversion dataset information for a Meta node (business account).

Authorizations
D360-API-KEYstringRequired

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

Path parameters
meta_node_idstringRequired

Meta node ID

Responses
chevron-right
200

Conversion dataset retrieved successfully

application/json

Response payload for conversion dataset operations. The returned id is the dataset_id used for sending events via the Conversions API.

idstringOptionalExample: 1234567890
namestringOptionalExample: my_dataset
get
/marketing/{meta_node_id}/dataset

Post Conversion Dataset

post

Create or retrieve a conversion dataset for business messaging. Use the relevant business account ID as meta_node_id (e.g., WhatsApp Business Account ID).

Authorizations
D360-API-KEYstringRequired

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

Path parameters
meta_node_idstringRequired

Meta node ID

Body
objectOptional
or
Responses
chevron-right
200

Conversion dataset posted successfully

application/json

Response payload for conversion dataset operations. The returned id is the dataset_id used for sending events via the Conversions API.

idstringOptionalExample: 1234567890
namestringOptionalExample: my_dataset
post
/marketing/{meta_node_id}/dataset

Post Conversion Events

post

Send Conversions API events for business messaging using a dataset ID. Include data with event_name, event_time, action_source=business_messaging, messaging_channel, and user_data (for WhatsApp include whatsapp_business_account_id and ctwa_clid).

Authorizations
D360-API-KEYstringRequired

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

Path parameters
meta_node_idstringRequired

Meta node ID

Body
objectOptional
or
Responses
chevron-right
200

Conversion events posted successfully

application/json

Response payload for successfully posted conversion events

events_receivedintegerOptionalExample: 2
fbtrace_idstringOptionalExample: AbCdEfGhIjK
messagesstring[]Optional
post
/marketing/{meta_node_id}/events

Get Message Template

get

Retrieve a specific WhatsApp message template by template ID.

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
chevron-right
200

Template retrieved successfully

application/json

Response payload containing template details

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

Send Marketing Message

post

Send a marketing message via the marketing messages endpoint. Used for template-based marketing messages.

Authorizations
D360-API-KEYstringRequired

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

Body
objectOptional
or
Responses
chevron-right
200

Marketing message sent successfully

application/json

Response payload for a successfully sent marketing message

messaging_productstringOptionalExample: whatsapp
post
/marketing_messages

Last updated

Was this helpful?