Endpoint
Retrieves a list of all accounts in your Blnk system. Supports pagination and advanced filtering via query parameters.
Query Parameters
The maximum number of accounts to return per request. Maximum value is typically 100
The number of accounts to skip before starting to return results. Used for pagination
Advanced Filtering
You can filter accounts using query parameters in the format field_operator=value.
Supported operators:
eq: Equals
ne: Not equals
gt: Greater than
gte: Greater than or equal
lt: Less than
lte: Less than or equal
in: In array (comma-separated values)
like: Pattern matching
ilike: Case-insensitive pattern matching
Examples:
currency_eq=USD: Get accounts with USD currency
currency_in=USD,EUR: Get accounts with USD or EUR currency
created_at_gte=2024-01-01: Get accounts created on or after Jan 1, 2024
bank_name_ilike=%chase%: Get accounts with “chase” in the bank name
Response
Returns an array of account objects.
Array of account objects
The unique identifier for the account
The bank or financial institution name
The currency code for the account
The ID of the associated balance
The ID of the identity that owns this account
The ID of the ledger this account belongs to
The timestamp when the account was created
Custom metadata associated with the account
Example Request
# Get first 10 USD accounts
curl -X GET "https://api.blnk.io/accounts?limit=10¤cy_eq=USD" \
-H "Authorization: Bearer YOUR_API_KEY"
# Get accounts created in 2024
curl -X GET "https://api.blnk.io/accounts?created_at_gte=2024-01-01&limit=20" \
-H "Authorization: Bearer YOUR_API_KEY"
Example Response
[
{
"account_id": "acc_789ghi",
"name": "Main Account",
"number": "1234567890",
"bank_name": "Blnk Bank",
"currency": "USD",
"balance_id": "bln_321xyz",
"identity_id": "idt_123abc",
"ledger_id": "ldg_456def",
"created_at": "2024-03-04T12:00:00Z",
"meta_data": {
"account_type": "savings"
}
},
{
"account_id": "acc_890jkl",
"name": "Secondary Account",
"number": "0987654321",
"bank_name": "Blnk Bank",
"currency": "USD",
"balance_id": "bln_654abc",
"identity_id": "idt_456def",
"ledger_id": "ldg_456def",
"created_at": "2024-03-05T14:30:00Z",
"meta_data": {
"account_type": "checking"
}
}
]
Error Responses
Error message describing what went wrong
Array of validation errors when using filters
Common Errors
- 400 Bad Request: Invalid query parameters or filter syntax