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

# Task Get Scheduled Runs Results

> Endpoint to retrieve the execution results of scheduled task runs.

Args:
    task_id (str): The unique identifier of the task whose scheduled run results are being fetched.
    page (int, optional): Pagination index for results. Defaults to 1.
    limit (int, optional): Number of results per page. Defaults to 50.

Returns:
    List[TaskOutcome]: A paginated list of `TaskOutcome` entries for the specified task.

Raises:
    HTTPException 400: If the task has a manual schedule (i.e., not auto-run).
    HTTPException 403: If the task is private and the current user is not the creator.
    HTTPException 404: If the task or its scheduled runs are not found.
    HTTPException 500: If a runtime error occurs during retrieval.



## OpenAPI

````yaml get /api/task/{task_id}/scheduled_runs_results
openapi: 3.1.0
info:
  title: Apigene
  description: Apigene API
  version: 1.0.0
  contact:
    name: Apigene Support
    url: https://app.apigene.ai
    email: support@apigene.ai
servers:
  - url: https://app.apigene.ai
security:
  - BearerAuth: []
paths:
  /api/task/{task_id}/scheduled_runs_results:
    get:
      tags:
        - Task
      summary: Task Get Scheduled Runs Results
      description: |-
        Endpoint to retrieve the execution results of scheduled task runs.

        Args:
            task_id (str): The unique identifier of the task whose scheduled run results are being fetched.
            page (int, optional): Pagination index for results. Defaults to 1.
            limit (int, optional): Number of results per page. Defaults to 50.

        Returns:
            List[TaskOutcome]: A paginated list of `TaskOutcome` entries for the specified task.

        Raises:
            HTTPException 400: If the task has a manual schedule (i.e., not auto-run).
            HTTPException 403: If the task is private and the current user is not the creator.
            HTTPException 404: If the task or its scheduled runs are not found.
            HTTPException 500: If a runtime error occurs during retrieval.
      operationId: task_get_scheduled_runs_results
      parameters:
        - name: task_id
          in: path
          required: true
          schema:
            type: string
            title: Task Id
        - name: page
          in: query
          required: false
          schema:
            type: integer
            default: 1
            title: Page
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            default: 50
            title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TaskOutcome'
                title: Response Task Get Scheduled Runs Results
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    TaskOutcome:
      properties:
        id:
          type: string
          title: Id
          description: The task ID
        name:
          type: string
          title: Name
          description: The name of the task
        started_at:
          type: string
          format: date-time
          title: Started At
          description: The time the task execution started
        completed_at:
          type: string
          format: date-time
          title: Completed At
          description: The time the task execution completed
        result:
          type: string
          title: Result
          description: The result of the task execution
        status:
          type: string
          title: Status
          description: '''completed'' if all actions succeeded, else ''failed'''
      type: object
      required:
        - id
        - name
        - started_at
        - completed_at
        - result
        - status
      title: TaskOutcome
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT Authorization header using the Bearer scheme. Example:
        'Authorization: Bearer {token}'

````