---
title: "文件解析(同步)"
method: POST
path: "/paas/v4/files/parser/sync"
tags: ["工具 API"]
---

# 文件解析(同步)

`POST /paas/v4/files/parser/sync`

创建文件解析任务，支持多种文件格式和解析工具。见 [文件解析服务](/cn/guide/tools/file-parser)。点击 **Try it** 按钮可快速试用。

## Response `200`

结果获取成功

- FileParseResultResponse
  - `status` 'processing' | 'succeeded' | 'failed', required — 任务处理状态
  - `message` string, required — 结果状态描述
  - `content` string, nullable — 当`format_type=text`时返回的解析文本内容
  - `task_id` string, required — 文件解析任务`ID`
  - `parsing_result_url` string, nullable — 当`format_type=download_link`时返回的结果下载链接

## Other responses

- `default` — 请求失败。

---

[API](https://skmtc.net/bigmodel/apis/zhipu-ai-api.md) · [All operations](https://skmtc.net/bigmodel/apis/zhipu-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bigmodel/zhipu-ai-api/revisions/37de2d7b73de/schema)
