---
title: "Initialize chunked file upload"
method: POST
path: "/api/v1/files/upload/init"
tags: ["Files"]
---

# Initialize chunked file upload

`POST /api/v1/files/upload/init`

**Required scope:** `file`

## Request body

- ChatUploadInitRequest
  - `filename` string, required
  - `total_size` integer, required
  - `content_type` string

## Response `200`

Standard AstrBot success response

- SuccessEnvelope
  - `status` 'ok', required
  - `message` string
  - `data` unknown, required

## Changes

- **2026-09-18** `d105030154a4` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/astrbotdevs/apis/astrbot-openapi-v1/changes/api/v1/files/upload/init/post.md)

---

[API](https://skmtc.dev/astrbotdevs/apis/astrbot-openapi-v1.md) · [All operations](https://skmtc.dev/astrbotdevs/apis/astrbot-openapi-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/astrbotdevs/apis/astrbot-openapi-v1/revisions/f20ea377ad3e?raw)
