GET
/
datasets
/
{dataset_id}
/
documents
/
{document_id}
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "position": 123,
  "data_source_type": "<string>",
  "data_source_info": {},
  "dataset_process_rule_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "created_from": "<string>",
  "created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": 123,
  "tokens": 123,
  "indexing_status": "<string>",
  "error": "<string>",
  "enabled": true,
  "disabled_at": 123,
  "disabled_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "archived": true,
  "display_status": "<string>",
  "word_count": 123,
  "hit_count": 123,
  "doc_form": "<string>",
  "dataset_process_rule": {
    "mode": "automatic",
    "rules": {
      "pre_processing_rules": [
        {
          "id": "remove_extra_spaces",
          "enabled": true
        }
      ],
      "segmentation": {
        "separator": "<string>",
        "max_tokens": 123
      },
      "parent_mode": "full-doc",
      "subchunk_segmentation": {
        "separator": "<string>",
        "max_tokens": 123,
        "chunk_overlap": 123
      }
    }
  },
  "document_process_rule": {
    "mode": "automatic",
    "rules": {
      "pre_processing_rules": [
        {
          "id": "remove_extra_spaces",
          "enabled": true
        }
      ],
      "segmentation": {
        "separator": "<string>",
        "max_tokens": 123
      },
      "parent_mode": "full-doc",
      "subchunk_segmentation": {
        "separator": "<string>",
        "max_tokens": 123,
        "chunk_overlap": 123
      }
    },
    "id": "<string>",
    "dataset_id": "<string>"
  },
  "indexing_latency": 123,
  "segment_count": 123,
  "average_segment_length": 123,
  "doc_language": "<string>"
}

Authorizations

Authorization
string
header
required

API Key authentication. Provide the key in the 'Authorization' header as 'Bearer {API_KEY}'.

Path Parameters

dataset_id
string<uuid>
required

The ID of the knowledge base.

document_id
string<uuid>
required

The ID of the document.

Query Parameters

metadata
enum<string>
default:all

Metadata filter: all returns all metadata, only returns only custom metadata, without returns no metadata.

Available options:
all,
only,
without

Response

200 - application/json

Detailed information about the document.

The response is of type object.