# One-time confirmation to enable template analytics for this WABA

Canonical: https://docs.bluehola.com/docs/templates-flows-media/post-v1-templates-analytics-enable
OpenAPI: https://docs.bluehola.com/openapi.yaml

<div class="endpoint"><span class="endpoint-method endpoint-method--post">POST</span><code class="endpoint-path">/v1/templates/analytics/enable</code></div>

A one-time confirmation to enable template analytics for this WABA. **Once enabled it cannot be turned off.**

:::note[Authentication]

Send `Authorization: Bearer <API_KEY>` in the request headers; required scope: `templates:manage`. Which resources an API Key can reach is determined by its current authorization scope.

:::

## Request

Base URL: `https://api.bluehola.com`

### Request body
A request body is required.
### Request body fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `wabaId` | string | Yes | The platform's WABA id (waba_...) |

Content-Type: `application/json`
Schema:

```json
{
  "type": "object",
  "properties": {
    "wabaId": {
      "type": "string",
      "description": "string · required — The platform's WABA id (waba_...)"
    }
  },
  "required": [
    "wabaId"
  ]
}
```

## Response

| Status | Description |
| --- | --- |
| `200` | OK |
| `4xx` | Client error |

### 200 response schema

```json
{
  "$ref": "#/components/schemas/TemplateInsightsEnabled"
}
```

For the common error envelope and how to handle it, see [Error Codes](../guides/error-codes.md).

## Notes

This is a standalone endpoint rather than something turned on as a side effect of a read call: per Meta's own description, confirming enablement means authorizing Meta to collect and anonymize your and your customers' chat data and to track clicks on links inside templates, and **once enabled it cannot be turned off**. A decision like that needs someone to press the button deliberately.

Meta only starts collecting template analytics data for this WABA after it is enabled — meaning **there is no historical data from before enablement**.
