GEThttps://api.veriko.mx/v1/usage/heatmap

Validation heatmap by day and hour

Audience
public
Auth
API key
Permission
usage:read_self
How-to guide →

Aggregates the user's validations by day of week and hour of day over the last N days (max 90). Returns only combinations with at least one validation (sparse buckets); the client densifies into a 7×24 grid. day_of_week: 0 = Sunday, 6 = Saturday. hour_of_day: 0–23 server time.

Parameters
ParameterInTypeRequiredDescription
daysqueryintegeroptional

Number of days to include in the heatmap.

Default: 30

e.g. 30
Request
curl -X GET 'https://api.veriko.mx/v1/usage/heatmap' \
  -H 'Authorization: Bearer veriko_••••'

Python example — coming soon.

JavaScript example — coming soon.

PHP example — coming soon.

Response 200GetUsageHeatmapResponse — Sparse heatmap buckets with count per day×hour combination.
FieldTypeDescription
dataobject

Main response payload. Shape varies by endpoint (object, array, or JSON:API envelope with type, id, attributes).

typestring

JSON:API discriminator. Always usage_heatmap.

e.g. usage_heatmap
attributesobject

Usage density by (day-of-week, hour-of-day) over the queried window.

daysinteger

Heatmap window in days (typically 30 or 90).

e.g. 30
max_countinteger

Maximum count value across all cells; useful for scaling color intensity in the UI.

e.g. 48
bucketsarray

Heatmap cells; each entry is a (day_of_week, hour_of_day) combination with its count.

metaobject

Response metadata including API version, route prefix, unique request identifier, and the server timestamp in UTC.

versionstring

API version that processed the request.

e.g. 1.47.0
api_versionstring

API route prefix version (e.g. v1).

e.g. v1
request_idstring

Unique request identifier (hex).

e.g. a1b2c3d4e5f6
datetimeobject

Companion descriptor present in every response's meta block (and in outgoing webhook payloads). Lets clients assert the timezone contract without re-reading the spec.

e.g. {"timezone":"UTC","format":"ISO 8601"}
timezone*string

Always UTC — the canonical timezone for every datetime field in the body.

e.g. UTC
format*string

Always ISO 8601 — explicit Z suffix on every datetime.

e.g. ISO 8601
linksobject

Pagination or related links, present only when the endpoint returns a paginated collection.

Response status codesGET /v1/usage/heatmap
StatusClassDescriptionBody
2002xxSparse heatmap buckets with count per day×hour combination.GetUsageHeatmapResponse
4014xxAuthentication is required or the provided credentials are invalid.ErrorResponse
4034xxInsufficient permissions.ErrorResponse
Errors from GET /v1/usage/heatmap
StatusCodeExample
401unauthorized

Invalid or missing authentication credentials.

Envelope
meta.request_id
c4d5e6f7a8b9
403forbidden

You do not have permission to access this resource.

Envelope
meta.request_id
d5e6f7a8b9c0