# operator-ops (operator)

Operator console: review queues (customers, payments, recipients, incoming), journal and manual postings, reconciliation, reports, dashboards, staff, impersonation and audit log.

## GET /audit-events

operationId: `listAuditEvents`
Summary: Audit log search
API key scopes: `audit:read`
Callable by: customer and operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header), `X-Access-Reason` (header), `cursor` (query), `limit` (query), `sort` (query), `filter` (query), `q` (query)
Responses: 200 `AuditEventPage`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 429 `Problem`, default `Problem`

Operator staff: all events in the operator. Customer owners/admins: events for their own users only (FR-REP-03).

**Free-text search (scalability audit X-33):** with `q`, the search runs over a date window of at most 92 days: `filter[from]` / `filter[to]` bound it; when neither is sent the window is the last 30 days, when only one is sent the other end is 30 days from it, and a wider window returns `400 bad-request` (`errors[].field` `query.filter[from]`). Filters without `q` are not bounded.

**API key scopes:** `audit:read` (customer-level keys (`X-Tenant-Id` = the key's customer) and operator-level keys (`X-Tenant-Id` = the operator id), each with a scope of its own level).

## GET /audit-events/{auditEventId}

operationId: `getAuditEvent`
Summary: Get audit event
API key scopes: `audit:read`
Callable by: customer and operator keys
Parameters: `auditEventId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header), `X-Access-Reason` (header)
Responses: 200 `AuditEvent`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `audit:read` (customer-level keys (`X-Tenant-Id` = the key's customer) and operator-level keys (`X-Tenant-Id` = the operator id), each with a scope of its own level).

## POST /audit-events/exports

operationId: `exportAuditEvents`
Summary: Export audit events (CSV)
API key scopes: `audit:read`
Callable by: customer and operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Request body: `AuditExportRequest`
Responses: 202 `Job`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 409 `Problem`, 422 `Problem`, 429 `Problem`, default `Problem`

CSV of the caller's scope (operator, or the customer's own events) with the chain sequence and hash of sealed events; up to 50 000 rows; 90-day retention; audited `audit.exported`.

**API key scopes:** `audit:read` (customer-level keys (`X-Tenant-Id` = the key's customer) and operator-level keys (`X-Tenant-Id` = the operator id), each with a scope of its own level).

## GET /ops/accounts/{currency}/customers

operationId: `listOpsCurrencyCustomers`
Summary: Customer balances in one currency
API key scopes: `ops-payments:read`
Callable by: operator keys
Parameters: `currency` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header), `cursor` (query), `limit` (query), `sort` (query), `filter` (query), `q` (query), `withTotal` (query)
Responses: 200 `OpsCurrencyCustomerBalancePage`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

One row per customer holding at least one balance or sub-balance in the currency, with booked, available and pending totals. `q` matches the legal or trading name or the exact customer number.

**API key scopes:** `ops-payments:read` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/accounts/{currency}/summary

operationId: `getOpsCurrencySummary`
Summary: Currency totals against the settlement account
API key scopes: `ops-payments:read`
Callable by: operator keys
Parameters: `currency` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Responses: 200 `OpsCurrencySummary`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

Computed live from the ledger (not the cached liquidity dashboard), so the totals reconcile to the operator's settlement account.

**API key scopes:** `ops-payments:read` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/cases

operationId: `listComplianceCases`
Summary: Partner compliance cases
API key scopes: `compliance:read`
Callable by: operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header), `cursor` (query), `limit` (query), `sort` (query), `filter` (query), `q` (query), `withTotal` (query)
Responses: 200 `ComplianceCaseSummaryPage`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 429 `Problem`, default `Problem`

The cases queue (FR-OPS-10): Banking Circle RFIs and inbound recalls of the operator's connections, most urgent deadline first (cases without a deadline last). `q` searches the title and reference. The operator's compliance staff answer; WireBloom monitors deadlines and escalates (D-44).

**API key scopes:** `compliance:read` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/cases/{caseId}

operationId: `getComplianceCase`
Summary: Partner compliance case
API key scopes: `compliance:read`
Callable by: operator keys
Parameters: `caseId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Responses: 200 `ComplianceCase`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `compliance:read` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/complaints

operationId: `listOpsComplaints`
Summary: Complaints register
API key scopes: `compliance:read`
Callable by: operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header), `cursor` (query), `limit` (query), `sort` (query), `filter` (query)
Responses: 200 `OpsComplaintPage`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `compliance:read` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/complaints/{complaintId}

operationId: `getOpsComplaint`
Summary: Complaint (staff view)
API key scopes: `compliance:read`
Callable by: operator keys
Parameters: `complaintId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Responses: 200 `OpsComplaint`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `compliance:read` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/compliance/reviews

operationId: `listComplianceReviews`
Summary: Periodic CDD reviews
API key scopes: `compliance:read`
Callable by: operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header), `cursor` (query), `limit` (query), `sort` (query), `filter` (query)
Responses: 200 `ComplianceReviewPage`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `compliance:read` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/compliance/settings

operationId: `getComplianceSettings`
Summary: Compliance settings
API key scopes: `compliance:read`
Callable by: operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Responses: 200 `ComplianceSettings`, 401 `Problem`, 403 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `compliance:read` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/customers

operationId: `listOpsCustomers`
Summary: Customers (operator console list)
API key scopes: `customers:read`
Callable by: operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header), `cursor` (query), `limit` (query), `sort` (query), `filter` (query), `q` (query), `withTotal` (query)
Responses: 200 `OpsCustomerItemPage`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 429 `Problem`, default `Problem`

Keyset-paginated customers of the operator with KYB status and open work items. `q` matches the legal or trading name, the customer number or the registration number.

**API key scope:** `customers:read` (operator-level keys only, `X-Tenant-Id` = the operator id).

**Metadata filter:** `filter[metadata.<key>]=<value>` (exact match; at most 5; AND).

**Batch look-up (P12-T07):** `filter[id]=<id>,<id>,…` (at most 100) returns those rows only, e.g. to resolve names shown next to ids; combine with `limit` ≥ the number of ids.

## GET /ops/customers/{customerId}

operationId: `getOpsCustomer`
Summary: Customer summary (operator console, staff mobile)
API key scopes: `customers:read`
Callable by: operator keys
Parameters: `customerId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Responses: 200 `OpsCustomerSummary`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

Standing, KYB status, open work items, balance totals per currency and the number of payments in the last 30 days, in one call. `404` for customers of other operators.

**API key scope:** `customers:read` (operator-level keys only, `X-Tenant-Id` = the operator id).

## GET /ops/customers/{customerId}/invitations

operationId: `listCustomerInvitationsForStaff`
Summary: Invitations of a customer
API key scopes: `customers:manage`
Callable by: operator keys
Parameters: `customerId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header), `cursor` (query), `limit` (query), `sort` (query), `filter` (query)
Responses: 200 `InvitationPage`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

The customer's invitations, as `GET /invitations` returns them in the customer tenant, for operator staff in the operator tenant (`status: expired` once a pending invitation is past `expiresAt`). `404` for a customer of another operator.

**API key scopes:** `customers:manage` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/customers/{customerId}/notes

operationId: `listCustomerNotes`
Summary: Communication log
API key scopes: `customers:manage`
Callable by: operator keys
Parameters: `customerId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header), `cursor` (query), `limit` (query), `sort` (query), `filter` (query)
Responses: 200 `CustomerNotePage`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

Notes, calls, emails and requests for information about the customer (staff only), newest first; pinned entries are returned by `filter[pinned]=true`.

**API key scopes:** `customers:manage` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## POST /ops/customers/{customerId}/notes

operationId: `createCustomerNote`
Summary: Add to the communication log
API key scopes: `customers:manage`
Callable by: operator keys
Parameters: `customerId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Request body: `CustomerNoteCreate`
Responses: 201 `CustomerNote`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 409 `Problem`, 422 `Problem`, 429 `Problem`, default `Problem`

Audited as `customer_note.created`. Attachments must be clean documents of the operator (`422` otherwise).

**API key scopes:** `customers:manage` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/customers/{customerId}/notes/{noteId}

operationId: `getCustomerNote`
Summary: Get communication log entry
API key scopes: `customers:manage`
Callable by: operator keys
Parameters: `customerId` (path, required), `noteId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header), `If-None-Match` (header)
Responses: 200 `CustomerNote`, 304, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `customers:manage` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/customers/{customerId}/people

operationId: `listCustomerPeopleForStaff`
Summary: People of a customer
API key scopes: `customers:manage`
Callable by: operator keys
Parameters: `customerId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header), `cursor` (query), `limit` (query), `sort` (query), `filter` (query), `q` (query)
Responses: 200 `PersonPage`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

Same page, sort, filters and `Person` items as `GET /customers/{customerId}/people`, for operator staff in the operator tenant (`X-Tenant-Id` = the operator id): every membership of the customer (invited, active, deactivated). `404` for a customer of another operator. Pending invitations (people who have not accepted yet) are listed by `GET /ops/customers/{customerId}/invitations`.

**API key scopes:** `customers:manage` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/customers/{customerId}/receiving-details

operationId: `getCustomerReceivingDetails`
Summary: Effective receiving details of a customer
API key scopes: `operator:read`
Callable by: operator keys
Parameters: `customerId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Responses: 200 `CustomerReceivingDetails`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `operator:read` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/data-requests

operationId: `listDataRequests`
Summary: Data-subject requests
API key scopes: `compliance:read`
Callable by: operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header), `cursor` (query), `limit` (query), `sort` (query), `filter` (query)
Responses: 200 `DataRequestPage`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `compliance:read` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/data-requests/{dataRequestId}

operationId: `getDataRequest`
Summary: Data-subject request
API key scopes: `compliance:read`
Callable by: operator keys
Parameters: `dataRequestId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Responses: 200 `DataRequest`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `compliance:read` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/exceptions

operationId: `listPaymentExceptions`
Summary: Payment exception queue
API key scopes: `ops-payments:read`
Callable by: operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header), `cursor` (query), `limit` (query), `sort` (query), `filter` (query)
Responses: 200 `PaymentExceptionPage`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `ops-payments:read` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/exceptions/{exceptionId}

operationId: `getPaymentException`
Summary: Get payment exception
API key scopes: `ops-payments:read`
Callable by: operator keys
Parameters: `exceptionId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Responses: 200 `PaymentException`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `ops-payments:read` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/feedback

operationId: `listFeedback`
Summary: Product feedback
API key scopes: `support:manage`
Callable by: operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header), `cursor` (query), `limit` (query), `sort` (query), `filter` (query)
Responses: 200 `FeedbackPage`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `support:manage` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/feedback/{feedbackId}

operationId: `getFeedback`
Summary: Get feedback
API key scopes: `support:manage`
Callable by: operator keys
Parameters: `feedbackId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header), `If-None-Match` (header)
Responses: 200 `Feedback`, 304, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `support:manage` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## PATCH /ops/feedback/{feedbackId}

operationId: `updateFeedback`
Summary: Triage feedback (status, note)
API key scopes: `support:manage`
Callable by: operator keys
Parameters: `feedbackId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header), `If-Match` (header)
Request body: `FeedbackUpdate`
Responses: 200 `Feedback`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 409 `Problem`, 412 `Problem`, 422 `Problem`, 429 `Problem`, default `Problem`

`new` → `triaged` → `closed` (any order; reopening allowed). Records the staff membership. Audited `feedback.updated` (status change only).

**Concurrency:** `If-Match` is optional: when sent it must equal the item's current weak ETag `W/"<updatedAt in epoch ms>"` (`412` if stale). There is no item `GET`; the item's `updatedAt` comes from the list or the previous write, whose response also carries `ETag`.

**API key scopes:** `support:manage` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/four-eyes

operationId: `listStaffApprovals`
Summary: Decisions waiting for a second approver
API key scopes: `ops-payments:read`
Callable by: operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header), `cursor` (query), `limit` (query), `sort` (query), `filter` (query)
Responses: 200 `StaffApprovalPage`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `ops-payments:read` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/incoming-payments

operationId: `listOpsIncomingPayments`
Summary: Incoming payments queue
API key scopes: `ops-payments:read`
Callable by: operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header), `cursor` (query), `limit` (query), `sort` (query), `filter` (query), `q` (query)
Responses: 200 `IncomingPaymentPage`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `ops-payments:read` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/payments

operationId: `listOpsPayments`
Summary: Payments operations queue
API key scopes: `ops-payments:read`
Callable by: operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header), `cursor` (query), `limit` (query), `sort` (query), `filter` (query), `q` (query), `withTotal` (query)
Responses: 200 `OpsPaymentPage`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `ops-payments:read` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/payments/{paymentId}

operationId: `getOpsPayment`
Summary: Payment (operator view, with provider data)
API key scopes: `ops-payments:read`
Callable by: operator keys
Parameters: `paymentId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Responses: 200 `OpsPayment`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `ops-payments:read` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/receiving-details

operationId: `listOperatorReceivingDetails`
Summary: Operator receiving details
API key scopes: `operator:read`
Callable by: operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Responses: 200, 401 `Problem`, 403 `Problem`, 429 `Problem`, default `Problem`

Operator-level receiving details, every currency and rail (disabled rows included).

**API key scopes:** `operator:read` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/recipients

operationId: `listOpsRecipients`
Summary: Recipients approval queue (operator mode)
API key scopes: `ops-payments:read`
Callable by: operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header), `cursor` (query), `limit` (query), `sort` (query), `filter` (query), `q` (query), `withTotal` (query)
Responses: 200 `RecipientPage`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `ops-payments:read` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/recipients/{recipientId}

operationId: `getOpsRecipient`
Summary: Recipient (operator review)
API key scopes: `ops-payments:read`
Callable by: operator keys
Parameters: `recipientId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Responses: 200 `Recipient`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

Any recipient of the operator's customers (masked identifiers, `approval` with `canDecide` for the caller). `404` for recipients of other operators.

**API key scopes:** `ops-payments:read` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/reconciliation/exceptions

operationId: `listReconciliationExceptions`
Summary: Reconciliation exceptions
API key scopes: `reports:read`
Callable by: operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header), `cursor` (query), `limit` (query), `sort` (query), `filter` (query)
Responses: 200 `ReconciliationExceptionPage`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 429 `Problem`, default `Problem`

**API key scope:** `reports:read` (operator-level keys only, `X-Tenant-Id` = the operator id).

## GET /ops/reconciliation/exceptions/{exceptionId}

operationId: `getReconciliationException`
Summary: Get exception
API key scopes: `reports:read`
Callable by: operator keys
Parameters: `exceptionId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Responses: 200 `ReconciliationException`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

**API key scope:** `reports:read` (operator-level keys only, `X-Tenant-Id` = the operator id).

## GET /ops/reconciliation/runs

operationId: `listReconciliationRuns`
Summary: Reconciliation runs
API key scopes: `reports:read`
Callable by: operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header), `cursor` (query), `limit` (query), `sort` (query), `filter` (query)
Responses: 200 `ReconciliationRunPage`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 429 `Problem`, default `Problem`

**API key scope:** `reports:read` (operator-level keys only, `X-Tenant-Id` = the operator id).

## GET /ops/reconciliation/runs/{runId}

operationId: `getReconciliationRun`
Summary: Get run
API key scopes: `reports:read`
Callable by: operator keys
Parameters: `runId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Responses: 200 `ReconciliationRun`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

**API key scope:** `reports:read` (operator-level keys only, `X-Tenant-Id` = the operator id).

## GET /ops/reports

operationId: `listReports`
Summary: Report catalogue
API key scopes: `reports:read`
Callable by: operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header), `X-Access-Reason` (header)
Responses: 200, 401 `Problem`, 403 `Problem`, 429 `Problem`, default `Problem`

Reports with their parameters, columns and export formats.

**API key scope:** `reports:read` (operator-level keys only, `X-Tenant-Id` = the operator id).

## GET /ops/reports/{report}

operationId: `getReport`
Summary: Run a report (paged)
API key scopes: `reports:read`
Callable by: operator keys
Parameters: `report` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header), `from` (query, required), `to` (query, required), `customerId` (query), `currency` (query), `cursor` (query), `limit` (query), `source` (query), `X-Access-Reason` (header)
Responses: 200 `Report`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

One keyset page of the report. `source=warehouse` serves the three fact-backed reports from the warehouse (same key and columns) with `dataAsOf`. Platform users send `X-Access-Reason`.

**API key scope:** `reports:read` (operator-level keys only, `X-Tenant-Id` = the operator id).

## GET /ops/roles

operationId: `getRoleMatrix`
Summary: Role matrix
API key scopes: `staff:read`
Callable by: operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Responses: 200 `RoleMatrix`, 401 `Problem`, 403 `Problem`, 429 `Problem`, default `Problem`

Staff and customer roles of the operator: effective capabilities, platform default, override state and member count.

**API key scopes:** `staff:read` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/roles/{role}

operationId: `getRoleDefinition`
Summary: One role of the matrix
API key scopes: `staff:read`
Callable by: operator keys
Parameters: `role` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header), `If-None-Match` (header)
Responses: 200 `RoleDefinition`, 304, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `staff:read` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/staff

operationId: `listStaff`
Summary: Staff members
API key scopes: `staff:read`
Callable by: operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header), `cursor` (query), `limit` (query), `sort` (query), `filter` (query), `q` (query)
Responses: 200 `StaffMemberPage`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `staff:read` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## POST /ops/staff

operationId: `inviteStaff`
Summary: Invite staff member
API key scopes: `staff:write`
Callable by: operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Request body: `InvitationCreate`
Responses: 201 `InvitationCreated`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 409 `Problem`, 422 `Problem`, 429 `Problem`, default `Problem`

Same rules as `POST /invitations` with the operator tenant: `role` must be a StaffRole (`422`), the email domain must be approved (`409 domain-not-approved`). With the operator setting `notifications.invitationDelivery: manual` no email is sent: `delivery` carries the accept link and the 6-digit code once (audited `tenancy.staff.invitation_link_revealed` without the token or code); `GET` never returns them.

**API key scopes:** `staff:write` (operator-level keys only (`X-Tenant-Id` = the operator id)).

**Step-up and API keys (P15-T01):** API keys holding the scope call it without a step-up; every change made with a key is emailed to the owners (`member_changed_by_api_key`, locked category) and audited with the key id. Keys may only invite or assign roles below owner/admin rank that cannot approve (`422 role_not_allowed_for_key`, D-99).

## GET /ops/staff-roles

operationId: `listStaffRoles`
Summary: Staff roles (base and custom)
API key scopes: `staff:read`
Callable by: operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Responses: 200 `StaffRoles`, 401 `Problem`, 403 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `staff:read` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## POST /ops/staff-roles

operationId: `createStaffRole`
Summary: Create a custom staff role
API key scopes: `staff:write`
Callable by: operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Request body: `StaffCustomRoleCreate`
Responses: 201 `StaffCustomRole`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 409 `Problem`, 422 `Problem`, 429 `Problem`, default `Problem`

Audited as `custom_role.created`.

**API key scopes:** `staff:write` (operator-level keys only (`X-Tenant-Id` = the operator id)).

**Step-up and API keys (P15-T01):** API keys holding the scope call it without a step-up; every change made with a key is emailed to the owners (`member_changed_by_api_key`, locked category) and audited with the key id. Keys may only invite or assign roles below owner/admin rank that cannot approve (`422 role_not_allowed_for_key`, D-99).

## GET /ops/staff-roles/{roleId}

operationId: `getStaffRole`
Summary: Get a custom staff role
API key scopes: `staff:read`
Callable by: operator keys
Parameters: `roleId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header), `If-None-Match` (header)
Responses: 200 `StaffCustomRole`, 304, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `staff:read` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## PATCH /ops/staff-roles/{roleId}

operationId: `updateStaffRole`
Summary: Rename or re-scope a custom staff role
API key scopes: `staff:write`
Callable by: operator keys
Parameters: `roleId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header), `If-Match` (header, required)
Request body: `StaffCustomRoleUpdate`
Responses: 200 `StaffCustomRole`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 409 `Problem`, 412 `Problem`, 422 `Problem`, 428 `Problem`, 429 `Problem`, default `Problem`

`archived` archives or restores the role. A capability change that would leave no active staff member holding `staff.manage` is `409 staff-lockout`. Capabilities stay a subset of the base role (`422`). Takes effect on the members' next request. Audited as `custom_role.updated`.

**Concurrency:** `If-Match` with the current `ETag` is required (`428` if absent, `412` if stale).

**API key scopes:** `staff:write` (operator-level keys only (`X-Tenant-Id` = the operator id)).

**Step-up and API keys (P15-T01):** API keys holding the scope call it without a step-up; every change made with a key is emailed to the owners (`member_changed_by_api_key`, locked category) and audited with the key id. Keys may only invite or assign roles below owner/admin rank that cannot approve (`422 role_not_allowed_for_key`, D-99).

## GET /ops/staff/{membershipId}

operationId: `getStaffMember`
Summary: Get staff member
API key scopes: `staff:read`
Callable by: operator keys
Parameters: `membershipId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header), `If-None-Match` (header)
Responses: 200 `StaffMember`, 304, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `staff:read` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## PATCH /ops/staff/{membershipId}

operationId: `updateStaffMember`
Summary: Change staff role
API key scopes: `staff:write`
Callable by: operator keys
Parameters: `membershipId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header), `If-Match` (header, required)
Request body: `StaffUpdate`
Responses: 200 `StaffMember`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 409 `Problem`, 412 `Problem`, 422 `Problem`, 428 `Problem`, 429 `Problem`, default `Problem`

**Concurrency:** `If-Match` with the current `ETag` is required (`428` if absent, `412` if stale).

**API key scopes:** `staff:write` (operator-level keys only (`X-Tenant-Id` = the operator id)).

**Step-up and API keys (P15-T01):** API keys holding the scope call it without a step-up; every change made with a key is emailed to the owners (`member_changed_by_api_key`, locked category) and audited with the key id. Keys may only invite or assign roles below owner/admin rank that cannot approve (`422 role_not_allowed_for_key`, D-99).

## POST /ops/staff/{membershipId}/deactivate

operationId: `deactivateStaffMember`
Summary: Deactivate staff member
API key scopes: `staff:write`
Callable by: operator keys
Parameters: `membershipId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Request body: `DeactivateRequest`
Responses: 200 `StaffMember`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 409 `Problem`, 422 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `staff:write` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## POST /ops/staff/{membershipId}/reactivate

operationId: `reactivateStaffMember`
Summary: Reactivate staff member
API key scopes: `staff:write`
Callable by: operator keys
Parameters: `membershipId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Responses: 200 `StaffMember`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 409 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `staff:write` (operator-level keys only (`X-Tenant-Id` = the operator id)).

**Step-up and API keys (P15-T01):** API keys holding the scope call it without a step-up; every change made with a key is emailed to the owners (`member_changed_by_api_key`, locked category) and audited with the key id. Keys may only invite or assign roles below owner/admin rank that cannot approve (`422 role_not_allowed_for_key`, D-99).

## POST /ops/staff/invitations/{invitationId}/resend

operationId: `resendStaffInvitation`
Summary: Resend staff invitation (new token and code)
API key scopes: `staff:write`
Callable by: operator keys
Parameters: `invitationId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Responses: 200 `InvitationCreated`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 409 `Problem`, 429 `Problem`, default `Problem`

A new token and code for a pending or expired staff invitation (the previous link stops working); same rank rule as inviting (`403` below the invitation's role). `409 invalid-transition` for an accepted or revoked invitation. Audited `tenancy.invitation.resent`. With the operator setting `notifications.invitationDelivery: manual` no email is sent: `delivery` carries the accept link and the 6-digit code once (audited `tenancy.staff.invitation_link_revealed` without the token or code); `GET` never returns them.

**API key scopes:** `staff:write` (operator-level keys only (`X-Tenant-Id` = the operator id)).

**Step-up and API keys (P15-T01):** API keys holding the scope call it without a step-up; every change made with a key is emailed to the owners (`member_changed_by_api_key`, locked category) and audited with the key id. Keys may only invite or assign roles below owner/admin rank that cannot approve (`422 role_not_allowed_for_key`, D-99).

## GET /ops/status

operationId: `getOperatorStatusPage`
Summary: Private status page
API key scopes: `status:manage`
Callable by: operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Responses: 200 `OpsStatusPageView`, 401 `Problem`, 403 `Problem`, 429 `Problem`, default `Problem`

Created on first use with the components API, Web app and console, Webhooks delivery and the operator's banking partner (D-43).

**API key scopes:** `status:manage` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## PATCH /ops/status/components/{componentKey}

operationId: `overrideOperatorComponent`
Summary: Set or release a component status
API key scopes: `status:manage`
Callable by: operator keys
Parameters: `componentKey` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Request body: `ComponentOverride`
Responses: 200 `StatusComponent`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 409 `Problem`, 422 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `status:manage` (operator-level keys only (`X-Tenant-Id` = the operator id)).

**Step-up and API keys (P15-T01):** API keys holding the scope call it without a step-up: the key was issued by a stepped-up session, and the route's limits, approval tiers and validation apply to keys exactly as to sessions (review W3-03).

## GET /ops/status/incident-templates

operationId: `listIncidentTemplates`
Summary: Incident message templates
API key scopes: `status:manage`
Callable by: operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Responses: 200 `IncidentTemplateList`, 401 `Problem`, 403 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `status:manage` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/status/incidents

operationId: `listOperatorIncidents`
Summary: Incidents of the private page
API key scopes: `status:manage`
Callable by: operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header), `cursor` (query), `limit` (query), `sort` (query), `filter` (query)
Responses: 200 `StatusIncidentPage`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `status:manage` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## POST /ops/status/incidents

operationId: `createOperatorIncident`
Summary: Open an incident or maintenance
API key scopes: `status:manage`
Callable by: operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header), `Idempotency-Key` (header)
Request body: `IncidentCreate`
Responses: 201 `StatusIncident`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 409 `Problem`, 422 `Problem`, 429 `Problem`, default `Problem`

The update is mirrored to the vendor and, with `notify`, emailed / pushed to the page's subscribers, the operator's admins and its integrator contacts (runbook INCIDENT_COMMS.md).

**API key scopes:** `status:manage` (operator-level keys only (`X-Tenant-Id` = the operator id)).

**Step-up and API keys (P15-T01):** API keys holding the scope call it without a step-up: the key was issued by a stepped-up session, and the route's limits, approval tiers and validation apply to keys exactly as to sessions (review W3-03).

## POST /ops/status/incidents/{incidentId}/updates

operationId: `updateOperatorIncident`
Summary: Post an incident update (or resolve)
API key scopes: `status:manage`
Callable by: operator keys
Parameters: `incidentId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header), `Idempotency-Key` (header)
Request body: `IncidentUpdateCreate`
Responses: 201 `StatusIncident`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 409 `Problem`, 422 `Problem`, 429 `Problem`, default `Problem`

`409` on a closed incident.

**API key scopes:** `status:manage` (operator-level keys only (`X-Tenant-Id` = the operator id)).

**Step-up and API keys (P15-T01):** API keys holding the scope call it without a step-up: the key was issued by a stepped-up session, and the route's limits, approval tiers and validation apply to keys exactly as to sessions (review W3-03).

## GET /ops/status/subscribers

operationId: `listOperatorStatusSubscribers`
Summary: Subscribers of the private page
API key scopes: `status:manage`
Callable by: operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Responses: 200 `StatusSubscriberList`, 401 `Problem`, 403 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `status:manage` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## POST /ops/status/subscribers

operationId: `addOperatorStatusSubscriber`
Summary: Add a subscriber
API key scopes: `status:manage`
Callable by: operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Request body: `StatusSubscriberCreate`
Responses: 201 `StatusSubscriber`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 409 `Problem`, 422 `Problem`, 429 `Problem`, default `Problem`

Confirmed at once (the operator vouches for the address).

**API key scopes:** `status:manage` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## DELETE /ops/status/subscribers/{subscriberId}

operationId: `removeOperatorStatusSubscriber`
Summary: Remove a subscriber
API key scopes: `status:manage`
Callable by: operator keys
Parameters: `subscriberId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Responses: 204, 401 `Problem`, 403 `Problem`, 404 `Problem`, 409 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `status:manage` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/support-requests

operationId: `listSupportRequests`
Summary: Support inbox
API key scopes: `support:manage`
Callable by: operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header), `cursor` (query), `limit` (query), `sort` (query), `filter` (query)
Responses: 200 `SupportRequestPage`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `support:manage` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/support-requests/{supportRequestId}

operationId: `getSupportRequest`
Summary: Support request with the request-id trace
API key scopes: `support:manage`
Callable by: operator keys
Parameters: `supportRequestId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header), `If-None-Match` (header)
Responses: 200 `OpsSupportRequest`, 304, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

**API key scopes:** `support:manage` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## PATCH /ops/support-requests/{supportRequestId}

operationId: `updateSupportRequest`
Summary: Triage a support request
API key scopes: `support:manage`
Callable by: operator keys
Parameters: `supportRequestId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header), `If-Match` (header)
Request body: `SupportRequestUpdate`
Responses: 200 `OpsSupportRequest`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 409 `Problem`, 412 `Problem`, 422 `Problem`, 429 `Problem`, default `Problem`

Status, assignee (an active staff membership, `422` otherwise) and an internal note. Audited `support_request.updated` (status only).

**Concurrency:** `If-Match` is optional: when sent it must equal the item's current weak ETag `W/"<updatedAt in epoch ms>"` (`412` if stale). There is no item `GET`; the item's `updatedAt` comes from the list or the previous write, whose response also carries `ETag`.

**API key scopes:** `support:manage` (operator-level keys only (`X-Tenant-Id` = the operator id)).

## GET /ops/treasury/accounts

operationId: `listTreasuryAccounts`
Summary: Operator treasury accounts
API key scopes: `treasury:read`
Callable by: operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Responses: 200 `TreasuryAccountList`, 401 `Problem`, 403 `Problem`, 429 `Problem`, default `Problem`

The operator's `operator_ops` and `fees_income` accounts with booked and available balances.

**API key scope:** `treasury:read` (operator-level keys only, `X-Tenant-Id` = the operator id).

## GET /ops/treasury/operations

operationId: `listTreasuryOperations`
Summary: Treasury operations
API key scopes: `treasury:read`
Callable by: operator keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header), `cursor` (query), `limit` (query), `sort` (query), `filter` (query)
Responses: 200 `TreasuryOperationPage`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 429 `Problem`, default `Problem`

Dual control (parity P-09): a staff member with `treasury.initiate` proposes; a DIFFERENT staff member with `treasury.approve` approves with a fresh step-up; the worker (`treasury.execute`) then pays or converts on the operator's active banking connection and posts the ledger entry. Balances are checked at proposal, approval and execution (`409 insufficient-funds`). Audited `treasury.operation_*`.

**API key scope:** `treasury:read` (operator-level keys only, `X-Tenant-Id` = the operator id).

**Metadata filter:** `filter[metadata.<key>]=<value>` (exact match; at most 5; AND).

## GET /ops/treasury/operations/{operationId}

operationId: `getTreasuryOperation`
Summary: Treasury operation
API key scopes: `treasury:read`
Callable by: operator keys
Parameters: `operationId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Responses: 200 `TreasuryOperation`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

**API key scope:** `treasury:read` (operator-level keys only, `X-Tenant-Id` = the operator id).
