ReportsDrill-down операций отчёта (§26)

Drill-down операций отчёта (§26)

Раскрытие любой агрегированной цифры до операций. filters — общие фильтры отчёта (включая categoryKeys и categoryField); drilldown — уточнение (direction/periodStart/counterpartyAddressId/ownAddressId/status/category/tokenId/categoryField). drilldown.categoryField="ticker:EUR" раскрывает группу отчёта по полю категории; при совпадении ключа уточнение из клика перекрывает фильтр отчёта. При snapshotId список строится из манифеста снапшота, не из live.

curl -X POST "https://policy-engine-rest.ezig.workers.dev/api/v1/vaults/demo_vault/reports/query/operations" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "reportType": "example_string",
  "filters": {},
  "drilldown": {},
  "snapshotId": "example_string",
  "limit": 42,
  "cursor": "example_string"
}'
{
  "items": [
    {}
  ],
  "nextCursor": "example_string",
  "totals": {
    "count": 3.14,
    "byAsset": [
      {
        "tokenId": "example_string",
        "assetCode": "example_string",
        "assetSymbol": "example_string",
        "network": "example_string",
        "contractAddress": "123 Main St",
        "amount": "example_string"
      }
    ],
    "usdValue": "example_string"
  }
}
POST
/api/v1/vaults/{code}/reports/query/operations
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

better-auth session token. Мобилка/сервисы. Веб использует cookie.

better-auth session token. Мобилка/сервисы. Веб использует cookie.
API Key (cookie: better-auth.session_token)
path
codestring
Required

Уникальный код Vault'а (slug)

Content-Typestring
Required

The media type of the request body

Options: application/json
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. better-auth session token. Мобилка/сервисы. Веб использует cookie.

path
parameterstring
Required

API Key for authentication. Provide your API key in the cookie.

Path Parameters

codestring
Required

Уникальный код Vault'а (slug)

Example:
demo_vault

Responses

itemsobject[]
Required

Операции с полями и categoryAssignments (sensitive-значения отредактированы по правам: значение null + ключ в redactedFields)

nextCursorstring
Required
totalsobject
Required