> ## Documentation Index
> Fetch the complete documentation index at: https://docs.asteroid.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List scheduled executions

> List scheduled executions with filtering and pagination



## OpenAPI

````yaml https://odyssey.asteroid.ai/agents/v2/openapi.yaml get /scheduled-executions
openapi: 3.1.0
info:
  title: Agent Service
  version: v1
servers:
  - description: V2 API
    url: https://odyssey.asteroid.ai/agents/v2
security:
  - ApiKeyAuth: []
tags:
  - name: Agents
  - name: Environments
  - name: Execution
  - name: Files
  - name: Agent Profiles
  - name: Agent Profile Pools
  - name: Workflows
  - name: Execution Batches
  - name: Scheduled Executions
  - name: Schema
  - name: Documentation
  - name: Context
  - name: Admin Customer Activity
paths:
  /scheduled-executions:
    get:
      tags:
        - Scheduled Executions
      summary: List scheduled executions
      description: List scheduled executions with filtering and pagination
      operationId: ScheduledExecutionsList
      parameters:
        - $ref: '#/components/parameters/Agents.ScheduledExecution.ListFilter.agentId'
        - $ref: >-
            #/components/parameters/Agents.ScheduledExecution.ListFilter.workflowId
        - $ref: '#/components/parameters/Agents.ScheduledExecution.ListFilter.status'
        - $ref: '#/components/parameters/Agents.ScheduledExecution.ListFilter.batchId'
        - $ref: '#/components/parameters/Agents.ScheduledExecution.ListFilter.order'
        - $ref: '#/components/parameters/Common.Pagination.pageSize'
        - $ref: '#/components/parameters/Common.Pagination.page'
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  items:
                    items:
                      $ref: '#/components/schemas/Agents.ScheduledExecution.Base'
                    type: array
                  page:
                    format: int64
                    type: integer
                  pageSize:
                    format: int64
                    type: integer
                  total:
                    format: int64
                    type: integer
                required:
                  - items
                  - page
                  - pageSize
                  - total
                type: object
          description: The request has succeeded.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Common.BadRequestErrorBody'
          description: The server could not understand the request due to invalid syntax.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Common.UnauthorizedErrorBody'
          description: Access is unauthorized.
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Common.ForbiddenErrorBody'
          description: Access is forbidden.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Common.NotFoundErrorBody'
          description: The server cannot find the requested resource.
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Common.InternalServerErrorBody'
          description: Server error
components:
  parameters:
    Agents.ScheduledExecution.ListFilter.agentId:
      explode: false
      in: query
      name: agentId
      required: true
      schema:
        $ref: '#/components/schemas/Common.uuid'
    Agents.ScheduledExecution.ListFilter.workflowId:
      explode: false
      in: query
      name: workflowId
      schema:
        $ref: '#/components/schemas/Common.uuid'
    Agents.ScheduledExecution.ListFilter.status:
      explode: false
      in: query
      name: status
      schema:
        $ref: '#/components/schemas/Agents.ScheduledExecution.Status'
    Agents.ScheduledExecution.ListFilter.batchId:
      explode: false
      in: query
      name: batchId
      schema:
        $ref: '#/components/schemas/Common.uuid'
    Agents.ScheduledExecution.ListFilter.order:
      description: Sort order for scheduled executions by execute_at timestamp
      explode: false
      in: query
      name: order
      schema:
        enum:
          - asc
          - desc
        type: string
    Common.Pagination.pageSize:
      explode: false
      in: query
      name: pageSize
      schema:
        default: 50
        format: int32
        type: integer
    Common.Pagination.page:
      explode: false
      in: query
      name: page
      schema:
        default: 1
        format: int32
        type: integer
  schemas:
    Agents.ScheduledExecution.Base:
      properties:
        agentId:
          $ref: '#/components/schemas/Common.uuid'
        agentProfileId:
          $ref: '#/components/schemas/Common.uuid'
        agentProfilePoolId:
          allOf:
            - $ref: '#/components/schemas/Common.uuid'
          description: >-
            Set when the profile is chosen from a pool at trigger time rather
            than pinned up front
        batchId:
          $ref: '#/components/schemas/Common.uuid'
        createdAt:
          format: date-time
          type: string
        executeAt:
          format: date-time
          type: string
        executionId:
          $ref: '#/components/schemas/Common.uuid'
        failureReason:
          description: >-
            Why this scheduled execution could not be triggered. Only set when
            status is `failed`.
          type: string
        id:
          $ref: '#/components/schemas/Common.uuid'
        inputVars:
          type: object
          unevaluatedProperties: {}
        metadata:
          type: object
          unevaluatedProperties:
            type: string
        status:
          $ref: '#/components/schemas/Agents.ScheduledExecution.Status'
        triggeredAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
        variantKey:
          description: >-
            Variant key the queued execution will run under. Read-only; set via
            `executionOptions` at create time.
          type: string
        workflowId:
          $ref: '#/components/schemas/Common.uuid'
      required:
        - id
        - workflowId
        - agentId
        - inputVars
        - metadata
        - status
        - createdAt
        - updatedAt
      type: object
    Common.BadRequestErrorBody:
      properties:
        code:
          enum:
            - 400
          type: number
          x-enum-varnames:
            - BadRequest
        message:
          type: string
      required:
        - code
        - message
      type: object
    Common.UnauthorizedErrorBody:
      properties:
        code:
          enum:
            - 401
          type: number
          x-enum-varnames:
            - Unauthorized
        message:
          type: string
      required:
        - code
        - message
      type: object
    Common.ForbiddenErrorBody:
      properties:
        code:
          enum:
            - 403
          type: number
          x-enum-varnames:
            - Forbidden
        message:
          type: string
      required:
        - code
        - message
      type: object
    Common.NotFoundErrorBody:
      properties:
        code:
          enum:
            - 404
          type: number
          x-enum-varnames:
            - NotFound
        message:
          type: string
      required:
        - code
        - message
      type: object
    Common.InternalServerErrorBody:
      properties:
        code:
          enum:
            - 500
          type: number
          x-enum-varnames:
            - InternalServerError
        message:
          type: string
      required:
        - code
        - message
      type: object
    Common.uuid:
      format: uuid
      type: string
    Agents.ScheduledExecution.Status:
      enum:
        - pending
        - triggered
        - cancelled
        - awaiting_capacity
        - batch_paused
        - failed
      type: string
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: X-Asteroid-Agents-Api-Key
      type: apiKey

````