- Sync
- Async
Parameters
document_id(str): ID of the document
Returns
Document: Document metadata
Examples
- Sync
- Async
Document Properties
TheDocument object returned by this method has the following properties:
external_id(str): Unique document identifiercontent_type(str): Content type of the documentfilename(Optional[str]): Original filename if availablemetadata(Dict[str, Any]): User-defined metadatastorage_info(Dict[str, str]): Storage-related informationsystem_metadata(Dict[str, Any]): System-managed metadatachunk_ids(List[str]): IDs of document chunks
Document Methods
TheDocument object also provides the following methods:
- Sync
- Async
update_with_text(): Update the document with new text contentupdate_with_file(): Update the document with content from a fileupdate_metadata(): Update the document’s metadata only

