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 →

Returns the user's validations grouped by day of week and hour of day, over the last days days (max 90).

Only combinations with at least one validation are returned: the client fills in the 7×24 grid with the missing cells at zero.

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 — Heatmap data grouped by day and hour, with the number of records in each interval.
FieldTypeDescription
dataobject

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

typestring

JSON:API resource type. Always usage_heatmap.

e.g. usage_heatmap
attributesobject

Heatmap data: the window in days, the maximum value, and the cells.

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 when rendering.

e.g. 48
bucketsarray

Map 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. a1b2c3d4e5f66f5e4d3c2b1a
datetimeobject

Companion descriptor present in the meta block of every response (and in the meta of outgoing webhook bodies). 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
2002xxHeatmap data grouped by day and hour, with the number of records in each interval.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
c4d5e6f7a8b99b8a7f6e5d4c
403permission_denied

You do not have permission to access this resource.

Envelope
meta.request_id
d5e6f7a8b9c00c9b8a7f6e5d