Skip to main content
POST
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.
Available in version 0.6.1 and later.
The Search API enables you to retrieve one or more records from your ledger with advanced filtering, sorting, and full-text search capabilities. Unlike standard GET endpoints, the Search API gives you more control over your results.

Path Parameters

string
required
The collection to search. Supported values:
  • transactions - Search through all transaction records
  • balances - Find balance records across all ledgers
  • ledgers - Locate specific ledgers by name or metadata
  • identities - Search customer identity records

Body

string
required
The search query text. Use * to return all records. Supports full-text search when combined with query_by. Learn more: Querying
string
Comma-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
string
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
string
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
integer
Page number for pagination. Starts at 1. Default: 1. Learn more: Pagination
integer
Number of results per page. Maximum 250, default 10. Learn more: Pagination

Response

integer
Total number of matching records.
array
Array of search results. Each hit contains a document object with the record data and optional highlights for matched terms.
integer
Total number of records in the collection (regardless of filters).
integer
Current page number.
integer
Number of results per page.
integer
Time taken to execute the search in milliseconds.
array
Search term highlighting information for matched fields. Only present when full-text search matches are found.
For simple operations like retrieving a single record by ID or listing all records, use the standard GET endpoints. Use the Search API when you need filtering, sorting, or complex queries.

Need help?

We are very happy to help you make the most of Blnk, regardless of whether it is your first time or you are switching from another tool. To ask questions or discuss issues, please contact us or join our Discord community.