Count documents and aggregate data. Use for spending totals and financial analysis. Supports grouping by merchant, category, date, etc. Gets ALL matching documents.
API key prefixed with sk_. Obtain from the Receiptor AI dashboard.
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.
Archive filter: exclude (default, active docs), only (archived docs), include (both).
exclude, only, include Aggregation key (e.g., merchant, category, date)