Return run count, failures, tokens and latest failure for an agent
GET
Run stats for an agent's schedules over a recent window. Args: agent_id: Agent id from the URL.
Returns:
A Flask response with days, runs, failed, tokens
and latest_failure (or an error envelope).
Personal access token scope: schedules:read.
bearerheader
AuthorizationBearer <token>A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).
agent_id*stringdays?stringWindow in days (default 30, clamped to 1..365)
Success
curl -X GET 'http://localhost:7091/api/agents/string/schedules/stats'Example Response200
Empty
Cancel / delete a schedule DELETE
Cancel / delete a schedule. [Personal access token](/API/personal-access-tokens) scope: `schedules:write`.
List schedules for an agent (recurring + one-time) GET
List schedules for an agent (recurring + one-time). [Personal access token](/API/personal-access-tokens) scope: `schedules:read`.