Item change history
layerz_history_for_itemTrace the per-item change history for one UID — when it was added, modified, or removed, who did it, and which fields changed each time. Walks the version history oldest→newest, diffs consecutive snapshots, and reports only events where the requested UID changed. fields is the same shape as layerz_diff field-level entries. Returns { uid, events: [{ revision_id, version_number, created_at, actor_user_id, trigger_type, status: "added"|"removed"|"modified", fields?: [{ field, oldValue, newValue }] }] } — newest first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | Item UID (8-char or role-prefixed form like `d:abc12345`). | |
| limit | No | Max number of versions to scan (default 50, clamped to plan retention). | |
| model_id | No | Target model UUID. Required for user-scoped API keys; ignored (or validated against scope) for model-scoped keys. |