Report SnapshotsСоздать снапшот отчёта (§27)

Создать снапшот отчёта (§27)

Формирует отчёт, фиксирует dataCutoff, сохраняет result + манифест операций + canonical sha256. Снапшот immutable: не меняется при ретро-матче, переименованиях и изменении курса. Результат > ~900KB → REPORT_PERIOD_TOO_LARGE (сузьте фильтры).

curl -X POST "https://policy-engine-rest.ezig.workers.dev/api/v1/vaults/demo_vault/report-snapshots" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "reportType": "counterparty_activity",
  "parameters": {}
}'
{
  "id": "example_string",
  "vaultId": "example_string",
  "reportType": "example_string",
  "status": "example_string",
  "schemaVersion": "example_string",
  "parametersJson": {},
  "normalizedParametersHash": "example_string",
  "result": {},
  "resultHash": "example_string",
  "resultStorageKey": "example_string",
  "rowCount": 3.14,
  "includedOperationKeysJson": [
    "example_string"
  ],
  "includedOperationKeysStorageKey": "example_string",
  "dataCutoffAt": "example_string",
  "dataCutoffBlock": 3.14,
  "counterpartyClassificationMode": "example_string",
  "folderClassificationMode": "example_string",
  "errorCode": "example_string",
  "errorMessage": "example_string",
  "generatedById": "example_string",
  "generatedAt": "example_string",
  "createdAt": "example_string",
  "deletedAt": "example_string"
}
POST
/api/v1/vaults/{code}/report-snapshots
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
reportTypestring
Required
Options: counterparty_activity, counterparty_group_activity, transaction_activity, asset_movement, address_activity, balance_position, account_statement, approval_activity, operations_exceptions, category_analytics
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

Body

application/json
reportTypestring
Required
Allowed values:counterparty_activitycounterparty_group_activitytransaction_activityasset_movementaddress_activitybalance_positionaccount_statementapproval_activityoperations_exceptionscategory_analytics

Responses