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: Secure your Blnk server
Available in version 0.6.1 and later.
Path Parameters
The collection to search. Supported values:
transactions- Search through all transaction recordsbalances- Find balance records across all ledgersledgers- Locate specific ledgers by name or metadataidentities- Search customer identity records
Body
The search query text. Use
* to return all records. Supports full-text search when combined with query_by. Learn more: QueryingComma-separated list of fields to search in. When provided, performs field-specific searches. Learn more: QueryingExamples:
"source,destination"- Search in source and destination fields"first_name,last_name,email"- Search in identity name and email fields
Filter conditions to refine results. Supports operators like
:=, :>, :<, :>=, :<=, :!=, and ranges. Learn more: FilteringExamples:"status:=APPLIED"- Filter by exact status"amount:>1000"- Filter by amount greater than 1000"status:=APPLIED && currency:=USD"- Multiple conditions"created_at:[1704067200..1706745599]"- Date range filter
Sorting conditions for ordering results. Format:
field:direction where direction is asc or desc. Multiple fields: field1:desc,field2:asc. Learn more: SortingExamples:"created_at:desc"- Sort by creation date descending"amount:desc,created_at:asc"- Sort by amount then date
Page number for pagination. Starts at 1. Default: 1. Learn more: Pagination
Number of results per page. Maximum 250, default 10. Learn more: Pagination
Response
Total number of matching records.
Array of search results. Each hit contains a
document object with the record data and optional highlights for matched terms.Total number of records in the collection (regardless of filters).
Current page number.
Number of results per page.
Time taken to execute the search in milliseconds.
Search term highlighting information for matched fields. Only present when full-text search matches are found.