Per-Application Exchange aggregate stats

Returns aggregate counts derived from cryptographic_exchange rows
scoped to (tenantId, applicationId) with status = ACTIVE and
deletedAt IS NULL:

  • activeExchangesCountCOUNT(*) of Cryptographic Exchanges in
    ACTIVE state for the application.
  • distinctActiveKeysCountCOUNT(DISTINCT asset_kid) over those
    same ACTIVE Exchanges. May be smaller than activeExchangesCount
    when multiple Exchanges target the same key.

Empty-result contract: a tenant with no ACTIVE Exchanges for the
application returns HTTP 200 with {0, 0} — NEVER 404 (the 404 case
is reserved for unknown applicationId within the tenant).

Tenant boundary: enforced FIRST via validateTenantAccess. A
user from Tenant A querying Tenant B's application receives 403
BEFORE any application-existence lookup or scope decision (per the
workspace's tenant-boundary-first invariant).

Authorization: requires scope admin.tenant.exchange.read.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
uuid
required
uuid
required
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json