Search & metadata
Search via DB
Filter a collection with a JSON query against the database.
/{collection}/filterThe Filter API lets you retrieve records from any collection using server-side filters with a clean JSON interface. Use it when you need precise, composable queries without the overhead of Typesense.
Authorization
If set, the API uses an API key for authentication. Include the following header in your requests: X-blnk-key: <api-key>.
Replace <api-key> with your secret API key. Ensure the key is kept secure and not exposed in public repositories or client-side code.
See also: Core API key.
Path
collectionstring
The collection to filter. Supported values:
ledgers- Filter ledgers by name or metadatabalances- Filter balance records across all ledgerstransactions- Filter transaction recordsidentities- Filter customer identity records
Body
filtersarray
Array of filter objects. Each object has field, operator, and optionally value or values. Learn more: Search via DB docs
Examples:
[{"field": "status", "operator": "eq", "value": "APPLIED"}]- Exact match[{"field": "currency", "operator": "in", "values": ["USD", "EUR"]}]- Multiple values
logical_operatorstring
Combines multiple filters with and or or. Default: and.
sort_bystring
Field to sort by. Only indexed fields are sortable. Default: created_at. Learn more: Performance Tuning
sort_orderstring
Sort direction: asc or desc. Default: desc.
include_countboolean
Include total count in response. May impact performance on large datasets. Default: false.
limitinteger
Max records to return. Default: 20, max: 100.
offsetinteger
Records to skip for pagination. Default: 0.
Response
dataarray
Array of matching records. Structure varies by collection type (ledger, balance, transaction, or identity).
total_countinteger
Total number of matching records. Only present when include_count is true.