メインコンテンツへスキップ
POST
/
api
/
app-api
/
sip
/
platform
/
v2
/
category
/
tables
/
add
単一ファイルカテゴリテーブルを追加
curl --request POST \
  --url https://docflow.textin.com/api/app-api/sip/platform/v2/category/tables/add \
  --header 'Content-Type: application/json' \
  --header 'x-ti-app-id: <api-key>' \
  --header 'x-ti-secret-code: <api-key>' \
  --data '
{
  "workspace_id": "1234567890",
  "category_id": "1234567890",
  "name": "Table 1",
  "prompt": "各行から品目名、数量、金額を抽出します",
  "collect_from_multi_table": true,
  "extract_model": "Model 1",
  "with_detail": true
}
'
{
  "code": 200,
  "msg": "<string>",
  "result": {
    "table_id": "1234567890",
    "name": "<string>",
    "description": "<string>",
    "prompt": "<string>",
    "collect_from_multi_table": true,
    "extract_model": "<string>",
    "fields": [
      {
        "name": "インボイスコード",
        "description": "インボイスコードの説明",
        "prompt": "<string>",
        "use_prompt": true,
        "alias": [
          "インボイス No.",
          "請求書番号"
        ],
        "identity": "invoice_number",
        "multi_value": true,
        "duplicate_value_distinct": true,
        "transform_settings": {
          "datetime_settings": {
            "format": "yyyy-MM-dd"
          },
          "enumerate_settings": {
            "items": [
              "VAT 専用インボイス",
              "VAT 一般インボイス",
              "電子インボイス"
            ]
          },
          "regex_settings": {
            "match": "^(\\d{4})-(\\d{2})-(\\d{2})$",
            "replace": "$1/$2/$3"
          },
          "mismatch_action": {
            "default_value": "N/A"
          }
        },
        "id": "1234567890",
        "extract_model": "Model 1"
      }
    ]
  }
}

承認

x-ti-app-id
string
header
必須
x-ti-secret-code
string
header
必須

ボディ

application/json
workspace_id
string
必須

ワークスペース ID

:

"1234567890"

category_id
string
必須

ファイルカテゴリ ID

:

"1234567890"

name
string
必須

テーブル名

Maximum string length: 50
:

"Table 1"

prompt
string

テーブルの意味抽出プロンプト

Maximum string length: 200
:

"各行から品目名、数量、金額を抽出します"

collect_from_multi_table
boolean

複数テーブルを結合

:

true

extract_model
enum<string>

テーブルレベルの抽出モデル

  • Model 1: 高速で安定した抽出結果
  • Model 2: 複雑な文書理解に適しています
  • Model 3: VLM。シンプルな抽出に適しています
利用可能なオプション:
Model 1,
Model 2,
Model 3
:

"Model 1"

with_detail
boolean

完全な詳細を返すかどうか。true の場合、レスポンスにテーブルの完全な情報(フィールドリストを含む)が含まれます。 未設定または false の場合、table_id のみを返します。

レスポンス

200 - application/json

ファイルカテゴリテーブルの追加に成功

code
integer
必須

ステータスコード

:

200

msg
string
必須

ステータス説明

result
object