Skip to main content
POST
Add Single File Category Table

Authorizations

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

Body

application/json
workspace_id
string
required

Workspace ID

Example:

"1234567890"

category_id
string
required

File category ID

Example:

"1234567890"

name
string
required

Table name

Maximum string length: 50
Example:

"Table 1"

prompt
string

Table semantic extraction prompt

Maximum string length: 200
Example:

"Extract item name, quantity and amount from each row"

collect_from_multi_table
boolean

Merge multiple tables

Example:

true

extract_model
enum<string>

Table-level extraction model

  • Auto: Automatically matches the extraction model
  • Acgpt: Fast speed with stable extraction results
  • Acgpt-VL: VLM, suitable for simple extraction (≤10 pages)
  • DF-M1: Suitable for complex document understanding
Available options:
Auto,
Acgpt,
Acgpt-VL,
DF-M1
Example:

"Acgpt"

with_detail
boolean

Whether to return full details. When true, the response includes complete table info (with field list). When not set or false, only table_id is returned.

Response

200 - application/json

Successfully added file category table

code
integer
required

Status code

Example:

200

msg
string
required

Status description

result
object