---
title: "Download Drive Files For Chat"
method: POST
path: "/api/google/drive/download-for-chat"
tags: ["google-api"]
---

# Download Drive Files For Chat

`POST /api/google/drive/download-for-chat`

Download Drive file contents for chat attachments.
Establishes permission association and returns file contents as base64.
Does not persist to database - temporary access only.

## Query parameters

- `user_id` string
- `org_id` string

## Request body

- DriveFileForChatRequest
  - `files` DriveFileSelection[], required
    - `file_id` string, required
    - `file_name` string, required
    - `mime_type` string, nullable
    - `web_view_link` string, nullable
    - `icon_url` string, nullable
    - `size_bytes` integer, nullable
    - `ai_summary` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/every/apis/every-api.md) · [All operations](https://skmtc.net/every/apis/every-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/every/every-api/versions/f8600f7a4ae3/schema)
