---
title: "Document Stat"
method: POST
path: "/internal/memory/home-storage/v2/stat"
tags: ["internal-memory"]
---

# Document Stat

`POST /internal/memory/home-storage/v2/stat`

## Request

- Base URL: `https://api.ender.au` (the document declares no server; this is the origin it was published from)
- URL: `https://api.ender.au/internal/memory/home-storage/v2/stat`
- Auth: none declared

## Headers

- `authorization` string, nullable

## Request body

- ObjectReference
  - `bucket` string, required
  - `path` string, required
  - `work` union, required
    - FolderImportDetectionWork: One exact retained folder-import document read by the control worker.
      - `kind` 'folder_import_detection'
      - `run_id` string, uuid, required
      - `source_version_id` string, uuid, required
      - `memory_generation_id` string, uuid, required
    - FolderImportRetentionWork: One exact frozen folder-import receipt held by a worker lease.
      - `kind` 'folder_import_retention'
      - `source_version_id` string, uuid, required
      - `lease_token` string, uuid, required
    - MemoryProcessWork
      - `kind` 'memory_process'
      - `job_id` string, uuid, required
      - `attempt_id` string, uuid, required
      - `lease_token` string, uuid, required
    - MemoryBulkProcessWork
      - `kind` 'memory_bulk_process'
      - `job_id` string, uuid, required
      - `attempt_id` string, uuid, required
      - `lease_token` string, uuid, required
    - MemoryOcrWork
      - `kind` 'memory_ocr'
      - `job_id` string, uuid, required
      - `attempt_id` string, uuid, required
      - `lease_token` string, uuid, required
    - MemoryStorageCleanupWork
      - `kind` 'memory_storage_cleanup'
      - `job_id` string, uuid, required
      - `attempt_id` string, uuid, required
      - `lease_token` string, uuid, required
    - RocapImportWork
      - `kind` 'rocap_import'
      - `run_id` string, uuid, required
      - `lease_token` string, uuid, required
    - SoaImportWork: One uploaded Statement of Affairs held by an extraction worker lease.
      - `kind` 'soa_import'
      - `import_id` string, uuid, required
      - `lease_token` string, uuid, required

## Response `200`

Successful Response

- MetadataResponse
  - `bucket` string, required
  - `path` string, required
  - `size` integer, required
  - `content_type` string, nullable, required
  - `identity` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ender/apis/ender-backend.md) - [All operations](https://skmtc.dev/ender/apis/ender-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/ender/apis/ender-backend/revisions/a5849ac366ca?raw)
