Skip to main content
GET
Returns a per-day request-count breakdown for a given key environment — useful for rendering a usage trend chart. Lives on the regular Scanova API host (qcg-api.scanova.io), authenticated with your dashboard OAuth access token.

Request

string
required
One of sandbox, live, zapier, mcp. Selects which keys’ logs to aggregate.
integer
default:"30"
Number of trailing days to include, clamped to the range 1365.

Response fields

The response is an array with exactly days entries, one per calendar day, oldest first.
string
ISO 8601 date (YYYY-MM-DD).
integer
Total requests logged that day.
integer
Requests that returned a status code below 400.
integer
Requests that returned a status code of 400 or above.
Days with no traffic are zero-filled rather than omitted, so the array’s length is always exactly days and safe to chart directly without gap-filling client-side.

Errors

environment is required, same validation as Usage statistics. A non-integer days returns:
400 Bad Request
  • Usage statistics — the same request totals as a single rolling-window figure instead of a per-day series.
  • Usage by endpoint — the same traffic broken out by route and method instead of by day.
  • Management API overview — the environment values (sandbox, live, zapier, mcp) this endpoint aggregates by.

Authorizations

Authorization
string
header
required

Send your Management API key as the raw value of the Authorization header — no "Bearer " or "Token " prefix, and no other characters. Example: Authorization: 401f7ac837da42b97f613d789819ff93537bee6a. A header containing more than one space-separated part is rejected outright. Requests also require the request's Host header to be the management API host (e.g. management.scanova.io) — the same key sent to the regular API host will not authenticate.

Query Parameters

environment
string
required
days
integer

Response

200

Per-day usage