---
title: "上传文档"
method: POST
path: "/api/v1/files/documents"
tags: ["Files"]
---

# 上传文档

`POST /api/v1/files/documents`

上传文档文件，大小限制 10MB。上传后可将 file_id 用于知识库关联。

## Response `200`

上传成功

- object
  - `code` integer
  - `data` object
    - `file_id` string — 文件 ID，可用于知识库关联

---

[API](https://skmtc.dev/langbot/apis/langbot-service-api.md) · [All operations](https://skmtc.dev/langbot/apis/langbot-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/langbot/langbot-service-api/revisions/2384dee8c36a/schema)
