> ## 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.

# Get Log File Content



## OpenAPI

````yaml openapi.json GET /endpoints/{endpoint_id}/logs/file
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/file:
    get:
      tags:
        - Logs
      summary: Get Log File Content
      description: Returns the content of a specific log file by line range.
      operationId: getLogFileContent
      parameters:
        - name: endpoint_id
          in: path
          required: true
          description: Unique endpoint ID.
          schema:
            type: string
        - name: node_id
          in: query
          required: true
          description: >-
            Node ID where the log file is located. Use the `node_id` value from
            the `/logs` response.
          schema:
            type: string
        - name: filename
          in: query
          required: true
          description: Log file path. Use the `filename` value from the `/logs` response.
          schema:
            type: string
        - name: start_line
          in: query
          description: Starting line number (1-based).
          schema:
            type: integer
            minimum: 1
            default: 1
        - name: end_line
          in: query
          description: Ending line number. Max 50000.
          schema:
            type: integer
            minimum: 1
            maximum: 50000
            default: 1000
      responses:
        '200':
          description: Log file content.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LogContent'
components:
  schemas:
    LogContent:
      type: object
      properties:
        content:
          type: string
          description: >-
            Log file content for the specified line range. Each line is a JSON
            log entry.
        start_line:
          type: integer
          description: Actual start line number returned.
        end_line:
          type: integer
          description: Actual end line number returned.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Pass your API key as a Bearer token. Create API keys in the project
        overview.

````