Skip to main content

Get

Retrieves, decrypts and returns items from their IDs. If an item does not exist at that ID, it will return an empty object.

Parameters

Returns

List[Dict]: Decrypted item fields for each item, including id and specified fields (e.g., vector, contents, and metadata).
The contents field is always returned as bytes, regardless of whether it was originally stored as a string or bytes. All contents are encoded to bytes and encrypted before storage.

Exceptions

  • Throws if the item could not be retrieved or decrypted.
  • Throws if an unexpected error occurs during retrieval.

Example Usage

Index key

index_key is required on every call. Pass the same 32-byte index KEK you used with create_index() / load_index(). For an RBAC user, pass the user’s KEK as index_key= together with their user_id=: