---
title: "List all scheduled tasks (admin only)."
method: GET
path: "/admin/scheduled_tasks"
tags: ["Scheduled Tasks"]
---

# List all scheduled tasks (admin only).

`GET /admin/scheduled_tasks`

## Request

- Base URL: `https://h2ogpte.genai.h2o.ai/api/v1`
- URL: `https://h2ogpte.genai.h2o.ai/api/v1/admin/scheduled_tasks`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/h2o/apis/h2ogpte-rest-api/docs/admin/scheduled_tasks/get.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `offset` integer
- `limit` integer
- `name_filter` string
- `status_filter` string
- `user_filter` string

## Response `200`

OK

- ScheduledTaskList
  - `items` ScheduledTask[]
    - `id` string, uuid
    - `user_id` string, uuid
    - `username` string
    - `name` string
    - `description` string
    - `schedule_type` 'once' | 'recurring' | 'interval'
    - `schedule_expression` string
    - `task_type` 'chat_completion' | 'agent_task'
    - `task_config` object
    - `status` 'active' | 'paused' | 'completed' | 'expired'
    - `execution_status` string: Runtime execution state: idle or running.
    - `last_execution_at` string, date-time, nullable
    - `next_execution_at` string, date-time, nullable
    - `execution_count` integer
    - `max_executions` integer, nullable
    - `expires_at` string, date-time, nullable
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `is_owner` boolean
    - `notification_email` string
  - `total` integer

## Other responses

- `401`: Unauthorized - Invalid or missing API key
- `403`: Forbidden
- `default`: Unexpected error

---

[API](https://skmtc.dev/h2o/apis/h2ogpte-rest-api.md) - [All operations](https://skmtc.dev/h2o/apis/h2ogpte-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/h2o/apis/h2ogpte-rest-api/revisions/a82a117320f4?raw)
