List version history
layerz_historyList the most-recent change history (versions) for a model. Each version is a full snapshot persisted at a single mutation boundary (one chat turn, one user save, one API push, …). Use the returned revision_id (sha256 of the snapshot) with layerz_diff or to detect concurrent writes — a stable revision_id between two reads means the model has not changed. Versions older than the user plan history window (history_days) are filtered out server-side but still stored: hidden_count / oldest_hidden_at say how many are out of window, so an empty versions with hidden_count > 0 means "history exists but is outside the plan window", not "no history". Pinned versions (pinned: true, see layerz_pin_version) always list whatever their age; pinned_count / max_pinned_versions (null = unlimited) report the plan pin cap. Pass since (ISO timestamp) or limit to scope the response. Returns { current_revision_id, current_version_number, history_days, hidden_count, oldest_hidden_at, pinned_count, max_pinned_versions, versions: [{ revision_id, version_number, created_at, trigger_type, actor_user_id, label, conversation_id, pinned }] } — newest first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max number of versions to return (default 100, clamped to plan retention). | |
| since | No | ISO timestamp lower bound — only versions created at or after this time. | |
| model_id | No | Target model UUID. Required for user-scoped API keys; ignored (or validated against scope) for model-scoped keys. |