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

# List Agent Schedules

> List all schedules for an agent.



## OpenAPI

````yaml https://agentex.dev-sgp.scale.com/openapi.json get /agents/{agent_id}/schedules
openapi: 3.1.0
info:
  title: Agentex API
  version: 0.1.0
servers: []
security: []
paths:
  /agents/{agent_id}/schedules:
    get:
      tags:
        - Schedules
      summary: List Agent Schedules
      description: List all schedules for an agent.
      operationId: list_schedules_agents__agent_id__schedules_get
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
            title: Agent Id
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
            maximum: 1000
            minimum: 1
            default: 100
            title: Page Size
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScheduleListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ScheduleListResponse:
      properties:
        schedules:
          items:
            $ref: '#/components/schemas/ScheduleListItem'
          type: array
          title: Schedules
          description: List of schedules
        total:
          type: integer
          title: Total
          description: Total number of schedules
      type: object
      required:
        - schedules
        - total
      title: ScheduleListResponse
      description: Response model for listing schedules
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ScheduleListItem:
      properties:
        schedule_id:
          type: string
          title: Schedule ID
          description: Unique identifier for the schedule
        name:
          type: string
          title: Schedule Name
          description: Human-readable name for the schedule
        agent_id:
          type: string
          title: Agent ID
          description: ID of the agent this schedule belongs to
        state:
          $ref: '#/components/schemas/ScheduleState'
          title: State
          description: Current state of the schedule
        workflow_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Workflow Name
          description: Name of the scheduled workflow
        next_action_time:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Next Action Time
          description: Next scheduled execution time
      type: object
      required:
        - schedule_id
        - name
        - agent_id
        - state
      title: ScheduleListItem
      description: Abbreviated schedule info for list responses
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    ScheduleState:
      type: string
      enum:
        - ACTIVE
        - PAUSED
      title: ScheduleState
      description: Schedule state enum

````