---
title: "Create Server File Upload"
method: POST
path: "/v1/files/server-uploads"
tags: ["SDK API"]
---

# Create Server File Upload

`POST /v1/files/server-uploads`

## Request

- Base URL: `https://api.toolhouse.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.toolhouse.ai/v1/files/server-uploads`
- Auth: HTTP bearer

Upload file bytes through the backend and store them in R2/S3.

## Request body

- FileServerUploadRequest: Request to upload file bytes through the backend.
  - `filename` string, nullable
  - `mime_type` string, nullable
  - `data_base64` string, required
  - `run_id` string, uuid, nullable
  - `tags` string[]
  - `metadata` object, nullable
  - `conflict_strategy` 'error' | 'overwrite' | 'rename'

## Response `201`

Successful Response

- FileResponse: API response wrapper for a file.
  - `data` FileModel, required: Stored file metadata.
    - `id` string, uuid, required
    - `user_id` string, required
    - `filename` string, required
    - `mime_type` string, required
    - `size_bytes` integer, required
    - `storage_provider` string, required
    - `bucket` string, required
    - `object_key` string, required
    - `public_url` string, nullable
    - `etag` string, nullable
    - `checksum_sha256` string, nullable
    - `run_id` string, uuid, nullable
    - `tags` string[], required
    - `status` 'uploading' | 'ready' | 'failed' | 'deleted', required
    - `metadata` object, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `deleted_at` string, date-time, nullable

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-30** `9dc55a5522bb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/toolhouse/apis/toolhouse-api/changes/v1/files/server-uploads/post.md)

---

[API](https://skmtc.dev/toolhouse/apis/toolhouse-api.md) - [All operations](https://skmtc.dev/toolhouse/apis/toolhouse-api/llms.txt) - [OpenAPI document](https://skmtc.dev/toolhouse/apis/toolhouse-api/revisions/f47a4da5cc79?raw)
