---
title: "Paginated endpoint for listing a team's scenario schedules ordered by trigger time."
method: GET
path: "/schedules/scenarios/paged"
tags: ["schedules"]
---

# Paginated endpoint for listing a team's scenario schedules ordered by trigger time.

`GET /schedules/scenarios/paged`

Requires the privilege [`SCENARIOS_READ`](https://www.gremlin.com/docs/user-management/access-control/#privileges)

## Query parameters

- `pageSize` integer
- `pageToken` string
- `teamId` string, required

## Response `default`

default response

- PagedResponseScenarioScheduleResponse
  - `pageNumber` integer
  - `pageSize` integer — The size of the page requested. If none was supplied this is a default value (depending on the endpoint). If the length of items is less than this number that means there are _no_ more pages to request. NOTE: if the length *is* equal there may or may not be additional pages to request, it is unknowable until they are requested
  - `pageToken` string — Supply this token on successive requests to retrieve the next page if there is one
  - `items` ScenarioScheduleResponse[]
    - `orgId` string
    - `guid` string
    - `scenarioId` string
    - `scenarioName` string
    - `trigger` object
      - `windowType` 'Once' | 'Random'
      - `type` string
      - `templateId` string
      - `optionalTemplateId` string
      - `empty` boolean
    - `createdBy` string
    - `createSource` 'WebApp' | 'Api' | 'Scheduled' | 'Manual' | 'Spinnaker' | 'Concord' | 'GremlinFeeder' | 'GremlinSdkPython' | 'Scenario' | 'Chao' | 'K8sBackend' | 'Website' | 'Neotys' | 'IntegrationClient' | 'Validation'
    - `triggerSource` 'MANUAL' | 'RUN_ALL' | 'SCHEDULED' | 'RECURRING_SCHEDULE'
    - `enabled` boolean
    - `createdAt` string, date-time
    - `updatedAt` string, date-time
    - `nextTriggerTime` string, date-time
    - `targets` ServiceTarget[]
      - `serviceId` string
      - `targetingStrategy` TargetingStrategy, required
        - `type` string, required
    - `failureFlagTargets` FailureFlagTarget[]
      - `app` Selector
        - `name` string, required
        - `labels` object, required — Label selectors for matching resources
        - `runtimeLabels` object — Labels for matching resources resolved at runtime (e.g., "zones" are resolved and added to the label "ips")
      - `flag` Selector
        - `name` string, required
        - `labels` object, required — Label selectors for matching resources
        - `runtimeLabels` object — Labels for matching resources resolved at runtime (e.g., "zones" are resolved and added to the label "ips")
      - `appInstanceSampling` TargetSampling
        - `type` string, required
      - `resolvedAppInstanceIds` string[]
      - `resolvedRuntimeLabels` object

## Other responses

- `401` — Authorization header missing or malformed. Please provide proper credentials in the authorization header.
- `403` — User requires privilege for target team: SCENARIOS_READ

---

[API](https://skmtc.net/gremlin/apis/gremlin-api.md) · [All operations](https://skmtc.net/gremlin/apis/gremlin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gremlin/gremlin-api/revisions/36ee938323f0/schema)
