Agent SetupCreate a document typepost

Create a document type

Creates a custom document type and optionally seeds default extraction questions for one or more Vaults.

curl -X POST "https://public-api.textmine.com/v3/document-types" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (TextMine tm_ API key)" \
  -d '{
  "name": "Commercial Agreement",
  "code": "example_string",
  "description": "example_string",
  "contractTypeGroupId": 123,
  "vaultId": 123,
  "vaultIds": [
    123
  ],
  "alternativeNames": [
    "John Doe"
  ],
  "tableExtractionEnabled": true,
  "embeddedImageClassificationEnabled": true,
  "defaultTags": [
    {
      "name": "Summary",
      "question": "Summarize this document in one sentence.",
      "aggregation": true,
      "reasoning": true,
      "semantic": true
    }
  ]
}'
{
  "id": 123,
  "name": "John Doe",
  "code": "example_string",
  "description": "example_string",
  "vaultId": 123,
  "vaultIds": [
    123
  ],
  "documentTypeOrganizationVaultId": 123,
  "tableExtractionEnabled": true,
  "embeddedImageClassificationEnabled": true,
  "alternativeNames": [
    "John Doe"
  ],
  "defaultTagCount": 10
}
POST
/v3/document-types
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token (TextMine tm_ API key)
Bearer Tokenstring
Required

Bearer token (TextMine tm_ API key) - just enter the token, "Bearer" prefix will be added automatically

Content-Typestring
Required

The media type of the request body

Options: application/json
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (TextMine tm_ API key). Authentication token required.

Responses