Skip to content

List a site's revisions

GET
/api/sites/{path}/revisions
curl --request GET \
--url https://example.com/api/sites/example/revisions \
--header 'Remote-User: <Remote-User>'

Returns the live content (current) first, then retained archived versions newest-first. Available to any authenticated user; hidden sites are visible only to admins.

path
required
string

Full site path — group segments (0–2) plus the slug, e.g. claude/app or demo.

The site’s revisions.

Media typeapplication/json
object
revisions
required
Array<object>

One browsable version of a site.

object
id
required

current for the live content, otherwise the archive timestamp.

string
current
required

True for the live content.

boolean
created_at
required
string format: date-time
size
required

Total on-disk size in bytes of the revision’s files.

integer format: int64
Examplegenerated
{
"revisions": [
{
"id": "example",
"current": true,
"created_at": "2026-04-15T12:00:00Z",
"size": 1
}
]
}

Missing or invalid credentials.

Media typeapplication/json
object
error
required
string
Examplegenerated
{
"error": "example"
}

No such site, key, or connection.

Media typeapplication/json
object
error
required
string
Examplegenerated
{
"error": "example"
}