WhatsApp error 200007: Template Insights not enabled
Last verified against Meta for Developers - Cloud API error codes
Template Insights have not been enabled for this WhatsApp Business AccountWhat error 200007 means
Code 200007 is what you get when you query template analytics on a WhatsApp Business Account that never confirmed them. The template_analytics data is only collected after confirmation, so the API refuses the query rather than returning empty numbers.
Meta's fix points to the analytics guide's section on confirming template analytics: confirm in WhatsApp Manager or with POST /<WABA_ID>?is_enabled_for_insights=true. After confirmation the API begins capturing template analytics from that point on; there is no documented backfill of earlier sends. Data is returned at daily granularity with a lookback of up to 90 days, and read and click counts are only tracked for up to 7 days after a message is sent.
Before confirming, note that the decision cannot be reversed (see 200006).
What it looks like
GET https://graph.facebook.com/v23.0/<WABA_ID>/template_analytics?start=1718064000&end=1718122745&granularity=daily&template_ids=[1421988012088524]
(fails with 200007 until insights are confirmed on the account)Why it happens
- Querying
template_analyticson a WABA where insights were never confirmed. - A reporting job pointed at a new client WABA before onboarding finished.
- Assuming insights confirmed on one WABA apply to every WABA in the portfolio.
How to fix WhatsApp error 200007
- 1Confirm with the account owner that enabling insights is acceptable, since it is permanent.
- 2Enable with
POST /<WABA_ID>?is_enabled_for_insights=trueor in WhatsApp Manager. - 3Wait for new sends to accumulate before expecting data; earlier messages are not counted.
- 4Retry the analytics query with your template IDs and a time range after enablement.
How to stop it recurring
Make insights confirmation an explicit onboarding step per WABA, with owner approval recorded, and have reporting jobs check that state before querying. Show a clear prompt in your dashboard when analytics are off instead of letting scheduled jobs fail every night.
Official reference: Meta for Developers - Cloud API error codes. See all WhatsApp error codes or the WhatsApp limits and quotas.
Related codes
- 200005: Template insights unavailableTemplate insights are not available yet for this Messaging account.
- 200006: Cannot disable template insightsInvalid operation. Template Insights cannot be disabled once enabled.
- 2388019: Message Template Limit ExceededYou have exceeded the maximum number of message templates you can have for…
Error 200007 - quick answers
What does WhatsApp error 200007 mean?
Code 200007 is what you get when you query template analytics on a WhatsApp Business Account that never confirmed them. The template_analytics data is only collected after confirmation, so the API refuses the query rather than returning empty numbers. Meta's fix points to the analytics guide's section on confirming template analytics: confirm in WhatsApp Manager or with POST /<WABA_ID>?is_enabled_for_insights=true .
How do I fix WhatsApp error 200007?
1. Confirm with the account owner that enabling insights is acceptable, since it is permanent. 2. Enable with POST /<WABA_ID>?is_enabled_for_insights=true or in WhatsApp Manager. 3. Wait for new sends to accumulate before expecting data; earlier messages are not counted. 4. Retry the analytics query with your template IDs and a time range after enablement.
Stop debugging WhatsApp by hand
Connect the channel through Conferbot: tokens, webhooks and retries are handled, failures show as readable status.