Skip to content
handupbeta
Download

usage

View as Markdown
GET
/v1/storage

Disk usage by category (request history, audit log, files, free database pages, other), request counts, the history retention policy and the running or most recent cleanup. Local, and view scope on paired devices.

Media typeapplication/json

GET /v1/storage: usage by category, the retention policy, and the running or most recent cleanup.

object
usage
required

Disk space the daemon uses, by category. Categories add up to total_bytes.

object
total_bytes
required

Database file, write-ahead log, and stored files on disk.

integer format: int64
history_bytes
required

Request rows (with their inline previews) and their indexes.

integer format: int64
audit_bytes
required

Audit events.

integer format: int64
files_bytes
required

Stored files (preview blobs) plus their metadata rows.

integer format: int64
free_bytes
required

Free database pages; new requests reuse them before the file grows.

integer format: int64
other_bytes
required

Everything else: devices, tokens, schema, and the write-ahead log.

integer format: int64
files
required

Stored files on disk.

integer format: int64
pending
required
integer format: int64
resolved
required
integer format: int64
oldest_resolved_at

Unix milliseconds of the oldest resolution still kept.

integer | null format: int64
compacts
required

The database returns freed pages to the filesystem after a history cleanup (auto_vacuum=incremental, set on databases created by this version). Otherwise freed pages stay in the file as free_bytes and are reused.

boolean
retention
required

Retention for resolved requests (decision history). The daemon prunes at start and hourly; 0 disables a cap. Pending requests are never pruned.

object
keep_days

Delete resolved requests older than this many days (0 = no age cap).

integer format: int32
default: 90
max_requests

Keep at most this many resolved requests (0 = no count cap).

integer format: int32
default: 2000
max_bytes

Best-effort live database/WAL/blob byte cap, excluding free database pages (0 = unlimited).

integer format: int64
0
files_keep_days

Remove files belonging only to resolutions older than N days (0 = request lifetime).

integer format: int32
0
job
One of:
null