Skip to main content
POST
/
v1
/
documents
/
query-content
Query Document Segment or Chunk Content
curl --request POST \
  --url https://api.duplik.cn/v1/documents/query-content \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "segment_id": "<string>",
  "chunk_id": "<string>",
  "document_id": "<string>",
  "chunk_index": 123
}
'
{
  "content": "",
  "metadata": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
segment_id
string
chunk_id
string
document_id
string
chunk_index
integer

Response

Successful Response

content
string
default:""
metadata
object