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 their IDs within the per-request limit above.
consistentRead: true is supported when ref selects a branch directly or an alias that currently targets a branch. Tag reads and an alias that targets a tag 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 below includes the synthetic 64-dimensional dense_vector from the upsert example:
The order of the returned documents is not guaranteed to match the order of the IDs in the request.