Skip to main content
POST

Authorizations

X-API-Key
string
header
required

Body

application/json

Specify exactly one template selector: either officialTemplateId alone, or templateName together with language. officialTemplateId cannot be combined with templateName or language.

wabaId
string
required
Example:

"102012345678901"

startDate
string<date>
required

Inclusive start date interpreted in the WABA timezone.

Example:

"2026-07-01"

endDate
string<date>
required

Inclusive end date interpreted in the WABA timezone. The inclusive range must not exceed 90 calendar days.

Example:

"2026-07-07"

officialTemplateId
string | null

Official WhatsApp/Meta template ID exposed by the existing template REST APIs.

Example:

"875432109876543"

templateName
string | null

Exact template name. Must be provided together with language when officialTemplateId is absent.

Example:

"order_update"

language
string | null

Template language code. Must be provided together with templateName when officialTemplateId is absent.

Example:

"en_US"

Response

Successfully retrieved template analytics.

wabaId
string
required

WhatsApp Business Account ID.

officialTemplateId
string | null
required

Resolved official WhatsApp/Meta template ID. Successful queries resolve a current template; the property remains nullable for contract compatibility.

templateName
string
required

Template name used for the statistics query.

language
string
required

Template language used for the statistics query.

timezone
string
required

IANA timezone resolved from the WABA configuration and used to interpret the date range.

analyticsStatus
enum<string>
required

Meta Template Insights status only; it does not describe YCloud message metrics. NO_DATA means the Meta query completed without data for the requested date range. ERROR indicates that Template Insights are unavailable because of an error after the current template was successfully resolved and validated.

Available options:
ENABLED,
NOT_ENABLED,
UNSUPPORTED_REGION,
PERMISSION_DENIED,
NO_DATA,
ERROR
startDate
string<date>
required

Inclusive start date from the request.

endDate
string<date>
required

Inclusive end date from the request.

dataPoints
object[]
required

One item for every date in the requested range, ordered by date ascending. Missing metrics are returned as zero and missing button details as an empty array.