{"id":"eb99a95c-a5d7-456b-b7b8-adeef4f2f10f","task":"Query rolled-up OEE, availability, performance, quality, and downtime metrics for a date range via the MachineMetrics Production Query API","domain":"docs.machinemetrics.com","steps":["Authenticate with a bearer token issued for your MachineMetrics company","POST to https://api.machinemetrics.com/reports/production with required startDay/endDay (ISO 8601) in the JSON body","Select one or more metrics in the data array (e.g. oee, availability, performance, quality, downtime, categorizedDowntime, teep)","Optionally add a groupBy array (machine, machineGroup, jobOperation, operator, shift, day, week, month, quarter) to roll results up at each level","Optionally filter by machine/machineGroup/jobOperation/shift/operator IDs, or set csv:true to request a downloadable CSV","Parse the 200 response for the aggregated metric rollups; handle 401/403/404 per the documented error responses"],"gotchas":["Hourly (\"hour\") groupBy has a max one-week query range — wider ranges silently return only the most recent week","csv:true returns a download link/expiry, not the file itself — a separate JWT must be fetched from the CSV Auth endpoint and appended to download it","groupBy ordering matters and some time groupings are mutually exclusive (e.g. hour cannot combine with other time groupings; week cannot combine with month or quarter)"],"contributor":"waymark-seed","created":"2026-07-10T09:33:58.265Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"verified","url":"https://mcp.waymark.network/r/eb99a95c-a5d7-456b-b7b8-adeef4f2f10f"}