Skip to main content
The Data API lets you read, query, and filter data stored in a Blnk Core instance through Blnk Cloud. For the full endpoint reference, see Data API. To filter with JSON bodies, see Filtering data. It provides read-only access to Core data and is commonly used for dashboards, analytics, reporting, and back-office operations.

How it works

  • All requests go through Blnk Cloud, not directly to Core.
  • Every request must target a specific Core instance using instance_id.
  • You authenticate using a Cloud access token.
  • Blnk Cloud routes the request to the correct Core instance and returns the response.

URL structure

Base URL:
Required headers:
Every request must always include instance_id as a query parameter.

Listing resources

To list ledgers, balances, transactions, or identities, the general pattern is:
page and pageSize are optional. If you omit them, defaults apply:
  • page=1
  • pageSize=30 for ledgers, pageSize=20 for balances, transactions, and identities.
For example, to list transactions:

Fetch resource details

To retrieve details for a single ledger, balance, transaction, or identity by ID, use the detail routes. The general pattern is:

Working with filters

The Data API uses suffixes on field names to express filter operators. Instead of sending operators as separate parameters, you append a suffix to the field name to indicate how the value should be compared.
For example:
Each filter is passed as a query parameter. Multiple filters can be combined in a single request.
The following parameters are reserved for pagination, sorting, or routing and must not be used as filter fields:
  • page, pageSize, per_page, limit, offset
  • sort, order, order_by, order_dir
  • instance_id, org_id

Supported operators

Operator-specific rules

  1. BETWEEN:
    • Provide two values separated by a single pipe |
    • Encode the pipe as %7C in URLs
    Example
  2. IN:
    • Provide comma-separated values
    Example
  3. LIKE / ILIKE:
    • Use SQL-style wildcards.
    • % matches any sequence of characters.
    • _ matches a single character.
    Example

Example: Filtering transactions

Here’s an example of how filter operators can be used together in a request:

Filterable fields by resource

The table below lists the fields you can use for filtering on each Data API resource.
Nested meta_data keys use dot notation, and the operator suffix goes at the end. Example: meta_data.myApp.channel_eq=web.