Skip to main content
This page shows you how to use the fetch endpoint to fetch documents by IDs from a collection. Large responses may return documents through docsUrl instead of inline docs. See Large results for REST download instructions and SDK behavior.
include is applied first, and then exclude is applied to the included fields when you set both in the fields parameter.
To fetch documents, specify the document IDs (up to 100 IDs).
consistentRead: true is supported only when ref directly selects a branch. Tag and alias reads reject consistent reads. See Branches, tags, and aliases. Consistent reads overlay eligible pending writes. Pending bulk imports remain invisible until committed, and a pending payload above the consistent-read limit returns 429. The response will look like this:
The order of the returned documents is not guaranteed to match the order of the IDs in the request.