Schedules

List Schedules

Scheduler prerequisites

Configure an AgentOS-level database with schedule methods. The example scheduler server uses SQLite. Database-backed schedule CRUD is available without starting the scheduler; execution requires scheduler=True, a running application lifespan and a scheduler_base_url matching the server's address.

Owners come from authenticated identity. Configured authorization uses schedules:read, schedules:write and schedules:delete. Creating, repointing, enabling or triggering a run schedule also requires permission to run its target. Non-run targets require admin permission when that authorization is enforced. An inaccessible record can return 404; insufficient permission returns 403.

The result contains data and pagination meta. Use the enabled filter to select active or disabled schedules. Listing stored schedules does not establish that the scheduler's application lifespan is running.

GET/schedules

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Query Parameters

enabled?boolean|null
limit?Limit
Range1 <= value <= 1000
Default100
page?Page
Range1 <= value
Default1

Response Body

application/json

application/json

curl --request GET 'https://example.com/schedules'
{  "data": [    {      "id": "string",      "user_id": "string",      "name": "string",      "description": "string",      "method": "string",      "endpoint": "string",      "payload": {},      "cron_expr": "string",      "timezone": "string",      "timeout_seconds": 0,      "max_retries": 0,      "retry_delay_seconds": 0,      "enabled": true,      "next_run_at": 0,      "managed_by": "string",      "target_type": "string",      "target_id": "string",      "disabled_reason": "string",      "created_at": 0,      "updated_at": 0    }  ],  "meta": {    "page": 0,    "limit": 20,    "total_pages": 0,    "total_count": 0,    "search_time_ms": 0  }}