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

# Download File

This Tool will respond with a byte stream of the file data from the Google Drive API.

The `Content-Type` response header will vary based on the MIME type of the file.

Google Workspace files, e.g. Google Docs, Slides, Sheets, will be exported to equivalent formats by default (if `mimeType` is not specified):

* **Docs**: PDF file
* **Sheets**: XLSX file
* **Slides**: PPTX file
* **Drawings**: PDF file


## OpenAPI

````yaml /actionkit/openapi.json POST /projects/{project_id}/tools/#GOOGLE_DRIVE_DOWNLOAD_FILE
openapi: 3.0.0
info:
  title: ActionKit Tools API
  version: 1.0.0
servers:
  - url: https://actionkit.useparagon.com
    description: US Cloud
security: []
paths:
  /projects/{project_id}/tools/#GOOGLE_DRIVE_DOWNLOAD_FILE:
    post:
      summary: Download File
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            description: >-
              Your Paragon Project ID. You can copy your Project ID from your
              dashboard URL or by clicking Copy Project ID under the Environment
              switcher.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                tool:
                  type: string
                  default: GOOGLE_DRIVE_DOWNLOAD_FILE
                parameters:
                  type: object
                  properties:
                    fileId:
                      type: string
                      description: >-
                        File ID : Specify the ID of the File to download
                        (example: "1PVW0QtmQv-829KNvV3DLbYL8WrpS4zhtPx2Ok")
                    mimeType:
                      type: string
                      description: >-
                        MIME Type : Specify the MIME type of the file to
                        download (example: "application/pdf")
                    fileEncoding:
                      type: string
                      description: 'File Encoding (Default: raw)'
                      enum:
                        - raw
                  required:
                    - fileId
                  x-integration: googledrive
              required:
                - tool
                - parameters
      responses:
        '200':
          description: >-
            This Tool will respond with a byte stream of the file data from the
            Google Drive API.
                                    
            The `Content-Type` response header will vary based on the MIME type
            of the file.
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Your [Paragon User
        Token](/getting-started/installing-the-connect-sdk#setup) (JWT), which
        you can generate using your project's signing keys.

````