Documents

Download Document

Returns a signed URL for downloading a document's original uploaded file.

get/datasets/{dataset_id}/documents/{document_id}/download

Request

  • Base URL
    https://api.dify.ai/v1
  • URL
    https://api.dify.ai/v1/datasets/{dataset_id}/documents/{document_id}/download
  • Auth
    HTTP bearer

Path parameters

dataset_idstring uuid required

Knowledge base ID, from List Knowledge Bases. For a scoped key, copy the ID from the Dify URL.

document_idstring uuid required

Document ID. From List Documents.

Response

Download URL generated successfully.

urlstring

Signed URL to download the original uploaded file.

Changes

No recorded changes to this operation across all 17 revisions of this API.