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

# List Log Files



## OpenAPI

````yaml openapi.json GET /endpoints/{endpoint_id}/logs
openapi: 3.1.0
info:
  title: AirCloud External API
  description: Public REST API for managing AirCloud endpoints programmatically.
  version: 1.0.0
  contact:
    name: support
    url: https://aieev.com
    email: support@aieev.cloud
servers:
  - url: https://external.aieev.cloud:5007/external/api/v1
security:
  - bearerAuth: []
tags:
  - name: Authentication
    description: Verify API key context.
  - name: Endpoints
    description: 'Manage endpoints: list, start, stop, scale, and patch.'
  - name: Replicas
    description: View live replica status.
  - name: Logs
    description: Access endpoint log files.
paths:
  /endpoints/{endpoint_id}/logs:
    get:
      tags:
        - Logs
      summary: List Log Files
      description: >-
        Returns available log files for an endpoint. Supports filtering by
        replica and history.
      operationId: listLogFiles
      parameters:
        - name: endpoint_id
          in: path
          required: true
          description: Unique endpoint ID.
          schema:
            type: string
        - name: replica_id
          in: query
          description: Filter logs by a specific replica ID.
          schema:
            type: string
        - name: include_history
          in: query
          description: >-
            Set to `false` to exclude rotated historical logs and return only
            current active logs.
          schema:
            type: boolean
            default: true
      responses:
        '200':
          description: List of log files.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/LogFile'
components:
  schemas:
    LogFile:
      type: object
      properties:
        node_id:
          type: string
          description: Node ID where the log is stored.
        replica_id:
          type: string
          description: Associated replica ID.
        filename:
          type: string
          description: >-
            Log file path. Use as the `filename` parameter in the `/logs/file`
            API.
        is_historical:
          type: boolean
          description: >-
            Whether this is a rotated historical log file from a terminated
            replica.
        start_time:
          type: string
          format: date-time
          nullable: true
          description: Log start time. Only available for historical logs.
        end_time:
          type: string
          format: date-time
          nullable: true
          description: Log end time. Only available for historical logs.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Pass your API key as a Bearer token. Create API keys in the project
        overview.

````