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

# Get execution logs for a schedule

> Returns execution history for a schedule with pagination support.



## OpenAPI

````yaml https://raw.githubusercontent.com/InsForge/InsForge/main/openapi/schedules.yaml get /api/schedules/{id}/logs
openapi: 3.0.3
info:
  title: Insforge Schedules API
  version: 1.0.0
  description: Schedule management endpoints
servers: []
security: []
paths:
  /api/schedules/{id}/logs:
    get:
      tags:
        - Admin
      summary: Get execution logs for a schedule
      description: Returns execution history for a schedule with pagination support.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 50
        - name: offset
          in: query
          schema:
            type: integer
            minimum: 0
            default: 0
      responses:
        '200':
          description: Schedule execution logs
          content:
            application/json:
              schema:
                type: object
                properties:
                  logs:
                    type: array
                    items:
                      $ref: '#/components/schemas/ScheduleLog'
                  totalCount:
                    type: integer
                  limit:
                    type: integer
                  offset:
                    type: integer
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    ScheduleLog:
      type: object
      properties:
        id:
          type: string
          format: uuid
        scheduleId:
          type: string
          format: uuid
        executedAt:
          type: string
          format: date-time
        statusCode:
          type: integer
        success:
          type: boolean
        durationMs:
          type: integer
        message:
          type: string
          nullable: true
    ErrorResponse:
      type: object
      required:
        - error
        - message
        - statusCode
      properties:
        error:
          type: string
        message:
          type: string
        statusCode:
          type: integer
        nextActions:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````