Document TypesList document typesget

List document types

Lists document types reachable from a Vault. Org-wide listing is not wired yet, so pass vault_id.

curl -X GET "https://api.textmine.com/v3/document-types?vault_id=123&team_id=123&cursor=example_string&limit=50" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (`tm_<key>`)"
{
  "items": [
    {
      "id": 777,
      "name": "Supplier agreement",
      "code": "supplier_agreement",
      "description": "Commercial supplier or procurement agreement.",
      "vaultId": 12345,
      "tableExtractionEnabled": true,
      "embeddedImageClassificationEnabled": false,
      "alternativeNames": [
        "John Doe"
      ]
    }
  ],
  "nextCursor": "example_string",
  "total": 42
}
GET
/v3/document-types
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.
query
vault_idinteger

Vault to list document types for.

Format: int64
query
team_idinteger

Reserved for future team-scoped listing.

Format: int64
query
cursorstring

Opaque cursor from the previous page. V3 currently uses numeric offsets as cursors.

query
limitinteger

Maximum number of items to return. Values above the service limit are clamped.

Min: 1 • Max: 200
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.

Query Parameters

vault_idinteger

Vault to list document types for.

team_idinteger

Reserved for future team-scoped listing.

cursorstring

Opaque cursor from the previous page. V3 currently uses numeric offsets as cursors.

limitinteger

Maximum number of items to return. Values above the service limit are clamped.

Responses

itemsarray
nextCursorstring

Cursor to pass to the next request. Null means there are no more results.

totalinteger

Total rows when the endpoint can compute it cheaply.