---
title: "List Schedules"
method: GET
path: "/api/v1/schedules"
tags: ["schedules"]
---

# List Schedules

`GET /api/v1/schedules`

Gets a list of schedules.

Args:
    schedule_filter_model: Filter model used for pagination, sorting,
        filtering
    hydrate: Flag deciding whether to hydrate the output model(s)
        by including metadata fields in the response.

Returns:
    List of schedule objects.

## Query parameters

- `hydrate` boolean
- `sort_by` string
- `logical_operator` 'or' | 'and' — Logical Ops to use to combine filters on list methods.
- `page` integer
- `size` integer
- `id` union
  - string, uuid
  - string
- `created` union
  - string, date-time
  - string
- `updated` union
  - string, date-time
  - string
- `scope_workspace` string, uuid, nullable
- `workspace_id` union
  - string, uuid
  - string
- `user_id` union
  - string, uuid
  - string
- `pipeline_id` union
  - string, uuid
  - string
- `orchestrator_id` union
  - string, uuid
  - string
- `active` boolean, nullable
- `cron_expression` string, nullable
- `start_time` union
  - string, date-time
  - string
- `end_time` union
  - string, date-time
  - string
- `interval_second` number, nullable
- `catchup` boolean, nullable
- `name` string, nullable
- `run_once_start_time` union
  - string, date-time
  - string

## Response `200`

Successful Response

- PageScheduleResponse
  - `index` integer, required
  - `max_size` integer, required
  - `total_pages` integer, required
  - `total` integer, required
  - `items` ScheduleResponse[], required
    - `body` ScheduleResponseBody — Response body for schedules.
      - `created` string, date-time, required
      - `updated` string, date-time, required
      - `user` UserResponse — Response model for user and service accounts. This returns the activation_token that is required for the user-invitation-flow of the frontend. The email is returned optionally as well for use by the analytics on the client-side.
        - `body` UserResponseBody — Response body for users.
          - `created` string, date-time, required
          - `updated` string, date-time, required
          - `active` boolean
          - `activation_token` string, nullable
          - `full_name` string
          - `email_opted_in` boolean, nullable — `null` if not answered, `true` if agreed, `false` if skipped.
          - `is_service_account` boolean, required
          - `is_admin` boolean, required
        - `metadata` UserResponseMetadata — Response metadata for users.
          - `email` string, nullable
          - `external_user_id` string, uuid, nullable
          - `user_metadata` object
        - `resources` UserResponseResources — Class for all resource models associated with the user entity.
        - `id` string, uuid, required
        - `permission_denied` boolean
        - `name` string, required
      - `active` boolean, required
      - `cron_expression` string, nullable
      - `start_time` string, date-time, nullable
      - `end_time` string, date-time, nullable
      - `interval_second` string, duration, nullable
      - `catchup` boolean
      - `run_once_start_time` string, date-time, nullable
    - `metadata` ScheduleResponseMetadata — Response metadata for schedules.
      - `workspace` WorkspaceResponse, required — Response model for workspaces.
        - `body` WorkspaceResponseBody — Response body for workspaces.
          - `created` string, date-time, required
          - `updated` string, date-time, required
        - `metadata` WorkspaceResponseMetadata — Response metadata for workspaces.
          - `description` string
        - `resources` WorkspaceResponseResources — Class for all resource models associated with the workspace entity.
        - `id` string, uuid, required
        - `permission_denied` boolean
        - `name` string, required
      - `orchestrator_id` string, uuid, nullable, required
      - `pipeline_id` string, uuid, nullable, required
    - `resources` ScheduleResponseResources — Class for all resource models associated with the schedule entity.
    - `id` string, uuid, required
    - `permission_denied` boolean
    - `name` string, required

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Entity

---

[API](https://skmtc.net/zenml-io/apis/zenml-2.md) · [All operations](https://skmtc.net/zenml-io/apis/zenml-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zenml-io/zenml-2/versions/febb01b8bce3/schema)
