Skip to content

List file revisions

GET
/v0/namespaces/{namespace}/filesystem/revisions

Resolves the current path to a file inode and returns revisions for that file. If the file could be renamed, use the inode revision API for stable identity.

namespace
required
string

Namespace id

path
required
string

Absolute file path

limit
string

Maximum page size

cursor
string

Opaque file-revisions page cursor

File revisions

Response for listing file revisions.

object
head_seq
required

Namespace head sequence used for the read.

integer format: int64
inode_id
required

File inode whose revisions were returned.

integer format: int64
namespace_id
required

Namespace that was read.

string
next_cursor

Opaque cursor for the next page, if more revisions are available.

string | null
revisions
required

Retained revisions in order.

Array<object>

One immutable file revision.

object
committed_at_ms
required

Wall-clock stamp of the commit that created this revision, in Unix milliseconds. Observational: committed_seq is the order.

integer format: int64
committed_seq
required

Namespace sequence that created this revision.

integer format: int64
content_ref
required

Content stored for this revision.

object
content_id
required

Immutable identity of the referenced object.

string
kind
required

Content strategy used by the referenced object.

string
size_bytes
required

Complete byte length of the referenced content.

integer format: int64
storage_checksum
required

Mandatory checksum over the complete object, used to verify the stored bytes against this reference without downloading them.

object
algorithm
required

Algorithm that produced value.

string
Allowed values: sha256 crc64nvme crc32c
value
required

Lowercase hex of the raw checksum bytes.

The algorithm is its own field, so the value carries no prefix. Provider APIs that report base64 are converted at the adapter.

string
whole_file_sha256

SHA-256 over the complete payload, lowercase hex, when a trusted party computed it.

Present means the LoonFS write path hashed the whole stream itself, or a provider validated a signed whole-object SHA-256 on the write. There are no client-claimed digests: absent means nobody trustworthy hashed these bytes, never “the client did not tell us”.

string | null
inode_id
required

File inode that owns this revision.

integer format: int64
revision_no
required

Revision number within the file inode.

integer format: int64

Invalid path

HTTP error body used by LoonFS APIs.

object
code
required

Stable machine-readable reason from the ErrorCode registry.

Carried as a string so clients keep working when a newer server introduces a code they do not know; use ErrorCode::parse for typed access.

string
details
One of:
null
feature

For not_supported errors, the capability-document feature key the client should reconcile against.

string | null
message
required

Human-readable error message.

string
request_id

Correlation id the server assigned to the failed request; the same value is sent as the x-request-id response header.

string | null

Unauthorized

HTTP error body used by LoonFS APIs.

object
code
required

Stable machine-readable reason from the ErrorCode registry.

Carried as a string so clients keep working when a newer server introduces a code they do not know; use ErrorCode::parse for typed access.

string
details
One of:
null
feature

For not_supported errors, the capability-document feature key the client should reconcile against.

string | null
message
required

Human-readable error message.

string
request_id

Correlation id the server assigned to the failed request; the same value is sent as the x-request-id response header.

string | null

Namespace or path not found

HTTP error body used by LoonFS APIs.

object
code
required

Stable machine-readable reason from the ErrorCode registry.

Carried as a string so clients keep working when a newer server introduces a code they do not know; use ErrorCode::parse for typed access.

string
details
One of:
null
feature

For not_supported errors, the capability-document feature key the client should reconcile against.

string | null
message
required

Human-readable error message.

string
request_id

Correlation id the server assigned to the failed request; the same value is sent as the x-request-id response header.

string | null

Namespace deleted

HTTP error body used by LoonFS APIs.

object
code
required

Stable machine-readable reason from the ErrorCode registry.

Carried as a string so clients keep working when a newer server introduces a code they do not know; use ErrorCode::parse for typed access.

string
details
One of:
null
feature

For not_supported errors, the capability-document feature key the client should reconcile against.

string | null
message
required

Human-readable error message.

string
request_id

Correlation id the server assigned to the failed request; the same value is sent as the x-request-id response header.

string | null