Get maintenance request counts
Returns how many of the company's maintenance requests sit in each state, for a dashboard tile. The numbers are cached for 15 minutes, so a request you just filed may not be counted yet — cacheDate tells you when they were taken. Requires the maintenance_requests:read permission.
Authorization
AuthorizationstringrequiredBearer token — Send your API token in the Authorization header as Bearer <token>. Requests without a valid token are rejected with 401 Unauthorized.
Response
200 · The counts.
allOpenintegerrequiredRequests in any state other than closed.
newRequestsintegerrequiredRequests that are not closed and were filed inside the company's recent-requests window.
waitingForWorkOrderintegerrequiredRequests triaged but with no job scheduled yet.
aiProcessingintegerrequiredRequests MagicDoor is still reading.
inProgressintegerrequiredRequests being worked on.
pendingintegerrequiredRequests waiting to be looked at.
closedintegerrequiredRequests that are closed.
cacheDatestring · date-timerequiredWhen these numbers were counted. Unlike most timestamps in this API, this one carries a UTC offset.