Skip to content

Query Range Exceeded

URI: https://docs.ankatech.co/errors/query-range-exceeded
HTTP Status: 400 Bad Request

When you see this

The time range or result window requested for an audit query exceeds the maximum allowed. Narrow the query to stay within the supported bounds.

Common Causes

  • A startTime/endTime window wider than the maximum permitted range.
  • Requesting more results than the endpoint allows in a single query.
  • An unbounded query where bounds are required.

Response Example

{
  "type": "https://docs.ankatech.co/errors/query-range-exceeded",
  "title": "Query Range Exceeded",
  "status": 400,
  "detail": "The requested audit query range exceeds the maximum allowed window.",
  "instance": "/api/v3/audit/tenant/crypto",
  "correlationId": "550e8400-e29b-41d4-a716-446655440000",
  "timestamp": 1730000000
}

Content-Type: application/problem+json — the response follows RFC 7807 Problem Details.

How to Resolve

  1. Reduce the startTime/endTime window to within the documented maximum.
  2. Page through large result sets instead of requesting them all at once.
  3. Split a wide query into several smaller, bounded queries and re-submit.

For full schema definitions, examples, and interactive testing, see the Developer Hub Reference.