Document Service API
The Document Service API is built on top of the Query Engine API and is used to perform CRUD (create, retrieve, update, and delete) operations on documents .
The Document Service API also supports counting documents and, if Draft & Publish is enabled on the content-type, performing Strapi-specific operations such as publishing, unpublishing, and discarding drafts.
In Strapi 5, documents are uniquely identified by their documentId
at the API level.
The Document Service API replaces the Entity Service API used in Strapi v4 (see Strapi v4 documentation).
Additional information on how to migrate from the Entity Service API to the Document Service API can be found in the migration reference.
Relations can also be connected, disconnected, and set through the Document Service API, just like with the REST API (see the REST API relations documentation for examples).