Returns hourly action counts from `mac_actions` for a given date. Always returns exactly 24 entries (one per hour), with 0 for hours without activity. Used by the timeline component to shade hour blocks by activity level
GET /api/map/density
Auto-generated from server.go. Handler: s.mapHandlers.HandleDensity.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Successful response
Returns hourly action counts from mac_actions for a given date. Always returns exactly 24 entries (one per hour), with 0 for hours without activity. Used by the timeline component to shade hour blocks by activity level.
Lifted by tools/schema-lift on 2026-05-16 from a live sample of GET /api/map/density against the demo. Required fields are conservative — server returned all of them in the seed; relax to optional if some states legitimately omit.
object
object
Authentication is required or the supplied token is invalid.
Standardised error envelope per RFC 7807. Many existing endpoints still
return an older shape (e.g. {"error": "..."}). This schema documents the
target shape; legacy endpoints will be migrated in Phase 70. Per D-21 the
spec describes current behaviour without enforcing the migration here.
object
A URI reference that identifies the problem type.
A short human-readable summary of the problem.
The HTTP status code generated by the origin server.
A human-readable explanation specific to this occurrence.
A URI reference that identifies the specific occurrence.
Legacy error message field. Will be removed once handlers are migrated.
Legacy per-field error details. Will be removed once handlers are migrated.
object
The request id middleware-assigned identifier for tracing.
Internal server error
Standardised error envelope per RFC 7807. Many existing endpoints still
return an older shape (e.g. {"error": "..."}). This schema documents the
target shape; legacy endpoints will be migrated in Phase 70. Per D-21 the
spec describes current behaviour without enforcing the migration here.
object
A URI reference that identifies the problem type.
A short human-readable summary of the problem.
The HTTP status code generated by the origin server.
A human-readable explanation specific to this occurrence.
A URI reference that identifies the specific occurrence.
Legacy error message field. Will be removed once handlers are migrated.
Legacy per-field error details. Will be removed once handlers are migrated.
object
The request id middleware-assigned identifier for tracing.