---
title: "List schedules"
method: GET
path: "/api/experimental/schedule"
tags: ["experimental"]
---

# List schedules

`GET /api/experimental/schedule`

## Request

- Base URL: `https://opencode.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://opencode.ai/api/experimental/schedule`
- Auth: none required

List a Session's schedules, oldest first. Experimental: needs experimental.schedules in the Session's config and may change without notice.

## Query parameters

- `sessionID` string, required

## Response `200`

Success

- object
  - `data` ScheduleInfo[], required
    - `id` string, required
    - `sessionID` string
    - `name` string
    - `when` union, required
      - ScheduleWhenIn
        - `type` 'in', required
        - `in` string, required: A duration such as "90 seconds", "5 minutes" or "2 hours".
        - `tz` string
      - ScheduleWhenAt
        - `type` 'at', required
        - `at` string, required
        - `tz` string
      - ScheduleWhenEvery
        - `type` 'every', required
        - `every` string, required: A duration such as "90 seconds", "5 minutes" or "2 hours".
        - `tz` string
      - ScheduleWhenCron
        - `type` 'cron', required
        - `cron` string, required
        - `tz` string
    - `tz` string, required
    - `action` ScheduleAction, required
      - `type` 'prompt', required
      - `prompt` string, required
    - `status` 'active' | 'paused' | 'done', required
    - `nextDueAt` number
    - `endsAt` number
    - `remainingRuns` integer
    - `runCount` integer, required
    - `lastFiredAt` number
    - `lastOutcome` 'fired' | 'late' | 'skipped' | 'disabled' | 'failed'
    - `time` object, required
      - `created` number, required
      - `updated` number, required

## Other responses

- `400`: InvalidRequestError
- `401`: UnauthorizedError
- `403`: ForbiddenError
- `404`: SessionNotFoundError

## Changes

> 50 revisions in range; 1 not diffed.

- **2026-10-29** `dbd859e71b79`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kaaass/apis/opencode/changes/api/experimental/schedule/get.md)

---

[API](https://skmtc.dev/kaaass/apis/opencode.md) - [All operations](https://skmtc.dev/kaaass/apis/opencode/llms.txt) - [OpenAPI document](https://skmtc.dev/kaaass/apis/opencode/revisions/4e083d954707?raw)
