Search
Search via DB
Filter ledgers, balances, transactions, and identities using Blnk’s Filter API with direct database queries.
POST
The 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.
If you’re using the auto-provisioned
Enterprise Core instance included with your Production License deployment, set the base URL to: https://ENTERPRISE_PUBLIC_URL/core.If you’re connecting to a different Core instance, use the publicly accessible base URL for that instance instead.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: Scoped API keys and Secure your Blnk server.
Path Parameters
string
required
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
array
required
Array of filter objects. Each object has
field, operator, and optionally value or values. Learn more: Search via DB docsExamples:[{"field": "status", "operator": "eq", "value": "APPLIED"}]- Exact match[{"field": "currency", "operator": "in", "values": ["USD", "EUR"]}]- Multiple values
string
Combines multiple filters with
and or or. Default: and.string
Field to sort by. Only indexed fields are sortable. Default:
created_at. Learn more: Performance Tuningstring
Sort direction:
asc or desc. Default: desc.boolean
Include total count in response. May impact performance on large datasets. Default:
false.integer
Max records to return. Default: 20, max: 100.
integer
Records to skip for pagination. Default: 0.
Response
array
Array of matching records. Structure varies by collection type (ledger, balance, transaction, or identity).
integer
Total number of matching records. Only present when
include_count is true.