WhatsApp API errors 200005, 200006 and 200007: template insights
These three codes all concern template insights, the per-template analytics Meta can provide for a WhatsApp Business Account. Each describes a different state of that feature.
Quick answer
200007 means insights aren't enabled, so enable them. 200005 means they aren't available for the account yet. 200006 means you tried to disable them, which isn't possible once they're on.What WhatsApp error 200007 means
Meta documents 200005 as: template insights are not available yet for this messaging account. 200006 as: invalid operation, template insights cannot be disabled once enabled. And 200007 as: template insights have not been enabled for this WhatsApp Business Account, with a pointer to how to enable template analytics.
Why error 200007 happens
Meta checks a template when you create or change it, and these errors say which rule it broke. The usual reasons:
- Requesting template analytics before turning insights on for the account (200007).
- An account that isn't offered template insights yet (200005).
- A settings change or script that tries to switch insights off (200006).
How to fix error 200007
Work through these in order; the first one that turns up a problem is usually the fix.
- For 200007, enable template analytics for the account, then request the data again.
- For 200005, there's nothing to fix on your side yet; check again later.
- For 200006, leave insights on; remove any code that tries to disable them.
- Make reporting code handle the case where insights aren't available, so dashboards don't break.
Should you retry after 200007?
After 200007, retry once insights are enabled. After 200005 retry later. Don't retry 200006: disabling isn't possible.
How error 200007 shows up in InfiQ
Error 200007 comes from a set-up call, not a message send: creating or changing a template, registering a number or onboarding an account. InfiQ's template endpoints return Meta's error object for it with an InfiQ_traceid; for number registration and onboarding, which InfiQ's team runs with you, share the code and the details text with support.
Frequently asked questions
Can I turn template insights off?+
Why are template insights unavailable for my account?+
Do template insights affect message delivery?+
Where do I enable template insights?+
Build templates that pass review first time
Create and submit templates from InfiQ, with the approved list and each template's status in one place.