Document TypesFetch a document typeget

Fetch a document type

Fetches a Vault-scoped document type. Pass vault_id while flat lookup is pending.

curl -X GET "https://api.textmine.com/v3/document-types/123?vault_id=123" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (`tm_<key>`)"
{
  "id": 777,
  "name": "Supplier agreement",
  "code": "supplier_agreement",
  "description": "Commercial supplier or procurement agreement.",
  "vaultId": 12345,
  "tableExtractionEnabled": true,
  "embeddedImageClassificationEnabled": false,
  "alternativeNames": [
    "John Doe"
  ]
}
GET
/v3/document-types/{documentTypeId}
GET
Base URLstring

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

Bearer Token (`tm_<key>`)
Bearer Tokenstring
Required

Use Authorization: Bearer tm_<key> for API-key access to /v3/** endpoints. V3 also accepts Auth0 JWT and HTTP Basic for user-session contexts.

Use Authorization: Bearer tm_<key> for API-key access to /v3/** endpoints. V3 also accepts Auth0 JWT and HTTP Basic for user-session contexts.
path
documentTypeIdinteger
Required

Document type ID.

Format: int64
query
vault_idinteger

Vault ID required by the current implementation.

Format: int64
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (tm_<key>). Use Authorization: Bearer tm_<key> for API-key access to /v3/** endpoints. V3 also accepts Auth0 JWT and HTTP Basic for user-session contexts.

Path Parameters

Query Parameters

vault_idinteger

Vault ID required by the current implementation.

Responses

idinteger
namestring
codestring
descriptionstring
vaultIdinteger
tableExtractionEnabledboolean
embeddedImageClassificationEnabledboolean
alternativeNamesstring[]