Added in Python SDK 0.9.0 and JavaScript and TypeScript SDK 0.9.0. In TypeScript, pass one options object; every option is accepted in snake_case or camelCase (
customer_id or customerId). The result is returned as the server sends it, with snake_case fields, typed as Record<string, unknown>.document_key, the address you pass to the other documents methods.
Parameters
Only documents of this type, for example
"contract". See Document types.With
customer_id or scope, only documents filed at exactly that person and customer. Leave all three out to list every document in the instance.A scope path for an account with a deeper scope ladder, as level name to id, read the way
memories.create reads it.Returns
The documents on this page. Each item has
document_key, document_id, version, is_current, version_status, document_type, processing_stage, document_format, title, byte_size, page_count, has_original, source (when the document came from a connected tool), document_created_at, failure_reason (when processing failed), created_at and updated_at.processing_stage is accepted, searchable, processed or failed. A document is searchable before it is fully processed; see How ingestion works.
Example
Raises
InvalidInputError: whencursoris not one this call returned, orscopeis not a flat dict of strings.CustomerIdNotAcceptedError: whencustomer_idis passed on a B2C instance.AuthenticationError: when the SDK has not been initialized or the key lacks read access.