Filter Documents
Filter documents by extracted field values, document type, date range, and custom predicates. Build complex queries combining multiple conditions with AND/OR logic.
POST
/filter/documentsRequest body
| Field | Type | Description |
|---|---|---|
| conditions | array | Array of filter conditions |
| operator | string | Combine conditions: "and" (default) or "or" |
| limit | integer | Results per page (default 20) |
| cursor | string | Pagination cursor |
Example
curl -X POST https://api.talonic.com/filter/documents \
-H "Authorization: Bearer tlnc_sk_live_7f3a...x9k2" \
-H "Content-Type: application/json" \
-d '{
"conditions": [
{"field": "vendor_name", "op": "eq", "value": "Acme Corp"},
{"field": "total_amount", "op": "gt", "value": 1000}
],
"operator": "and"
}'Filter operators
| Operator | Description | Applicable types |
|---|---|---|
| eq | Equal to | string, number, date, boolean |
| neq | Not equal to | string, number, date, boolean |
| gt | Greater than | number, date |
| gte | Greater than or equal | number, date |
| lt | Less than | number, date |
| lte | Less than or equal | number, date |
| contains | String contains | string |
| in | Value in array | string, number |