Collections

Collections your key can see. Collections are created in the app.

Base URL https://futuresmart.ai/document-intelligence/api · every request sends x-api-key. Samples read the key from DOCUMENT_INTELLIGENCE_API_KEY. All endpoints

List your collections

GET/v1

List knowledge services. If owner_id is provided, returns every collection that account can reach — owned and shared alike — as bare ids. If not provided, returns all non-deleted knowledge services (master API key only).

include=summary exists because a Home-style "one card per collection" UI otherwise has to call GET /config and GET /enrichment per collection just to render a card — 1 + 2N requests for N collections, with no document count available at all no matter how many extra calls are made (no endpoint returns one). This aggregates that in one extra pass over Document/FieldConfiguration/KnowledgeConfig, grouped by knowledge_id, so it's a fixed number of queries regardless of N. See docs/screen-api-flow-document-intelligence.md §3 (G2+G3).

Includes collection_name (G1) — null for a collection created before that column existed, or created without one.

Owned vs. shared is deliberately NOT distinguished in this response (no owner_id per item either — see docs/api/knowledge-invitations.md). The UI's own Share flow calls GET /v1/validate ?owner_id=…&knowledge_id=… once per id from this list to split them into its "My collections" / "Shared with me" tabs — that is the intended discovery contract this endpoint feeds, not a separate "shared" listing.

Credential Document Intelligence API key (x-api-key)

Query parameters

NameTypeDescription
owner_idstring | null
includestring | nullSet to 'summary' to get per-collection document count, processing rollup, and field counts inline instead of a bare id list. Omit to keep the original bare-id response.

Other responses

  • 422 Validation Error
import os
import requests

API_ROOT = "https://futuresmart.ai/document-intelligence/api"
API_KEY = os.environ["DOCUMENT_INTELLIGENCE_API_KEY"]

r = requests.get(
    f"{API_ROOT}/v1",
    headers={"x-api-key": API_KEY},
    timeout=120,
)
r.raise_for_status()
print(r.json())

Get a collection's configuration

GET/v1/{knowledge_id}/config

Credential Document Intelligence API key (x-api-key)

Path parameters

NameTypeDescription
knowledge_idrequiredstring

Response · 200

NameTypeDescription
knowledge_idrequiredstring
embedding_modelstring | nullOne of: paraphrase-multilingual-mpnet-base-v2, openai-text-embedding-3-large, openai-text-embedding-3-small
hybrid_search_enabledboolean | null
chunking_strategyobject | nullChunking strategy configuration for knowledge settings.
↳ document_level_metadataboolean | nullEnable document-level metadata extractionDefault: true
↳ chunk_level_metadataboolean | nullEnable chunk-level metadata extractionDefault: false
collection_namestring | nullShort display name (G1) — distinct from service_description, the longer free-text description. Null if never set.
service_descriptionstring | null
enrichment_providerstring | null
enrichment_modelstring | null
enrichment_temperaturenumber | null
enrichment_promptstring | null
enrichment_sourcestring | null
enrichment_enabledboolean | nullDefault: true
use_deterministic_chunkingboolean | nullDefault: true
created_atstring | null
updated_atstring | null

Other responses

  • 422 Validation Error
import os
import requests

API_ROOT = "https://futuresmart.ai/document-intelligence/api"
API_KEY = os.environ["DOCUMENT_INTELLIGENCE_API_KEY"]

r = requests.get(
    f"{API_ROOT}/v1/YOUR_COLLECTION_ID/config",
    headers={"x-api-key": API_KEY},
    timeout=120,
)
r.raise_for_status()
print(r.json())

Response shape (200)

JSON
{
  "chunking_strategy": {
    "chunk_level_metadata": false,
    "document_level_metadata": true
  },
  "created_at": "2025-09-30T17:55:00Z",
  "embedding_model": "paraphrase-multilingual-mpnet-base-v2",
  "enrichment_model": "gpt-4.1-mini",
  "enrichment_prompt": "Extract metadata deterministically. Use only information explicitly present in the document. Do not infer missing facts. Return stable, normalized values that follow the field definitions exactly.",
  "enrichment_provider": "openai",
  "enrichment_temperature": 0,
  "hybrid_search_enabled": true,
  "knowledge_id": "123e4567-e89b-12d3-a456-426614174000",
  "service_description": "Knowledge base for customer support documents",
  "updated_at": "2025-09-30T17:55:00Z"
}