Skip to main content
POST
/
doc-agent
/
api
/
v1
/
capability
/
material
/
classify
cURL
curl --request POST \
  --url https://agents.textin.com/doc-agent/api/v1/capability/material/classify \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-ti-app-id: <x-ti-app-id>' \
  --header 'x-ti-secret-code: <x-ti-secret-code>' \
  --form files='@example-file' \
  --form material_id=8ffe03ce-4714-4b50-8daf-afee06002cc3
{
  "code": 200,
  "data": {
    "materials": [
      {
        "category": "费用与结算",
        "material_id": "8ffe03ce-4714-4b50-8daf-afee06002cc3",
        "material_type": "医疗门诊收费票据(电子)"
      },
      {
        "category": "费用与结算",
        "material_id": "27734e23-3482-42a3-98d7-1bdb369118bc",
        "material_type": "住院费用明细清单"
      }
    ]
  },
  "message": "OK"
}

Headers

x-ti-app-id
string
required
x-ti-secret-code
string
required

Body

multipart/form-data
batch_id
string

批次 ID(处理批次下所有材料)

Example:

"661be601-65c7-4025-af0f-20d357dfb090"

file_urls
string

URL 上传(与 material_id/batch_id 互斥),JSON 数组格式

Example:

"[\"https://example.com/file1.pdf\"]"

files
file

文件二进制上传(支持多文件)

material_id
string

已上传材料的 ID(处理单个材料,与 files/file_urls 互斥)

Example:

"8ffe03ce-4714-4b50-8daf-afee06002cc3"

Response

200 - application/json

OK

code
integer

业务状态码

Example:

200

data
object
message
string

状态说明

Example:

"OK"