---
title: "Get effective AI workspace file limits"
method: GET
path: "/ai/workspace/file-limits"
tags: ["AI Chat"]
---

# Get effective AI workspace file limits

`GET /ai/workspace/file-limits`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/ai/workspace/file-limits`
- Auth: HTTP bearer

Returns the non-sensitive effective transfer and preview policy for the current workspace user.

## Response `200`

- AiWorkspaceFileLimitsSettings: Runtime limits for workspace file transfer and browser previews. The HTTP layer additionally enforces absolute ceilings so a malformed or legacy settings row cannot turn a configurable limit into unbounded control plane memory use.
  - `max_download_size_mb` integer
  - `max_file_size_mb` integer
  - `max_files_per_upload` integer
  - `max_image_preview_size_mb` integer
  - `max_text_preview_kb` integer
  - `max_upload_size_mb` integer
  - `max_workspace_entries` integer
  - `max_workspace_size_mb` integer

## Other responses

- `401`
- `403`
- `500`

## Changes

- **2026-09-07** `504478bfd788`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/ai/workspace/file-limits/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
