Search, filter, and retrieve user’s documents. Supports text search, filtering by document type, export status, date ranges, sorting, and semantic similarity.
API key prefixed with sk_. Obtain from the Receiptor AI dashboard.
Text query (used only when useSearch=true). Omit in filter-only mode.
Max documents to return
Sort field (docDate, amount, merchant, ...)
Sort order: 1 asc, -1 desc
Typed filter clause. Allowed fields: amount, docDate, merchant, category, docType, invoiceId, receiptId, preferredCurrency, currency, paymentMethod, paymentMethodEnding, fromEmail, toEmail, summary, taxAmount, subtotal, isRecurring, recurringType. Allowed ops: eq, ne, gt, gte, lt, lte, in, nin, regex, exists.
Enable semantic/text search
Search mode when useSearch=true: similarity (exact-ish) or mmr (broader)
similarity, mmr Export status filter
all, exported, not-exported Archive filter: exclude (default, active docs), only (archived docs), include (both).
exclude, only, include Response shape: compact (default) or complete
compact, complete Always include these extra fields (in addition to outputMode defaults)