Report ExportsЭкспорт снапшота (§28)

Экспорт снапшота (§28)

Строится ИЗ снапшота (не live). Форматы: json, csv (плоский реестр операций). xlsx/pdf — контракт зарезервирован, пока REPORT_UNSUPPORTED_FORMAT (добавим отдельной итерацией).

curl -X POST "https://policy-engine-rest.ezig.workers.dev/api/v1/vaults/demo_vault/report-snapshots/example_string/exports" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "format": "json",
  "locale": "example_string",
  "timezone": "example_string",
  "includeOperationRegister": true
}'
{
  "id": "example_string",
  "snapshotId": "example_string",
  "format": "example_string",
  "status": "example_string",
  "filename": "John Doe",
  "mimeType": "example_string",
  "sizeBytes": 3.14,
  "fileHash": "example_string",
  "requestedById": "example_string",
  "completedAt": "example_string"
}
POST
/api/v1/vaults/{code}/report-snapshots/{snapshotId}/exports
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