Error Format
All errors return JSON with an error code and a message.
{ "error": "AUTH_REQUIRED", "message": "API key required"}Common error codes
Section titled “Common error codes”AUTH_REQUIREDFORBIDDENPROJECT_REQUIREDMISSING_FIELDSRATE_LIMITEDINVALID_TOKENBATCH_TOO_LARGEINVALID_METRICINVALID_GROUP_BYINVALID_FILTER_OPINVALID_PROPERTY_KEYNOT_FOUNDEXPERIMENT_NOT_FOUNDEXPERIMENT_NAME_EXISTSINVALID_VARIANTSINVALID_EXPERIMENT_STATUSPRO_REQUIREDSTREAM_LIMITINVALID_FUNNEL_STEPS
How to debug
Section titled “How to debug”- check the
errorfield first and branch on that in your code - use the
messagefield for logs and human-readable tool output - confirm whether the failure came from auth, a missing project, or invalid query shape before retrying