Audit
List audit logs
Return workspace activity for your organization: who did what, when, and on which resource.
/audit/logsAn 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-keystring
Enterprise API key, or an OAuth access token.
Query parameters
pageinteger
Page number. Defaults to 1. Values less than 1 are treated as 1.
page_sizeinteger
Audit logs to return. Defaults to 10. Values less than 1 are treated as 10.
actionstring
Substring of the action label on the log. Case-insensitive. For example: action=Ledger matches Ledger Created and Ledger Updated.
| Supported values | Labels that match |
|---|---|
Ledger | Ledger Created, Ledger Updated |
Balance | Balance Created, Balance Updated |
Transaction | Transaction Created, Transaction Retrieved |
Identity | Identity Created, Identity Updated |
Reconciliation | Reconciliation Started, Instant Reconciliation Started |
Matching Rule | Matching Rule Created, Matching Rule Updated |
External Data | External Data Uploaded |
Alert | Alert assigned, Alert escalated |
App | App Installed, App Launched, App Deleted |
Domain | Domain verified, Domain removed |
Deployment | Deployment created, Deployment destroy initiated |
performed_bystring
User id stored on the log as performed_by_id (user_...). Exact match. Do not pass the display name in performed_by.
instanceIdstring
Audit logs whose instance_id is this Cloud instance (instance_...). This is a filter, not a routing param.
ledgerIdstring
Audit logs whose ledger_id is this ledger (ldg_...).
balanceIdstring
Audit logs whose balance_id is this balance (bln_...).
transactionIdstring
Audit logs whose transaction_id is this transaction (txn_...).
identityIdstring
Audit logs whose identity_id is this identity (idt_...).
reconciliationIdstring
Audit logs whose reconciliation_id is this reconciliation (recon_...).
anomalyIdstring
Audit logs whose anomaly_id is this alert.
doc_idstring
Audit logs whose doc_id is this document.
appIdstring
Audit logs whose app_id is this app (app_...).
installedAppIdstring
Audit logs whose installed_app_id is this install (instapp_...).
appNamestring
Case-insensitive substring of app_name on the log.
domain_namestring
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.