# Operator reporting and reconciliation

Reports, reconciliation runs and exceptions, treasury, operational queues and the audit trail with an operator key.

Operator keys feed the operator's finance, risk and BI systems: the same reports and queues staff see in the console, read-only. Nothing here moves money or decides a case; those actions stay with staff (four eyes).

```sh
export WIREBLOOM_API_URL=https://api.banking.wirebloom.com/v1
export WIREBLOOM_OPERATOR_ID=<your operator id>
auth=(-H "Authorization: Bearer $WIREBLOOM_API_KEY" -H "X-Tenant-Id: $WIREBLOOM_OPERATOR_ID")
```

Lists are cursor-paginated (`cursor`, `limit` 1–100, `sort`, `filter[field]`), see [Pagination](/docs/pagination).

## Reports

Scope: `reports:read`.

[listReports](/operator/reference/operator-ops#listReports) returns every report with its parameters, columns and export formats. [getReport](/operator/reference/operator-ops#getReport) returns one keyset page of a report for a period (`from` and `to` are required; `customerId` and `currency` narrow it):

```sh
curl "$WIREBLOOM_API_URL/ops/reports/processed-payments?from=2026-11-01&to=2026-11-18&limit=100" "${auth[@]}"
```

Report identifiers include `processed-payments`, `payment-exceptions`, `fee-income`, `provider-settlement`, `provider-reconciliation`, `erp-export`, `customer-risk`, `limit-exceptions`, `onboarding-funnel`, `balances-snapshot` and `statement-reconciliation`; the listing is authoritative. For the fact-backed reports `source=warehouse` serves the same columns from the warehouse with `dataAsOf`.

Follow `page.nextCursor` until it is `null`:

```python
import os, requests

base = os.environ["WIREBLOOM_API_URL"]
headers = {"Authorization": f"Bearer {os.environ['WIREBLOOM_API_KEY']}",
           "X-Tenant-Id": os.environ["WIREBLOOM_OPERATOR_ID"]}
params = {"from": "2026-11-01", "to": "2026-11-18", "limit": 100}
while True:
    r = requests.get(f"{base}/ops/reports/fee-income", headers=headers, params=params)
    r.raise_for_status()
    body = r.json()
    for row in body["data"]:
        print(row)
    if not body["page"]["nextCursor"]:
        break
    params["cursor"] = body["page"]["nextCursor"]
```

Exporting a report to a file is a console action.

## Reconciliation

Scope: `reports:read`.

- Runs: [listReconciliationRuns](/operator/reference/operator-ops#listReconciliationRuns), [getReconciliationRun](/operator/reference/operator-ops#getReconciliationRun). Each run compares the ledger with the banking partner's transactions.
- Exceptions: [listReconciliationExceptions](/operator/reference/operator-ops#listReconciliationExceptions), [getReconciliationException](/operator/reference/operator-ops#getReconciliationException). Feed open exceptions into your ticketing system; resolving them is done by staff.

```sh
curl "$WIREBLOOM_API_URL/ops/reconciliation/exceptions?limit=50&sort=-createdAt" "${auth[@]}"
```

Starting a run and resolving an exception are not available to keys.

## Treasury

Scope: `treasury:read`.

- [listTreasuryAccounts](/operator/reference/operator-ops#listTreasuryAccounts): the operator's own accounts (operations and fee income) with booked and available balances.
- [listTreasuryOperations](/operator/reference/operator-ops#listTreasuryOperations), [getTreasuryOperation](/operator/reference/operator-ops#getTreasuryOperation): treasury payments and conversions with their dual-control state.

Treasury payments and FX are proposed by one staff member and approved by a different one with a fresh step-up. A key reads them, never proposes or approves them.

## Operational queues

Read-only views of what staff work on, for dashboards and alerting:

| Scope               | Operations                                                                                                                                                                                                                                                                                                                |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `ops-payments:read` | [listOpsPayments](/operator/reference/operator-ops#listOpsPayments), [listOpsIncomingPayments](/operator/reference/operator-ops#listOpsIncomingPayments), [listPaymentExceptions](/operator/reference/operator-ops#listPaymentExceptions), [listStaffApprovals](/operator/reference/operator-ops#listStaffApprovals) (four eyes), [getOpsCurrencySummary](/operator/reference/operator-ops#getOpsCurrencySummary)                                                               |
| `compliance:read`   | [getComplianceQueue](/operator/reference/compliance#getComplianceQueue), [listComplianceHolds](/operator/reference/compliance#listComplianceHolds), [listScreeningHits](/operator/reference/compliance#listScreeningHits), [listMonitoringAlerts](/operator/reference/limits#listMonitoringAlerts), [listComplianceCases](/operator/reference/operator-ops#listComplianceCases), [listOpsComplaints](/operator/reference/operator-ops#listOpsComplaints), [listDataRequests](/operator/reference/operator-ops#listDataRequests) |
| `support:manage`    | [listSupportRequests](/operator/reference/operator-ops#listSupportRequests), [listFeedback](/operator/reference/operator-ops#listFeedback)                                                                                                                                                                                                                                            |

Releasing holds, deciding screening hits, closing cases and approving four-eyes items stay in the console.

## Banking connections and API usage

Scope: `integration:read`.

- [listProviderConnections](/operator/reference/providers#listProviderConnections): every banking connection with its lifecycle and health.
- [getIntegrationHome](/operator/reference/public-api#getIntegrationHome): connections, event backlog, last reconciliation run, API key counts, 7-day usage and webhook health in one call.
- [getOperatorApiUsage](/operator/reference/public-api#getOperatorApiUsage) and [listOperatorApiKeyRequests](/operator/reference/public-api#listOperatorApiKeyRequests): usage of every key of the operator, customer keys included, and the last requests of one key (method, route, status, time taken, request id; never bodies). See [Integration and usage](/docs/integration-usage).

## Audit

Scope: `audit:read` (held by operator and customer keys; each reads its own tenant).

[listAuditEvents](/reference/operator-ops#listAuditEvents) returns every event in the operator; with `q` the free-text search covers at most 92 days (`filter[from]`, `filter[to]`, default the last 30 days). [exportAuditEvents](/reference/operator-ops#exportAuditEvents) writes a CSV of up to 50 000 rows with the chain sequence and hash of sealed events; it answers `202` with a job:

```sh
curl -X POST "$WIREBLOOM_API_URL/audit-events/exports" "${auth[@]}" \
  -H "Content-Type: application/json" \
  -d '{ "format": "csv", "from": "2026-10-01T00:00:00Z", "to": "2026-11-01T00:00:00Z" }'
```

Poll it with [getJob](/reference/activity#getJob) using the same key (the scope that created the job also polls it) until it has `succeeded`, then download the CSV from `resultUrl`. Actions taken by keys carry the key id, so you can tell an integration from a person.
