GET /limits/{id}
Where each limited trigger of a macro stands: how many times it has run this period, whether it is cooling down.
Details #
Returns a list with one row for each trigger of the macro that has a Limits block: index (the trigger's place in when), line (the words the inspector shows, such as "Fired 2 of 3 times today · cooling down for 40 s"), occurrence (all-time runs), timesCount, timesMax and period when the block has times, cooldownLeft in seconds while cooling down, and lastRun (seconds since 1970).
curl -s -H "Authorization: Bearer $TOKEN" http://127.0.0.1:48080/limits/<macro id>
Parameters #
curl --unix-socket "$SWITCHBOARD_HOME/engine.sock" -X GET http://localhost/limits/{id}
Where each limited trigger of a macro stands: runs this period, cooldown left. The Unix socket needs no token; loopback 127.0.0.1:48080 needs Authorization: Bearer <api-token>.