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 Chunks API

Operations for managing document chunks and child chunks. 9 operation(s) from the Dify Service API.

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

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

This API exposes 9 operations across 4 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}.

9 operations 4 paths 2 schemas 2 DELETE3 GET1 PATCH3 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 Chunks 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 9

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

Chunks 9

Operations for managing document chunks and child chunks.

POST
/datasets/{dataset_id}/documents/{document_id}/segments
Create Chunks
createSegments 2 params body → 200400403404503
GET
/datasets/{dataset_id}/documents/{document_id}/segments
List Chunks
listSegments 6 params → 200400403404
GET
/datasets/{dataset_id}/documents/{document_id}/segments/{segment_id}
Get Chunk
getSegmentDetail 3 params → 200400403404
POST
/datasets/{dataset_id}/documents/{document_id}/segments/{segment_id}
Update Chunk
updateSegment 3 params body → 200400403404503
DELETE
/datasets/{dataset_id}/documents/{document_id}/segments/{segment_id}
Delete Chunk
deleteSegment 3 params → 204400403404
POST
/datasets/{dataset_id}/documents/{document_id}/segments/{segment_id}/child_chunks
Create Child Chunk
createChildChunk 3 params body → 200400403404503
GET
/datasets/{dataset_id}/documents/{document_id}/segments/{segment_id}/child_chunks
List Child Chunks
getChildChunks 6 params → 200403404
PATCH
/datasets/{dataset_id}/documents/{document_id}/segments/{segment_id}/child_chunks/{child_chunk_id}
Update Child Chunk
updateChildChunk 4 params body → 200400403404503
DELETE
/datasets/{dataset_id}/documents/{document_id}/segments/{segment_id}/child_chunks/{child_chunk_id}
Delete Child Chunk
deleteChildChunk 4 params → 204400403404

Schemas 2

The contract defines 2 schemas that model the data the API accepts and returns. The most detailed are Segment (27 properties), ChildChunk (8 properties). Each schema is shown below with its type and property counts.

ChildChunk
object
8 properties
Segment
object
27 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

dify-chunks-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 Chunks 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.