---
title: "Get Template Analytics for a template"
method: GET
path: "/partner/app/{appId}/template/analytics"
tags: ["Template Analytics"]
---

# Get Template Analytics for a template

`GET /partner/app/{appId}/template/analytics`

This API endpoint retrieves analytics data for WhatsApp message templates. It provides insights into template performance including messages sent, delivered, read, and button clicks with flexible time ranges and granularity options.

## Path parameters

- `appId` string, required

## Query parameters

- `start` integer, required
- `end` integer, required
- `granularity` string
- `metric_types` string
- `template_ids` string, required
- `limit` integer, required

## Headers

- `token` string, required

## Response `200`

Successful response

- object
  - `status` string
  - `template_analytics` object[]
    - `delivered` integer
    - `end` integer
    - `read` integer
    - `sent` integer
    - `start` integer
    - `template_id` string

## Other responses

- `400` — Bad request
- `403` — Forbidden
- `500` — Internal server error

---

[API](https://skmtc.net/gupshup/apis/partner-portal-public-apis.md) · [All operations](https://skmtc.net/gupshup/apis/partner-portal-public-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gupshup/partner-portal-public-apis/revisions/1846573c8f87/schema)
