Skip to main content
GET
Get Template Metrics

Authorizations

Authorization
string
header
required

Secret key in Bearer sk_... format. Server-to-server only — never embed it in a browser or mobile client. The organization is resolved from the key, so organization_id is never passed explicitly.

Path Parameters

app_id
string
required

Application ID. Must belong to the organization resolved from your secret key, otherwise the request returns 404 with APPLICATION_004.

Example:

"app_7poyXj8GXuv76e"

Query Parameters

templateId
string[]
required

Repeatable: ?templateId=a&templateId=b. Between 1 and 10 IDs per request. Blank values are discarded and duplicates collapsed before the request reaches Meta; more than 10 distinct IDs returns 422 with META_104.

Required array length: 1 - 10 elements
startDate
string<date-time>

ISO-8601 datetime. Start of the range. Defaults to 30 days before today 00:00:00 UTC.

endDate
string<date-time>

ISO-8601 datetime. End of the range; must be greater than startDate, and the total span cannot exceed 90 days. Defaults to today 23:59:59 UTC.

granularity
enum<string>
default:DAILY

Bucket size of the series. DAILY is the only value Meta exposes for template analytics, so this is effectively fixed.

Available options:
DAILY
metricType
enum<string>[]

Repeatable. Omit for the full core set (SENT, DELIVERED, READ, CLICKED, COST). Conversion metrics can be requested explicitly and are surfaced per bucket under additionalMetrics.

Available options:
SENT,
DELIVERED,
READ,
CLICKED,
COST,
APP_ACTIVATIONS,
APP_ADD_TO_CART,
APP_CHECKOUTS_INITIATED,
APP_PURCHASES,
APP_PURCHASES_CONVERSION_VALUE,
WEBSITE_ADD_TO_CART,
WEBSITE_CHECKOUTS_INITIATED,
WEBSITE_PURCHASES,
WEBSITE_PURCHASES_CONVERSION_VALUE
productType
enum<string>

Restricts the result to one messaging product. Omit for all products.

Available options:
CLOUD_API,
MARKETING_MESSAGES_LITE_API
useWabaTimezone
boolean
default:false

When true, Meta buckets the days in the WABA's own timezone instead of UTC. The applied choice is echoed back as usesWabaTimezone.

Response

Range metadata, an overall summary, and one entry per requested template — in the order you sent them. A template with no data is still returned, with a zeroed summary and a fully gap-filled series.

data
object
isSuccess
enum<boolean>
Available options:
true