Sonny Labs Docs
Error codes

analytics.invalid_param

A query parameter on an `/v1/analytics/*` endpoint failed validation.

analytics.invalid_param is returned at HTTP 400.

When this fires

Returned by the analytics aggregate endpoints when a query parameter is malformed — for example a limit outside the allowed 1..50 range on /v1/analytics/detectors/top, an unrecognised bucket value (only 15m, 1h, 1d are accepted), or since / until failing to parse as RFC3339 timestamps. Distinct from the generic validation.parameter_invalid so callers can branch on analytics-specific failures.

What to do

Match each parameter to its constraint in the REST API reference under /v1/analytics. The SDKs enforce these client-side; if you are seeing this, you are likely calling the endpoint with a hand-built URL.

See also

  • SDK reference — the Python and TypeScript SDKs raise typed exceptions for codes in this namespace.
  • Error code index — every code the runtime can return.

On this page