Sections
The indexed sections (chunks) a document was split into.
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 a document's sections
/v1/{knowledge_id}/documents/{object_id}/chunksRetrieve chunks for a specific document with pagination and optional metadata. Includes chunk-level metadata: chunk_keywords, chunk_topic, chunk_entities.
Credential Document Intelligence API key (x-api-key)
Path parameters
| Name | Type | Description |
|---|---|---|
knowledge_idrequired | string | |
object_idrequired | string | Document Object ID |
Query parameters
| Name | Type | Description |
|---|---|---|
limit | integer | Number of chunks to return |
offset | integer | Offset for pagination |
metadata | boolean | Include chunk metadata in response |
Other responses
422Validation Error
Get a section
/v1/{knowledge_id}/chunks/{chunk_id}Retrieve a single chunk by its ID. Response includes chunk metadata.
Credential Document Intelligence API key (x-api-key)
Path parameters
| Name | Type | Description |
|---|---|---|
knowledge_idrequired | string | |
chunk_idrequired | string | Chunk ID |
Other responses
422Validation Error
Get many sections
/v1/{knowledge_id}/chunks/batchRetrieve multiple chunks by their IDs in batch. Response includes chunk metadata.
Credential Document Intelligence API key (x-api-key)
Path parameters
| Name | Type | Description |
|---|---|---|
knowledge_idrequired | string |
Other responses
422Validation Error
Example request body
[
"string"
]Get a section's fields
/v1/{knowledge_id}/chunks/{chunk_id}/metadataReturn chunk-level metadata only (no text). Dynamically returns all chunk-level metadata fields based on field configurations. Excludes system fields like object_id, knowledge_id, user_id, sub_object_id, and chunk_text.
Credential Document Intelligence API key (x-api-key)
Path parameters
| Name | Type | Description |
|---|---|---|
knowledge_idrequired | string | |
chunk_idrequired | string | Chunk ID |
Other responses
422Validation Error