Skip to main content
POST
/
datasets
/
{dataset_id}
/
documents
/
download-zip
Download Documents as ZIP
curl --request POST \
  --url https://{api_base_url}/datasets/{dataset_id}/documents/download-zip \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "document_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}
'
"<string>"

Authorizations

Authorization
string
header
required

API Key authentication. For all API requests, include your API Key in the Authorization HTTP Header, prefixed with Bearer. Example: Authorization: Bearer {API_KEY}. Strongly recommend storing your API Key on the server-side, not shared or stored on the client-side, to avoid possible API-Key leakage that can lead to serious consequences.

Path Parameters

dataset_id
string<uuid>
required

Knowledge base ID.

Body

application/json
document_ids
string<uuid>[]
required

Array of document IDs to include in the ZIP archive.

Required array length: 1 - 100 elements

Response

ZIP archive containing the requested documents.

ZIP archive binary stream.