https://api.veriko.mx/v1/usage/heatmap Validation heatmap by day and hour
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.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
days | query | integer | optional | Number of days to include in the heatmap. Default: |
curl -X GET 'https://api.veriko.mx/v1/usage/heatmap' \
-H 'Authorization: Bearer mxcep_••••'
Python example — coming soon.
JavaScript example — coming soon.
PHP example — coming soon.
| Field | Type | Description |
|---|---|---|
type | string | JSON:API discriminator. Always `usage_heatmap`. |
attributes | object | Usage density by (day-of-week, hour-of-day) over the queried window. |
days | integer | Heatmap window in days (typically 30 or 90). |
max_count | integer | Maximum `count` value across all cells; useful for scaling color intensity in the UI. |
buckets | array | Heatmap cells; each entry is a (day_of_week, hour_of_day) combination with its count. |
| Status | Class | Description | Body |
|---|---|---|---|
| 200 | 2xx | Sparse heatmap buckets with count per day×hour combination. | GetUsageHeatmapResponse |
| 401 | 4xx | Authentication is required or the provided credentials are invalid. | ErrorResponse |
| 403 | 4xx | Permisos insuficientes | ErrorResponse |
| Status | Code | Detail |
|---|---|---|
| 401 | unauthorized | Invalid or missing authentication credentials. Envelope
|
| 403 | forbidden | You do not have permission to access this resource. Envelope
|