How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Dify Documents API

Operations for creating, updating, and managing documents within a knowledge base. 12 operation(s) from the Dify Service API.

Dify Documents API is one of 19 APIs that Dify publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Documents and Knowledge Management. The published artifact set on APIs.io includes an OpenAPI specification and an API reference.

This API exposes 12 operations across 10 paths, and defines 2 schemas. It is described by OpenAPI 3.0.1, at version 1.0.0.

Requests are made against a single base URL, https://{api_base_url}.

12 operations 10 paths 2 schemas 1 DELETE4 GET2 PATCH5 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.1
API Version
1.0.0
Base URL
https://api.dify.ai/v1
Authentication
HTTP Bearer
Resource Areas
1

Authentication & Security 1

Dify Documents API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (API_KEY) (ApiKeyAuth). By default, every request must be authenticated.

  • ApiKeyAuth — Every request authenticates with an API key: Authorization: Bearer {APIKEY}. App endpoints take an app API key; knowledge endpoints take a knowledge base API k…

Paths & Operations 12

Across 10 paths, the API surfaces 12 operations — 1 DELETE, 4 GET, 2 PATCH, 5 POST. Each is listed below with its method, path, parameters, and response codes.

Documents 12

Operations for creating, updating, and managing documents within a knowledge base.

POST
/datasets/{dataset_id}/document/create-by-text
Create Document by Text
createDocumentFromText 1 param body → 200400403404503
POST
/datasets/{dataset_id}/document/create-by-file
Create Document by File
createDocumentFromFile 1 param body → 200400403404413503
GET
/datasets/{dataset_id}/documents
List Documents
listDocuments 5 params → 200403404
GET
/datasets/{dataset_id}/documents/{document_id}
Get Document
getDocumentDetail 3 params → 200400403404
DELETE
/datasets/{dataset_id}/documents/{document_id}
Delete Document
deleteDocument 2 params → 204403404
PATCH
/datasets/{dataset_id}/documents/{document_id}
Update Document
updateDocument 2 params body → 200400403404413415503
GET
/datasets/{dataset_id}/documents/{document_id}/download
Download Document
downloadDocument 2 params → 200403404
GET
/datasets/{dataset_id}/documents/{batch}/indexing-status
Get Document Indexing Status
getDocumentIndexingStatus 2 params → 200403404
POST
/datasets/{dataset_id}/documents/{document_id}/update-by-text
Update Document by Text
updateDocumentByText 2 params body → 200400403404503
POST
/datasets/{dataset_id}/documents/{document_id}/update-by-filedeprecated
Update Document by File
updateDocumentByFile 2 params body → 200400403404413415503
POST
/datasets/{dataset_id}/documents/download-zip
Download Documents as ZIP
downloadDocumentsZip 1 param body → 200403404
PATCH
/datasets/{dataset_id}/documents/status/{action}
Update Document Status in Batch
batchUpdateDocumentStatus 2 params body → 200400403404

Schemas 2

The contract defines 2 schemas that model the data the API accepts and returns. The most detailed are Document (24 properties), RetrievalModel (9 properties). Each schema is shown below with its type and property counts.

Document
object
24 properties
RetrievalModel
object
9 properties 4 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

dify-documents-api-openapi.yml Raw ↑

Other APIs Dify publishes across the network.

Dify Chat Messages API
Dify Completion Messages API
Dify Conversations API
Dify Knowledge Bases API
Dify Files API
Dify Workflow Runs API
Dify Applications API
Dify Annotations API
Dify Audio API
Dify Feedback API
Dify End Users API
Where this information came from

This is an independent, third-party profile of Dify Documents API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.