---
title: "Multipart Create"
method: POST
path: "/api/storage/multipart/create"
tags: ["storage"]
---

# Multipart Create

`POST /api/storage/multipart/create`

## Request

- Base URL: `https://api.tintin-x.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tintin-x.com/api/storage/multipart/create`
- Auth: HTTP bearer

Start a multipart upload: quota check, mint a pending StorageFile
row, and open an S3 multipart upload. Returns upload_id + the server-
chosen part_size / part_count so the browser can drive the chunk loop
deterministically (no ambiguity over how many parts to produce).

## Request body

- MultipartCreateRequest
  - `filename` string, required
  - `content_type` string, required
  - `size_bytes` integer, required
  - `agent_id` string, uuid, nullable
  - `folder_id` string, uuid, nullable

## Response `200`

Successful Response

- MultipartCreateResponse
  - `file_id` string, uuid, required
  - `upload_id` string, required
  - `s3_key` string, required
  - `part_size` integer, required
  - `part_count` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tintin-x/apis/tintin-api.md) · [All operations](https://skmtc.dev/tintin-x/apis/tintin-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tintin-x/apis/tintin-api/revisions/8839a8d0a66c?raw)
