Skip to Content
Docs

Return run count, failures, tokens and latest failure for an agent

GET
/api/agents/{agent_id}/schedules/stats

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.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Path Parameters

agent_id*string

Query Parameters

days?string

Window in days (default 30, clamped to 1..365)

Response Body

Success

Example Request
curl -X GET 'http://localhost:7091/api/agents/string/schedules/stats'
Example Response200
Empty