This feature is only available in the Enterprise version

Audit

List audit logs

Return workspace activity for your organization: who did what, when, and on which resource.

GET/audit/logs

An audit log is one workspace action: who did it, when, and which resource they touched. Cloud writes a row when someone uses the dashboard, a Cloud API key, the proxy, or a Custom App.

This endpoint lists those rows for the authenticated organization, newest first. To review the same activity in the dashboard, open Settings > Audit logs.

api_key_id is present when the actor used an API key. acting_app is present when a Custom App performed the action, or when the row is an app lifecycle event such as install or launch.

This endpoint requires the Cloud audit:read scope.

Enterprise authentication

Send these requests to https://api.cloud.blnkfinance.com on Blnk Cloud. On a self-hosted Enterprise deployment, send them to ENTERPRISE_PUBLIC_URL.

Pass an Enterprise API key, or an OAuth access token, in the X-blnk-key header. Create the key in Enterprise API keys, or issue a token with Enterprise OAuth.

This credential comes from the Cloud or Enterprise workspace. A Core API key belongs to the Core instance.

X-blnk-keystringrequiredheader

Enterprise API key, or an OAuth access token.

Query parameters

pageintegerquery

Page number. Defaults to 1. Values less than 1 are treated as 1.

page_sizeintegerquery

Audit logs to return. Defaults to 10. Values less than 1 are treated as 10.

actionstringquery

Substring of the action label on the log. Case-insensitive. For example: action=Ledger matches Ledger Created and Ledger Updated.

Supported valuesLabels that match
LedgerLedger Created, Ledger Updated
BalanceBalance Created, Balance Updated
TransactionTransaction Created, Transaction Retrieved
IdentityIdentity Created, Identity Updated
ReconciliationReconciliation Started, Instant Reconciliation Started
Matching RuleMatching Rule Created, Matching Rule Updated
External DataExternal Data Uploaded
AlertAlert assigned, Alert escalated
AppApp Installed, App Launched, App Deleted
DomainDomain verified, Domain removed
DeploymentDeployment created, Deployment destroy initiated
performed_bystringquery

User id stored on the log as performed_by_id (user_...). Exact match. Do not pass the display name in performed_by.

instanceIdstringquery

Audit logs whose instance_id is this Cloud instance (instance_...). This is a filter, not a routing param.

ledgerIdstringquery

Audit logs whose ledger_id is this ledger (ldg_...).

balanceIdstringquery

Audit logs whose balance_id is this balance (bln_...).

transactionIdstringquery

Audit logs whose transaction_id is this transaction (txn_...).

identityIdstringquery

Audit logs whose identity_id is this identity (idt_...).

reconciliationIdstringquery

Audit logs whose reconciliation_id is this reconciliation (recon_...).

anomalyIdstringquery

Audit logs whose anomaly_id is this alert.

doc_idstringquery

Audit logs whose doc_id is this document.

appIdstringquery

Audit logs whose app_id is this app (app_...).

installedAppIdstringquery

Audit logs whose installed_app_id is this install (instapp_...).

appNamestringquery

Case-insensitive substring of app_name on the log.

domain_namestringquery

Audit logs whose domain_name is this workspace domain. domain is an alias for the same filter.

Response

Rows include every resource id field. Unrelated ids come back as empty strings. These fields are omitted when empty: api_key_id, deployment_id, domain_name, email, acting_app, and performed_by_id.

dataarray

Audit log rows for the current page, newest first.

paginationobject

Page info for this request.