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

# Download Logs

> Download full log file from AWS S3.

**Required Role:** VIEWER or higher

This endpoint streams the complete RClone output log file (gzipped).
The log file contains every line of RClone output including:
- All file transfer events
- Complete stats blocks (every 10 seconds)
- Error messages and stack traces
- RClone debug information

**Requirements:**
- Execution must be in terminal state: COMPLETED, DRY_RUN_COMPLETED, FAILED, or CANCELLED
- Returns 400 Bad Request if execution is still PENDING, QUEUED, or RUNNING

The file is streamed directly from AWS S3 (no pre-signed URLs).



## OpenAPI

````yaml GET /v1/teams/{team_id}/tasks/{task_id}/executions/{execution_id}/logs/download
openapi: 3.1.0
info:
  title: Data Raven API
  description: Cloud-to-cloud data transfer platform powered by RClone
  version: 0.5.0
servers: []
security: []
paths:
  /v1/teams/{team_id}/tasks/{task_id}/executions/{execution_id}/logs/download:
    get:
      tags:
        - Executions
      summary: Download Full Log File
      description: >-
        Download full log file from AWS S3.


        **Required Role:** VIEWER or higher


        This endpoint streams the complete RClone output log file (gzipped).

        The log file contains every line of RClone output including:

        - All file transfer events

        - Complete stats blocks (every 10 seconds)

        - Error messages and stack traces

        - RClone debug information


        **Requirements:**

        - Execution must be in terminal state: COMPLETED, DRY_RUN_COMPLETED,
        FAILED, or CANCELLED

        - Returns 400 Bad Request if execution is still PENDING, QUEUED, or
        RUNNING


        The file is streamed directly from AWS S3 (no pre-signed URLs).
      operationId: >-
        download_full_log_file_v1_teams__team_id__tasks__task_id__executions__execution_id__logs_download_get
      parameters:
        - name: task_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Task Id
        - name: execution_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Execution Id
        - name: team_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Team Id
      responses:
        '200':
          description: Log file content
          content:
            application/json:
              schema: {}
            application/gzip: {}
        '400':
          description: Execution not yet complete
        '404':
          description: Log file not found in object storage
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    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
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````