Upstash Documentation

Fetch

1 min read

Fetch Command for Python SDK#

Used to retrieve documents by their IDs.

Arguments#

FetchPayloadobjectrequired#
Show properties
idsstring[]#

The IDs of the documents you want to fetch.

prefixstring#

An ID prefix to match document IDs.

Response#

DocumentsList[Document]required#

This field is null if no document with the specified ID is found.

Show properties
idstring | numberrequired#

The ID of the resulting document.

contentRecord<string, unknown>#

The main content of the document.

metadataRecord<string, unknown>#

Additional metadata for the document.