Skip to main content
POST
Add Single File Category Field

Authorizations

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

Body

application/json
name
string
required

Field name

Example:

"Invoice Code"

workspace_id
string
required

Workspace ID

Example:

"1234567890"

category_id
string
required

File category ID

Example:

"1234567890"

description
string

Field description

Example:

"Invoice code description"

prompt
string

Semantic extraction prompt

use_prompt
boolean

Whether to use semantic prompt

alias
string[]

Field aliases. On update: omit=no change, empty array []=clear aliases, non-empty array=override

Example:
identity
string

Export field name. On update: omit=no change, empty string ""=clear, non-empty=override

Example:

"invoice_number"

multi_value
boolean

Whether to enable multi-value extraction

duplicate_value_distinct
boolean

Whether to deduplicate values, only effective when multi_value is true

transform_settings
object

Field output transform configuration. Formats the extraction result before output.

table_id
string

Table ID

  • Not provided or empty: Creates a regular field, result appears in result.fields
  • Provide table ID: Creates a table field under the specified table, result appears in result.tables[].fields
Example:

"1234567890"

extract_model
enum<string>

Optional, field-level extraction model, only supported for regular fields (not table fields); if omitted, follows the category-level config (defaults to Auto when the category level is mixed or null)

  • 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 field info. When not set or false, only field_id is returned.

Response

200 - application/json

Successfully added file category field

code
integer
required

Status code

Example:

200

msg
string
required

Status description

result
object