Skip to main content
REST One HTTPS request per page.
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>.
List the documents in your instance, newest first. Each document appears once, as its current version. Deleted documents are not listed. Every item carries its document_key, the address you pass to the other documents methods.

Parameters

string
Only documents of this type, for example "contract". See Document types.
string
Only documents that came from this source, for example a connected tool.
string
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.
string
Only documents filed under this customer. Not accepted on B2C.
dict[str, str]
A scope path for an account with a deeper scope ladder, as level name to id, read the way memories.create reads it.
string
The next_cursor from the previous page. Leave it out for the first page.

Returns

list[dict]
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.
string | None
Pass it back as cursor for the next page. None (null in TypeScript) on the last page.
processing_stage is accepted, searchable, processed or failed. A document is searchable before it is fully processed; see How ingestion works.

Example

Raises

  • InvalidInputError: when cursor is not one this call returned, or scope is not a flat dict of strings.
  • CustomerIdNotAcceptedError: when customer_id is passed on a B2C instance.
  • AuthenticationError: when the SDK has not been initialized or the key lacks read access.

See also